[pypy-svn] r30081 - in pypy/dist/pypy/translator/cli: . test

antocuni at codespeak.net antocuni at codespeak.net
Sun Jul 16 17:42:06 CEST 2006


Author: antocuni
Date: Sun Jul 16 17:41:54 2006
New Revision: 30081

Modified:
   pypy/dist/pypy/translator/cli/opcodes.py
   pypy/dist/pypy/translator/cli/test/test_objectmodel.py
Log:
Added support for 'hint'.



Modified: pypy/dist/pypy/translator/cli/opcodes.py
==============================================================================
--- pypy/dist/pypy/translator/cli/opcodes.py	(original)
+++ pypy/dist/pypy/translator/cli/opcodes.py	Sun Jul 16 17:41:54 2006
@@ -56,7 +56,8 @@
     'ooparse_int':              [PushAllArgs, 'call int32 [pypylib]pypy.runtime.Utils::OOParseInt(string, int32)'],
     'oonewcustomdict':          [NewCustomDict],
     
-    'same_as':                  DoNothing, # TODO: does same_as really do nothing else than renaming?    
+    'same_as':                  DoNothing,
+    'hint':                     [PushArg(0), StoreResult],
     'direct_call':              [Call],
     'indirect_call':            [IndirectCall],
 

Modified: pypy/dist/pypy/translator/cli/test/test_objectmodel.py
==============================================================================
--- pypy/dist/pypy/translator/cli/test/test_objectmodel.py	(original)
+++ pypy/dist/pypy/translator/cli/test/test_objectmodel.py	Sun Jul 16 17:41:54 2006
@@ -9,6 +9,3 @@
     test_rtype_r_dict_bm = skip_r_dict
     test_rtype_constant_r_dicts = skip_r_dict
     test_rtype_r_dict_singlefrozen_func_pbc = skip_r_dict
-
-    def test_hint(self):
-        py.test.skip('Hint is not supported, yet')



More information about the Pypy-commit mailing list