[pypy-svn] pypy arm-backend-2: Some assert and variables to translate only the backend, without a frontend

bivab commits-noreply at bitbucket.org
Fri Dec 17 18:22:00 CET 2010


Author: David Schneider <david.schneider at picle.org>
Branch: arm-backend-2
Changeset: r40088:0796b85d49ed
Date: 2010-12-17 11:38 +0100
http://bitbucket.org/pypy/pypy/changeset/0796b85d49ed/

Log:	Some assert and variables to translate only the backend, without a frontend

diff --git a/pypy/jit/backend/model.py b/pypy/jit/backend/model.py
--- a/pypy/jit/backend/model.py
+++ b/pypy/jit/backend/model.py
@@ -18,6 +18,7 @@
     _all_size_descrs_with_vtable = None
     _vtable_to_descr_dict = None
 
+
     def __init__(self):
         self.fail_descr_list = []
         self.fail_descr_free_list = []

diff --git a/pypy/jit/codewriter/heaptracker.py b/pypy/jit/codewriter/heaptracker.py
--- a/pypy/jit/codewriter/heaptracker.py
+++ b/pypy/jit/codewriter/heaptracker.py
@@ -84,6 +84,7 @@
         # Build the dict {vtable: sizedescr} at runtime.
         # This is necessary because the 'vtables' are just pointers to
         # static data, so they can't be used as keys in prebuilt dicts.
+        assert cpu._all_size_descrs_with_vtable is not None
         d = cpu._vtable_to_descr_dict
         if d is None:
             d = cpu._vtable_to_descr_dict = {}



More information about the Pypy-commit mailing list