Author: Maciej Fijalkowski <[email protected]>
Branch: remove-globals-in-jit
Changeset: r59724:68c4c8de1f82
Date: 2013-01-05 14:58 +0200
http://bitbucket.org/pypy/pypy/changeset/68c4c8de1f82/
Log: small cleanup here
diff --git a/pypy/rpython/annlowlevel.py b/pypy/rpython/annlowlevel.py
--- a/pypy/rpython/annlowlevel.py
+++ b/pypy/rpython/annlowlevel.py
@@ -2,7 +2,6 @@
The code needed to flow and annotate low-level helpers -- the ll_*() functions
"""
-import types
from pypy.tool.sourcetools import valid_identifier
from pypy.annotation import model as annmodel
from pypy.annotation.policy import AnnotatorPolicy, Sig
@@ -13,6 +12,7 @@
from pypy.objspace.flow.model import Constant
from pypy.translator.simplify import get_functype
from pypy.rpython.rmodel import warning
+from pypy.rlib.objectmodel import specialize
class KeyComp(object):
def __init__(self, val):
@@ -504,13 +504,13 @@
else:
raise NotImplementedError("cast_object_to_ptr(%r, ...)" % PTR)
[email protected](0)
def cast_instance_to_base_ptr(instance):
return cast_object_to_ptr(base_ptr_lltype(), instance)
-cast_instance_to_base_ptr._annspecialcase_ = 'specialize:argtype(0)'
[email protected](0)
def cast_instance_to_base_obj(instance):
return cast_object_to_ptr(base_obj_ootype(), instance)
-cast_instance_to_base_obj._annspecialcase_ = 'specialize:argtype(0)'
def base_ptr_lltype():
from pypy.rpython.lltypesystem.rclass import OBJECTPTR
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit