Commits

Alex Gaynor committed 041945f

fix, and mark something as elidable

Comments (0)

Files changed (2)

pypy/interpreter/baseobjspace.py

     def int_w(self, space):
         raise OperationError(space.w_TypeError,
                              typed_unwrap_error_msg(space, "integer", self))
-    
+
     def uint_w(self, space):
         raise OperationError(space.w_TypeError,
                              typed_unwrap_error_msg(space, "integer", self))
-    
+
     def bigint_w(self, space):
         raise OperationError(space.w_TypeError,
                              typed_unwrap_error_msg(space, "integer", self))
         self.interned_strings[s] = w_s
         return w_s
 
+    @jit.elidable
     def new_interned_str(self, s):
         try:
             return self.interned_strings[s]
         if not self.is_true(self.isinstance(w_obj, self.w_str)):
             raise OperationError(self.w_TypeError,
                                  self.wrap('argument must be a string'))
-        return self.str_w(w_obj)            
+        return self.str_w(w_obj)
 
     def unicode_w(self, w_obj):
         return w_obj.unicode_w(self)
     'UnicodeEncodeError',
     'UnicodeDecodeError',
     ]
-    
+
 if sys.platform.startswith("win"):
     ObjSpace.ExceptionTable += ['WindowsError']
 

pypy/objspace/std/tupletype.py

     assert False
 
 @jit.look_inside_iff(lambda space, w_tuple, list_w:
-    isvirtual(list_w) or (isconstant(len(list_w)) and len(list_w) <= 5)
+    jit.isvirtual(list_w) or (jit.isconstant(len(list_w)) and len(list_w) <= 5)
 )
 def make_tuple(space, w_tuple, list_w):
     from pypy.objspace.std.tupleobject import W_TupleObject