Author: Daniel Roberts <[email protected]>
Branch: ootype-rerased
Changeset: r45726:87e475193302
Date: 2011-07-18 14:20 -0700
http://bitbucket.org/pypy/pypy/changeset/87e475193302/
Log: Actually implemented the opcodes.
diff --git a/pypy/translator/jvm/src/pypy/PyPy.java
b/pypy/translator/jvm/src/pypy/PyPy.java
--- a/pypy/translator/jvm/src/pypy/PyPy.java
+++ b/pypy/translator/jvm/src/pypy/PyPy.java
@@ -307,6 +307,14 @@
return result;
}
+ public static Object box_integer(int x) {
+ return new Integer(x);
+ }
+
+ public static int unbox_integer(Object o) {
+ Integer x = (Integer)o;
+ return x.intValue();
+ }
// Used in testing the JVM backend:
//
// A series of methods which serve a similar purpose to repr() in
Python:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit