[pypy-commit] pypy default: add a fake jitdriver to the jitdriver static data (fixes many tests in test_ajit)
plan_rich
pypy.commits at gmail.com
Wed Aug 17 05:06:14 EDT 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch:
Changeset: r86241:0b56b66d816b
Date: 2016-08-17 11:04 +0200
http://bitbucket.org/pypy/pypy/changeset/0b56b66d816b/
Log: add a fake jitdriver to the jitdriver static data (fixes many tests
in test_ajit)
diff --git a/rpython/jit/metainterp/test/support.py b/rpython/jit/metainterp/test/support.py
--- a/rpython/jit/metainterp/test/support.py
+++ b/rpython/jit/metainterp/test/support.py
@@ -64,6 +64,10 @@
testself.all_graphs = graphs
result_kind = history.getkind(graphs[0].getreturnvar().concretetype)[0]
+
+ class FakeJitDriver:
+ name = 'fakejitdriver'
+
class FakeJitDriverSD:
num_green_args = 0
portal_graph = graphs[0]
@@ -72,6 +76,7 @@
result_type = result_kind
portal_runner_ptr = "???"
vec = False
+ jitdriver = FakeJitDriver()
stats = history.Stats(None)
cpu = CPUClass(rtyper, stats, None, False)
More information about the pypy-commit
mailing list