Author: Stephan <step...@stzal.com>
Branch: 
Changeset: r274:08f6f19acef9
Date: 2012-08-04 12:20 +0200
http://bitbucket.org/pypy/lang-js/changeset/08f6f19acef9/

Log:    mark JsCode._get_opcode and JsCode._opcode_count as elidable

diff --git a/js/jscode.py b/js/jscode.py
--- a/js/jscode.py
+++ b/js/jscode.py
@@ -202,10 +202,15 @@
                 op.where = labels[op.where]
         self.has_labels = False
 
+    @jit.elidable
     def _get_opcode(self, pc):
         assert pc >= 0
         return self.opcodes[pc]
 
+    @jit.elidable
+    def _opcode_count(self):
+        return len(self.opcodes)
+
     def run(self, ctx):
         from js.object_space import object_space
         debug = object_space.interpreter.config.debug
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to