Author: Stephan <[email protected]>
Branch:
Changeset: r139:a999ae0bbffb
Date: 2011-10-25 13:01 +0200
http://bitbucket.org/pypy/lang-js/changeset/a999ae0bbffb/
Log: added jit annotations to LOAD_OBJECT
diff --git a/js/opcodes.py b/js/opcodes.py
--- a/js/opcodes.py
+++ b/js/opcodes.py
@@ -7,6 +7,7 @@
from js.baseop import plus, sub, compare, AbstractEC, StrictEC,\
compare_e, increment, decrement, commonnew, mult, division, uminus, mod
from pypy.rlib.rarithmetic import intmask
+from pypy.rlib import jit
class Opcode(object):
_stack_change = 1
@@ -196,9 +197,11 @@
# return 'STORE_VAR "%s"' % self.name
class LOAD_OBJECT(Opcode):
+ _immutable_fields_ = ["counter"]
def __init__(self, counter):
self.counter = counter
+ @jit.unroll_safe
def eval(self, ctx):
w_obj = create_object(ctx, 'Object')
for _ in range(self.counter):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit