Author: Daniel Roberts <[email protected]> Branch: ootype-rerased Changeset: r45724:ebe84b0f0660 Date: 2011-07-18 14:19 -0700 http://bitbucket.org/pypy/pypy/changeset/ebe84b0f0660/
Log: Added microinstructions for boxing and unboxing integers diff --git a/pypy/translator/jvm/typesystem.py b/pypy/translator/jvm/typesystem.py --- a/pypy/translator/jvm/typesystem.py +++ b/pypy/translator/jvm/typesystem.py @@ -963,6 +963,8 @@ PYPYRUNTIMENEW = Method.s(jPyPy, 'RuntimeNew', (jClass,), jObject) PYPYSTRING2BYTES = Method.s(jPyPy, 'string2bytes', (jString,), jByteArray) PYPYARRAYTOLIST = Method.s(jPyPy, 'array_to_list', (jObjectArray,), jArrayList) +PYPYBOXINT = Method.s(jPyPy, 'box_integer', (jInt,), jIntegerClass) +PYPYUNBOXINT = Method.s(jPyPy, 'unbox_integer', (jIntegerClass,), jInt) PYPYOOPARSEFLOAT = Method.v(jPyPy, 'ooparse_float', (jString,), jDouble) OBJECTGETCLASS = Method.v(jObject, 'getClass', (), jClass) CLASSGETNAME = Method.v(jClass, 'getName', (), jString) _______________________________________________ pypy-commit mailing list [email protected] http://mail.python.org/mailman/listinfo/pypy-commit
