Author: Carl Friedrich Bolz <[email protected]>
Branch:
Changeset: r74032:90f8290e7f15
Date: 2014-10-21 13:41 +0200
http://bitbucket.org/pypy/pypy/changeset/90f8290e7f15/
Log: look into rbigint by default
most methods there are either elidable anyway, or marked as
look_inside
diff --git a/pypy/module/pypyjit/policy.py b/pypy/module/pypyjit/policy.py
--- a/pypy/module/pypyjit/policy.py
+++ b/pypy/module/pypyjit/policy.py
@@ -120,7 +120,7 @@
def look_inside_function(self, func):
mod = func.__module__ or '?'
- if mod == 'rpython.rlib.rbigint' or mod == 'rpython.rlib.rlocale' or
mod == 'rpython.rlib.rsocket':
+ if mod == 'rpython.rlib.rlocale' or mod == 'rpython.rlib.rsocket':
return False
if mod.startswith('pypy.interpreter.astcompiler.'):
return False
diff --git a/rpython/rlib/rbigint.py b/rpython/rlib/rbigint.py
--- a/rpython/rlib/rbigint.py
+++ b/rpython/rlib/rbigint.py
@@ -427,7 +427,6 @@
def tolonglong(self):
return _AsLongLong(self)
- @jit.look_inside
def tobool(self):
return self.sign != 0
@@ -517,11 +516,9 @@
return (self.sign * self.digit(0)) == other
- @jit.look_inside
def ne(self, other):
return not self.eq(other)
- @jit.look_inside
def int_ne(self, other):
return not self.int_eq(other)
@@ -592,11 +589,9 @@
return True
return False
- @jit.look_inside
def le(self, other):
return not other.lt(self)
- @jit.look_inside
def int_le(self, other):
# Alternative that might be faster, reimplant this. as a check with
other + 1. But we got to check for overflow
# or reduce valid range.
@@ -605,19 +600,15 @@
return True
return self.int_lt(other)
- @jit.look_inside
def gt(self, other):
return other.lt(self)
- @jit.look_inside
def int_gt(self, other):
return not self.int_le(other)
- @jit.look_inside
def ge(self, other):
return not self.lt(other)
- @jit.look_inside
def int_ge(self, other):
return not self.int_lt(other)
@@ -784,7 +775,6 @@
return div
- @jit.look_inside
def div(self, other):
return self.floordiv(other)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit