Author: Stephan <[email protected]>
Branch:
Changeset: r366:2ee7cb2fc38e
Date: 2013-03-20 16:20 +0100
http://bitbucket.org/pypy/lang-js/changeset/2ee7cb2fc38e/
Log: added LOAD_MEMBER_DOT alias for LOAD_MEMBER for debugging
diff --git a/js/opcodes.py b/js/opcodes.py
--- a/js/opcodes.py
+++ b/js/opcodes.py
@@ -264,6 +264,11 @@
return 'LOAD_MEMBER'
+class LOAD_MEMBER_DOT(LOAD_MEMBER):
+ def __str__(self):
+ return 'LOAD_MEMBER_DOT'
+
+
class COMMA(BaseUnaryOperation):
def eval(self, ctx):
one = ctx.stack_pop()
diff --git a/js/operations.py b/js/operations.py
--- a/js/operations.py
+++ b/js/operations.py
@@ -337,7 +337,7 @@
def emit(self, bytecode):
bytecode.emit_str(self.name)
self.left.emit(bytecode)
- bytecode.emit('LOAD_MEMBER')
+ bytecode.emit('LOAD_MEMBER_DOT')
class FunctionStatement(Statement):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit