Maciej Fijalkowski committed 645f736 Draft

hopefully fix test_jit_get_stats

Comments (0)

Files changed (2)


         if gc_ll_descr.gcrootmap:
-        debug_start('jit-backend-counts')
-        self.set_debug(have_debug_prints())
-        debug_stop('jit-backend-counts')
+        if not self._debug:
+            # if self._debug is already set it means that someone called
+            # set_debug by hand before initializing the assembler. Leave it
+            # as it is
+            debug_start('jit-backend-counts')
+            self.set_debug(have_debug_prints())
+            debug_stop('jit-backend-counts')
     def setup(self, looptoken):
         assert self.memcpy_addr != 0, "setup_once() not called?"


         assert bound & (bound-1) == 0       # a power of two
     def test_jit_get_stats(self):
-        py.test.xfail()
         driver = JitDriver(greens = [], reds = ['i'])
         def f():
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.