[pypy-svn] r40659 - pypy/dist/pypy/translator/js
fijal at codespeak.net
fijal at codespeak.net
Sun Mar 18 12:16:23 CET 2007
Author: fijal
Date: Sun Mar 18 12:16:17 2007
New Revision: 40659
Modified:
pypy/dist/pypy/translator/js/opcodes.py
Log:
Add overflow opcode with no overflow at all. This is very dirty and needs
fixes as soon as we'll sit on numbers seriously.
Modified: pypy/dist/pypy/translator/js/opcodes.py
==============================================================================
--- pypy/dist/pypy/translator/js/opcodes.py (original)
+++ pypy/dist/pypy/translator/js/opcodes.py Sun Mar 18 12:16:17 2007
@@ -32,14 +32,18 @@
opcodes = {'int_mul': '*',
'int_add': '+',
'int_sub': '-',
+ 'int_sub_ovf': '-', # XXX overflow
'int_floordiv': '/',
'int_mod': '%',
+ 'int_mod_ovf': '%', # XXX: what's that?
'int_mod_zer': '%', # XXX: fix zero stuff
'int_and': '&',
'int_or': '|',
'int_xor': '^',
'int_lshift': '<<',
+ 'int_lshift_ovf': '<<', # XXX overflow
'int_rshift': '>>',
+ 'int_rshift_ovf': '>>', # XXX overflow
'int_lt': '<',
'int_le': '<=',
'int_eq': '==',
@@ -147,6 +151,7 @@
'truncate_longlong_to_int': CopyName,
'debug_assert' : DoNothing,
+ 'resume_point' : DoNothing,
}
for key, value in opcodes.iteritems():
More information about the Pypy-commit
mailing list