[pypy-svn] r68108 - pypy/trunk/pypy/jit/backend/cli
antocuni at codespeak.net
antocuni at codespeak.net
Thu Oct 1 17:01:01 CEST 2009
Author: antocuni
Date: Thu Oct 1 17:01:00 2009
New Revision: 68108
Modified:
pypy/trunk/pypy/jit/backend/cli/method.py
Log:
implement op_runtimenew: this fixes test_instantiate_does_not_call
Modified: pypy/trunk/pypy/jit/backend/cli/method.py
==============================================================================
--- pypy/trunk/pypy/jit/backend/cli/method.py (original)
+++ pypy/trunk/pypy/jit/backend/cli/method.py Thu Oct 1 17:01:00 2009
@@ -538,7 +538,11 @@
self.store_result(op)
def emit_op_runtimenew(self, op):
- raise NotImplementedError
+ clitype_utils = dotnet.typeof(Utils)
+ methinfo = clitype_utils.GetMethod('RuntimeNew')
+ op.args[0].load(self)
+ self.il.Emit(OpCodes.Call, methinfo)
+ self.store_result(op)
def emit_op_instanceof(self, op):
descr = op.descr
More information about the Pypy-commit
mailing list