[pypy-commit] lang-js default: changed string output

stepahn noreply at buildbot.pypy.org
Fri Dec 28 11:35:53 CET 2012


Author: Stephan <stephan at stzal.com>
Branch: 
Changeset: r331:4437cf09b290
Date: 2012-12-28 11:13 +0100
http://bitbucket.org/pypy/lang-js/changeset/4437cf09b290/

Log:	changed string output

diff --git a/js/opcodes.py b/js/opcodes.py
--- a/js/opcodes.py
+++ b/js/opcodes.py
@@ -148,7 +148,7 @@
         ctx.stack_append(value)
 
     def __str__(self):
-        return 'LOAD_VARIABLE "%s"' % (self.identifier)
+        return 'LOAD_VARIABLE "%s" (%d)' % (self.identifier, self.index)
 
 
 class LOAD_THIS(Opcode):
@@ -505,7 +505,7 @@
         ref.put_value(value, self.identifier)
 
     def __str__(self):
-        return 'STORE "%s"' % (self.identifier)
+        return 'STORE "%s" (%d)' % (self.identifier, self.index)
 
 
 class LABEL(Opcode):


More information about the pypy-commit mailing list