Author: Carl Friedrich Bolz <cfb...@gmx.de> Branch: celldict-versions Changeset: r46824:922258c1a762 Date: 2011-08-27 19:09 +0200 http://bitbucket.org/pypy/pypy/changeset/922258c1a762/
Log: more fixes diff --git a/pypy/module/pypyjit/test_pypy_c/test_call.py b/pypy/module/pypyjit/test_pypy_c/test_call.py --- a/pypy/module/pypyjit/test_pypy_c/test_call.py +++ b/pypy/module/pypyjit/test_pypy_c/test_call.py @@ -66,23 +66,23 @@ ops = entry_bridge.ops_by_id('cond', opcode='LOAD_GLOBAL') assert log.opnames(ops) == ["guard_value", "getfield_gc", "guard_value", - "getfield_gc", "guard_value"] + "getfield_gc", "guard_value", + "guard_not_invalidated"] ops = entry_bridge.ops_by_id('add', opcode='LOAD_GLOBAL') assert log.opnames(ops) == ["guard_not_invalidated"] # ops = entry_bridge.ops_by_id('call', opcode='LOAD_GLOBAL') - assert log.opnames(ops) == ["guard_not_invalidated"] + assert log.opnames(ops) == [] # assert entry_bridge.match_by_id('call', """ - guard_not_invalidated(descr=...) p38 = call(ConstClass(getexecutioncontext), descr=<GcPtrCallDescr>) p39 = getfield_gc(p38, descr=<GcPtrFieldDescr pypy.interpreter.executioncontext.ExecutionContext.inst_topframeref .*>) i40 = force_token() p41 = getfield_gc(p38, descr=<GcPtrFieldDescr pypy.interpreter.executioncontext.ExecutionContext.inst_w_tracefunc .*>) - guard_isnull(p41, descr=<Guard17>) + guard_isnull(p41, descr=...) i42 = getfield_gc(p38, descr=<NonGcPtrFieldDescr pypy.interpreter.executioncontext.ExecutionContext.inst_profilefunc .*>) i43 = int_is_zero(i42) - guard_true(i43, descr=<Guard18>) + guard_true(i43, descr=...) i50 = force_token() """) # diff --git a/pypy/module/pypyjit/test_pypy_c/test_globals.py b/pypy/module/pypyjit/test_pypy_c/test_globals.py --- a/pypy/module/pypyjit/test_pypy_c/test_globals.py +++ b/pypy/module/pypyjit/test_pypy_c/test_globals.py @@ -20,11 +20,9 @@ guard_value(p10, ConstPtr(ptr11), descr=...) p12 = getfield_gc(p10, descr=<GcPtrFieldDescr .*W_DictMultiObject.inst_strategy .*>) guard_value(p12, ConstPtr(ptr13), descr=...) - p15 = getfield_gc(ConstPtr(ptr14), descr=<GcPtrFieldDescr .*ModuleCell.inst_w_value .*>) - guard_isnull(p15, descr=...) guard_not_invalidated(descr=...) p19 = getfield_gc(ConstPtr(p17), descr=<GcPtrFieldDescr .*W_DictMultiObject.inst_strategy .*>) guard_value(p19, ConstPtr(ptr20), descr=...) p22 = getfield_gc(ConstPtr(ptr21), descr=<GcPtrFieldDescr .*ModuleCell.inst_w_value .*>) guard_nonnull(p22, descr=...) - """) \ No newline at end of file + """) diff --git a/pypy/module/pypyjit/test_pypy_c/test_instance.py b/pypy/module/pypyjit/test_pypy_c/test_instance.py --- a/pypy/module/pypyjit/test_pypy_c/test_instance.py +++ b/pypy/module/pypyjit/test_pypy_c/test_instance.py @@ -151,6 +151,7 @@ assert loop.match_by_id('loadattr', ''' guard_not_invalidated(descr=...) + i16 = arraylen_gc(p10, descr=<GcPtrArrayDescr>) i19 = call(ConstClass(ll_dict_lookup), _, _, _, descr=...) guard_no_exception(descr=...) i21 = int_and(i19, _) diff --git a/pypy/module/pypyjit/test_pypy_c/test_math.py b/pypy/module/pypyjit/test_pypy_c/test_math.py --- a/pypy/module/pypyjit/test_pypy_c/test_math.py +++ b/pypy/module/pypyjit/test_pypy_c/test_math.py @@ -47,6 +47,7 @@ assert loop.match(""" i2 = int_lt(i0, i1) guard_true(i2, descr=...) + guard_not_invalidated(descr=...) f1 = cast_int_to_float(i0) i3 = float_eq(f1, inf) i4 = float_eq(f1, -inf) @@ -60,4 +61,4 @@ i7 = int_add(i0, f1) --TICK-- jump(..., descr=) - """) \ No newline at end of file + """) diff --git a/pypy/module/pypyjit/test_pypy_c/test_misc.py b/pypy/module/pypyjit/test_pypy_c/test_misc.py --- a/pypy/module/pypyjit/test_pypy_c/test_misc.py +++ b/pypy/module/pypyjit/test_pypy_c/test_misc.py @@ -248,5 +248,4 @@ """, [1000]) loop, = log.loops_by_id("globalread", is_entry_bridge=True) - op, = loop.ops_by_id("globalread") - assert op.name == "guard_not_invalidated" + assert len(loop.ops_by_id("globalread")) == 0 diff --git a/pypy/module/pypyjit/test_pypy_c/test_string.py b/pypy/module/pypyjit/test_pypy_c/test_string.py --- a/pypy/module/pypyjit/test_pypy_c/test_string.py +++ b/pypy/module/pypyjit/test_pypy_c/test_string.py @@ -105,5 +105,5 @@ i58 = int_add_ovf(i6, i57) guard_no_overflow(descr=...) --TICK-- - jump(p0, p1, p2, p3, p4, p5, i58, i7, i8, p9, p10, descr=<Loop4>) + jump(p0, p1, p2, p3, p4, p5, i58, i7, descr=<Loop4>) """) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit