Skip to content
Permalink
Browse files

updated test slightly

  • Loading branch information
alex committed Jun 19, 2013
1 parent fe9d836 commit e294c751890216e13509059973d63e7fa6e89447
Showing with 12 additions and 9 deletions.
  1. +12 −9 tests/jit/test_basic.py
@@ -80,25 +80,28 @@ def test_constant_string(self, topaz, tmpdir):
end
""")
self.assert_matches(traces[0].loop, """
label(p0, p1, p3, p4, p5, p6, p9, i34, p19, p21, p27, descr=TargetToken(4323625760))
label(p0, p1, p3, p4, p5, p6, p9, i35, p19, p21, p27, descr=TargetToken(4310789600))
debug_merge_point(0, 0, '<main> at LOAD_DEREF')
debug_merge_point(0, 0, '<main> at LOAD_CONST')
debug_merge_point(0, 0, '<main> at SEND')
setfield_gc(p21, 21, descr=<FieldS topaz.executioncontext.ExecutionContext.inst_last_instr 24>)
guard_not_invalidated(descr=<Guard0x101bf74c0>)
p36 = force_token()
i37 = int_lt(i34, 10000)
guard_true(i37, descr=<Guard0x101bf7448>)
guard_not_invalidated(descr=<Guard0x100fc35b0>)
p37 = force_token()
i38 = int_lt(i35, 10000)
guard_true(i38, descr=<Guard0x100fc3538>)
debug_merge_point(0, 0, '<main> at JUMP_IF_FALSE')
debug_merge_point(0, 0, '<main> at LOAD_DEREF')
debug_merge_point(0, 0, '<main> at LOAD_CONST')
debug_merge_point(0, 0, '<main> at COERCE_STRING')
debug_merge_point(0, 0, '<main> at SEND')
p38 = force_token()
i39 = int_add(i34, 1)
p39 = force_token()
debug_merge_point(0, 0, '<main> at SEND')
p40 = force_token()
i41 = int_add(i35, 1)
debug_merge_point(0, 0, '<main> at STORE_DEREF')
debug_merge_point(0, 0, '<main> at DISCARD_TOP')
debug_merge_point(0, 0, '<main> at JUMP')
debug_merge_point(0, 0, '<main> at LOAD_DEREF')
setfield_gc(p21, 35, descr=<FieldS topaz.executioncontext.ExecutionContext.inst_last_instr 24>)
jump(p0, p1, p3, p4, p5, p6, p9, i39, p19, p21, p27, descr=TargetToken(4323625760))
setfield_gc(p21, 41, descr=<FieldS topaz.executioncontext.ExecutionContext.inst_last_instr 24>)
jump(p0, p1, p3, p4, p5, p6, p9, i41, p19, p21, p27, descr=TargetToken(4310789600))
""")

0 comments on commit e294c75

Please sign in to comment.
You can’t perform that action at this time.