Skip to content

Commit

Permalink
Merge pull request #106 from HPI-SWA-Lab/timfel-patch-1
Browse files Browse the repository at this point in the history
Update test_basic.py
  • Loading branch information
timfel committed Aug 18, 2015
2 parents 0e5a93a + 2d7c2b3 commit 12b14a9
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions spyvm/test/jittest/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,32 +521,33 @@ def test_object_access(self, spy, tmpdir):
1 to: 10000 do: [:i | (o at: (i \\\\ 2) + 1) at: (i \\\\ 2) + 1].
""")
self.assert_matches(traces[0].loop, """
guard_not_invalidated(descr=<Guard0x92b9910>),
guard_not_invalidated(descr=<Guard0xa9f0910>),
i99 = int_le(i98, 10000),
guard_true(i99, descr=<Guard0x92b98e0>),
guard_true(i99, descr=<Guard0xa9f08e0>),
i100 = int_mod(i98, 2),
i101 = int_rshift(i100, 31),
i102 = int_and(2, i101),
i103 = int_add(i100, i102),
i104 = int_add(i103, 1),
p105 = getarrayitem_gc(p70, 32, descr=<ArrayP 4>),
guard_value(p105, ConstPtr(ptr78), descr=<Guard0x92b98b0>),
guard_value(p105, ConstPtr(ptr78), descr=<Guard0xa9f08b0>),
i106 = uint_lt(i103, i82),
guard_true(i106, descr=<Guard0x92b9880>),
guard_true(i106, descr=<Guard0xa9f0880>),
i107 = int_lt(i103, 0),
guard_false(i107, descr=<Guard0x92b9850>),
guard_false(i107, descr=<Guard0xa9f0850>),
p108 = getarrayitem_gc(p81, i103, descr=<ArrayP 4>),
guard_class(p108, ConstClass(W_PointersObject), descr=<Guard0x92b9820>),
guard_class(p108, ConstClass(W_PointersObject), descr=<Guard0xa9f0820>),
p109 = getfield_gc_pure(p108, descr=<FieldP spyvm.model.W_AbstractObjectWithClassReference.inst_w_class 12>),
guard_value(p109, ConstPtr(ptr90), descr=<Guard0x95237f0>),
p110 = getfield_gc(p109, descr=<FieldP spyvm.model.W_PointersObject.inst_strategy 24>),
guard_value(p110, ConstPtr(ptr90), descr=<Guard0xa9f07f0>),
p111 = getfield_gc(p108, descr=<FieldP spyvm.model.W_PointersObject.inst_strategy 24>),
guard_nonnull_class(p111, ConstClass(ListStrategy), descr=<Guard0x92b97c0>),
guard_nonnull_class(p111, ConstClass(ListStrategy), descr=<Guard0xa9f07c0>),
p112 = getfield_gc(p108, descr=<FieldP spyvm.model.W_PointersObject.inst__storage 20>),
i113 = arraylen_gc(p112, descr=<ArrayP 4>),
i114 = uint_lt(i103, i113),
guard_true(i114, descr=<Guard0x92b9790>),
guard_true(i114, descr=<Guard0xa9f0790>),
p115 = getarrayitem_gc(p112, i103, descr=<ArrayP 4>),
i116 = int_add(i98, 1),
i117 = arraylen_gc(p70, descr=<ArrayP 4>),
jump(p0, p1, i2, p3, p6, p7, i8, i9, p10, p11, i13, p14, p17, i116, p27, p29, p31, p33, p35, p37, p39, p41, p43, p45, p47, p70, i82, p81, i73, descr=TargetToken(153767216))
jump(p0, p1, i2, p3, p6, p7, i8, i9, p10, p11, i13, p14, p17, i116, p27, p29, p31, p33, p35, p37, p39, p41, p43, p45, p47, p70, i82, p81, i73, descr=TargetToken(178109744))
""")

0 comments on commit 12b14a9

Please sign in to comment.