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

fijal at codespeak.net fijal at codespeak.net
Sun May 6 12:08:52 CEST 2007


Author: fijal
Date: Sun May  6 12:08:52 2007
New Revision: 42739

Modified:
   pypy/dist/pypy/translator/js/opcodes.py
Log:
Minor cleanup


Modified: pypy/dist/pypy/translator/js/opcodes.py
==============================================================================
--- pypy/dist/pypy/translator/js/opcodes.py	(original)
+++ pypy/dist/pypy/translator/js/opcodes.py	Sun May  6 12:08:52 2007
@@ -124,8 +124,6 @@
     'oosetfield' : [_SetFieldDispatcher(Builtins, class_map)],
     'oogetfield' : [_GetFieldDispatcher(Builtins, class_map)],
     'oosend'     : [_MethodDispatcher(Builtins, class_map)],
-    #'ooupcast'   : [_NotImplemented("Inheritance not implemented (ooupcast)")],
-    #'oodowncast' : [_NotImplemented("Inheritance not implemented (oodowncast)")],
     'ooupcast'   : DoNothing,
     'oodowncast' : DoNothing,        
     'oononnull'  : [PushAllArgs,_Prefix('!!')],
@@ -133,10 +131,6 @@
     'ooparse_int' : [PushAllArgs,_CastFun("parseInt",2)],
     'ooparse_float' : [PushAllArgs,_CastFun("parseFloat",1)],
     'oois'       : '===',
-    # when casting from bool we want that every truth value is casted
-    # to 1: we can't simply DoNothing, because the CLI stack could
-    # contains a truth value not equal to 1, so we should use the !=0
-    # trick.
     'cast_bool_to_int':         CopyName,
     'cast_bool_to_uint':        CopyName,
     'cast_bool_to_float':       CopyName,


More information about the pypy-svn mailing list