[pypy-svn] r34038 - pypy/dist/pypy/translator/jvm
niko at codespeak.net
niko at codespeak.net
Wed Nov 1 16:27:12 CET 2006
Author: niko
Date: Wed Nov 1 16:27:11 2006
New Revision: 34038
Modified:
pypy/dist/pypy/translator/jvm/generator.py
Log:
fix generator.py so that it uses lltype_to_cs instead of pending_class
Modified: pypy/dist/pypy/translator/jvm/generator.py
==============================================================================
--- pypy/dist/pypy/translator/jvm/generator.py (original)
+++ pypy/dist/pypy/translator/jvm/generator.py Wed Nov 1 16:27:11 2006
@@ -796,9 +796,9 @@
raise NotImplementedError
def new(self, TYPE):
- clsobj = self.db.pending_class(TYPE)
- ctor = Method(clsobj.name, "<init>", "()V", opcode=INVOKESPECIAL)
- self.emit(NEW, clsobj.jvm_type())
+ jtype = self.db.lltype_to_cts(TYPE)
+ ctor = Method(jtype.class_name(), "<init>", "()V", opcode=INVOKESPECIAL)
+ self.emit(NEW, jtype)
self.emit(DUP)
self.emit(ctor)
More information about the Pypy-commit
mailing list