[pypy-svn] pypy out-of-line-guards: Add a new field
fijal
commits-noreply at bitbucket.org
Thu Mar 3 10:44:13 CET 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: out-of-line-guards
Changeset: r42398:76661debaeba
Date: 2011-03-03 11:37 +0200
http://bitbucket.org/pypy/pypy/changeset/76661debaeba/
Log: Add a new field
diff --git a/pypy/rpython/lltypesystem/rclass.py b/pypy/rpython/lltypesystem/rclass.py
--- a/pypy/rpython/lltypesystem/rclass.py
+++ b/pypy/rpython/lltypesystem/rclass.py
@@ -86,10 +86,13 @@
# a linked-list of assembler codes to invalidate in case jit_invariant_fields
# are modified
-# address is a pointer to a loop-level one-element raw array that's
-# either 0 or 1
+
+# flag - an invalidated flag (0 or 1), used during tracing
+# address - backend-dependent number. typically an address of assembler to patch
ASMCODE = lltype.GcForwardReference()
-ASMCODE.become(GcStruct('asmcode', ('address', lltype.Signed),
+ASMCODE.become(GcStruct('asmcode',
+ ('address', lltype.Signed),
+ ('flag', lltype.Signed),
('next', lltype.Ptr(ASMCODE))))
ASMCODE_APPENDER = lltype.FuncType([llmemory.GCREF, lltype.Signed],
More information about the Pypy-commit
mailing list