Author: Carl Friedrich Bolz <[email protected]>
Branch: improve-heap-caching-tracing
Changeset: r47123:055211ce9263
Date: 2011-09-07 10:38 +0200
http://bitbucket.org/pypy/pypy/changeset/055211ce9263/
Log: typo
diff --git a/pypy/jit/metainterp/heapcache.py b/pypy/jit/metainterp/heapcache.py
--- a/pypy/jit/metainterp/heapcache.py
+++ b/pypy/jit/metainterp/heapcache.py
@@ -47,7 +47,7 @@
def is_class_known(self, box):
return box in self.known_class_boxes
- def class_now_know(self, box):
+ def class_now_known(self, box):
self.known_class_boxes[box] = None
def is_nonstandard_virtualizable(self, box):
diff --git a/pypy/jit/metainterp/pyjitpl.py b/pypy/jit/metainterp/pyjitpl.py
--- a/pypy/jit/metainterp/pyjitpl.py
+++ b/pypy/jit/metainterp/pyjitpl.py
@@ -375,7 +375,7 @@
cls = heaptracker.descr2vtable(cpu, sizedescr)
resbox = self.execute(rop.NEW_WITH_VTABLE, ConstInt(cls))
self.metainterp.heapcache.new(resbox)
- self.metainterp.heapcache.class_now_know(resbox)
+ self.metainterp.heapcache.class_now_known(resbox)
return resbox
## @FixME #arguments("box")
@@ -884,7 +884,7 @@
clsbox = self.cls_of_box(box)
if not self.metainterp.heapcache.is_class_known(box):
self.generate_guard(rop.GUARD_CLASS, box, [clsbox], resumepc=orgpc)
- self.metainterp.heapcache.class_now_know(box)
+ self.metainterp.heapcache.class_now_known(box)
return clsbox
@arguments("int", "orgpc")
diff --git a/pypy/jit/metainterp/test/test_heapcache.py
b/pypy/jit/metainterp/test/test_heapcache.py
--- a/pypy/jit/metainterp/test/test_heapcache.py
+++ b/pypy/jit/metainterp/test/test_heapcache.py
@@ -40,7 +40,7 @@
h = HeapCache()
assert not h.is_class_known(1)
assert not h.is_class_known(2)
- h.class_now_know(1)
+ h.class_now_known(1)
assert h.is_class_known(1)
assert not h.is_class_known(2)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit