[pypy-commit] pypy kill-gen-store-back-in: ups
fijal
noreply at buildbot.pypy.org
Wed Jul 10 20:58:06 CEST 2013
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: kill-gen-store-back-in
Changeset: r65325:a83e379514aa
Date: 2013-07-10 20:57 +0200
http://bitbucket.org/pypy/pypy/changeset/a83e379514aa/
Log: ups
diff --git a/rpython/jit/metainterp/resoperation.py b/rpython/jit/metainterp/resoperation.py
--- a/rpython/jit/metainterp/resoperation.py
+++ b/rpython/jit/metainterp/resoperation.py
@@ -158,7 +158,8 @@
return rop._MALLOC_FIRST <= self.getopnum() <= rop._MALLOC_LAST
def can_malloc(self):
- return self.is_call() or self.is_malloc()
+ return (rop._CANMALLOC_FIRST <= self.getopnum() <= rop._CANMALLOC_LAST
+ or self.is_call())
def is_call(self):
return rop._CALL_FIRST <= self.getopnum() <= rop._CALL_LAST
@@ -482,14 +483,16 @@
'RAW_LOAD/2d',
'GETFIELD_GC/1d',
'GETFIELD_RAW/1d',
+ '_CANMALLOC_FIRST',
'_MALLOC_FIRST',
'NEW/0d',
'NEW_WITH_VTABLE/1',
'NEW_ARRAY/1d',
'NEWSTR/1',
'NEWUNICODE/1',
+ '_MALLOC_LAST',
'FORCE_VIRTUALIZABLE/1d', # forces a non-standard virtualizable
- '_MALLOC_LAST',
+ '_CANMALLOC_LAST'
'FORCE_TOKEN/0',
'VIRTUAL_REF/2', # removed before it's passed to the backend
'READ_TIMESTAMP/0',
More information about the pypy-commit
mailing list