Author: Stephan <[email protected]>
Branch: 
Changeset: r93:e431aad1b694
Date: 2011-06-03 14:58 +0200
http://bitbucket.org/pypy/lang-js/changeset/e431aad1b694/

Log:    added missing emit functions

diff --git a/js/jscode.py b/js/jscode.py
--- a/js/jscode.py
+++ b/js/jscode.py
@@ -123,7 +123,11 @@
         return opcode
     emit._annspecialcase_ = 'specialize:arg(1)'
 
+    def emit_str(self, s):
+        return self.emit('LOAD_STRINGCONSTANT', s)
 
+    def emit_int(self, i):
+        return self.emit('LOAD_INTCONSTANT', i)
 
     def unpop(self):
         if self.opcodes and isinstance(self.opcodes[-1], POP):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to