[pypy-svn] r56331 - pypy/dist/pypy/translator/js

fijal at codespeak.net fijal at codespeak.net
Sun Jul 6 05:05:52 CEST 2008


Author: fijal
Date: Sun Jul  6 05:05:50 2008
New Revision: 56331

Modified:
   pypy/dist/pypy/translator/js/function.py
Log:
Adapt a bit to new interface. Not sure how to implement classof
opcode in js


Modified: pypy/dist/pypy/translator/js/function.py
==============================================================================
--- pypy/dist/pypy/translator/js/function.py	(original)
+++ pypy/dist/pypy/translator/js/function.py	Sun Jul  6 05:05:50 2008
@@ -1,7 +1,3 @@
-try:
-    set
-except NameError:
-    from sets import Set as set
 
 from pypy.objspace.flow import model as flowmodel
 from pypy.rpython.lltypesystem.lltype import Signed, Unsigned, Void, Bool, Float
@@ -221,7 +217,7 @@
         pass
 
     def begin_catch(self, llexitcase):
-        real_name = self.cts.lltype_to_cts(llexitcase._inst.class_._INSTANCE)
+        real_name = self.cts.lltype_to_cts(llexitcase._INSTANCE)
         s = "isinstanceof(exc, %s)"%real_name
         self.ilasm.branch_if_string(s)
     



More information about the Pypy-commit mailing list