aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Fijalkowski <fijall@gmail.com>2015-02-27 16:39:47 +0200
committerMaciej Fijalkowski <fijall@gmail.com>2015-02-27 16:39:47 +0200
commit8b9ceedcd07f88ae7da9c7842895022559921972 (patch)
treecd3d1c56715d0908fa532c18d1a7b7b6b55e0b2a /rpython/jit/metainterp/optimizeopt/intutils.py
parentmerge default (diff)
downloadpypy-8b9ceedcd07f88ae7da9c7842895022559921972.tar.gz
pypy-8b9ceedcd07f88ae7da9c7842895022559921972.tar.bz2
pypy-8b9ceedcd07f88ae7da9c7842895022559921972.zip
(fijal, arigo) hack enough on VirtualInfo to make the first test allocating
NEW_WITH_VTABLE pass
Diffstat (limited to 'rpython/jit/metainterp/optimizeopt/intutils.py')
-rw-r--r--rpython/jit/metainterp/optimizeopt/intutils.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/rpython/jit/metainterp/optimizeopt/intutils.py b/rpython/jit/metainterp/optimizeopt/intutils.py
index 567fd40afb..368bf8cedf 100644
--- a/rpython/jit/metainterp/optimizeopt/intutils.py
+++ b/rpython/jit/metainterp/optimizeopt/intutils.py
@@ -1,15 +1,16 @@
from rpython.rlib.rarithmetic import ovfcheck, LONG_BIT, maxint, is_valid_int
from rpython.rlib.objectmodel import we_are_translated
-from rpython.jit.metainterp.resoperation import rop, ResOperation, AbstractValue
+from rpython.jit.metainterp.resoperation import rop, ResOperation
+from rpython.jit.metainterp.optimizeopt.info import AbstractInfo
from rpython.jit.metainterp.history import ConstInt
+
MAXINT = maxint
MININT = -maxint - 1
-class IntBound(AbstractValue):
+class IntBound(AbstractInfo):
_attrs_ = ('has_upper', 'has_lower', 'upper', 'lower')
- is_info_class = True
def __init__(self, lower, upper):
self.has_upper = True