]> gitweb.factorcode.org Git - factor.git/commitdiff
compiler: rt-safepoint and rel-safepoint words
authorJoe Groff <arcata@gmail.com>
Mon, 17 Oct 2011 22:23:05 +0000 (15:23 -0700)
committerJoe Groff <arcata@gmail.com>
Fri, 28 Oct 2011 04:14:45 +0000 (21:14 -0700)
basis/compiler/codegen/relocation/relocation.factor
basis/compiler/constants/constants.factor

index f2bc0d0de7f8c2ce4c0c7ca2f879d5b86a67f324..2a4447fa5578cf9494ecfc58bb5c0c5e25e685ae 100644 (file)
@@ -102,6 +102,9 @@ MEMO: cached-string>symbol ( symbol -- obj ) string>symbol ;
 : rel-inline-cache-miss ( class -- )
     rt-inline-cache-miss add-relocation ;
 
+: rel-safepoint ( class -- )
+    rt-safepoint add-relocation ;
+
 : init-relocation ( -- )
     V{ } clone parameter-table set
     V{ } clone literal-table set
index 3440b85a8054c0b14e8c2d2485317fe6b2c66ae0..fe12925e7f75c8be3e1744164214a1bdeb285517 100644 (file)
@@ -70,6 +70,7 @@ CONSTANT: rt-decks-offset 11
 CONSTANT: rt-exception-handler 12
 CONSTANT: rt-dlsym-toc 13
 CONSTANT: rt-inline-cache-miss 14
+CONSTANT: rt-safepoint 15
 
 : rc-absolute? ( n -- ? )
     ${