Commits

Lars Wassermann committed c9013e7 Merge

merge

  • Participants
  • Parent commits b5b267b, d9a275c

Comments (0)

Files changed (2)

File spyvm/model.py

 class W_BytesObject(W_AbstractObjectWithClassReference):
     def __init__(self, w_class, size):
         W_AbstractObjectWithClassReference.__init__(self, w_class)
+        assert isinstance(size, int)
         self.bytes = ['\x00'] * size
 
     def at0(self, space, index0):

File spyvm/test/jit.py

 
         interp = tinyBenchmarks()
         def interp_w():
-            counter = 0
-            try:
-                while True:
-                    counter += 1
-                    s_active_context = interp.s_active_context()
-                    interp.bytecode_step_translated(s_active_context)
-                    if counter == 100000:
-                        counter = 0
-            except interpreter.ReturnFromTopLevel, e:
-                w_result = e.object
+            interp.interpret()
 
-        self.meta_interp(interp_w, [], listcomp=True, listops=True, backendopt=True)
+        self.meta_interp(interp_w, [], listcomp=True, listops=True,
+                        #backendopt=True
+                        )