Skip to content

Instantly share code, notes, and snippets.

@smarr

smarr/trace.py Secret

Last active Aug 6, 2021
Embed
What would you like to do?
Trace for Dispatch.som Benchmark
[3c124ac64f] {jit-log-opt-loop
# Loop 1 (JUMP_IF_GREATER @ 9 in Dispatch>>benchmark) : loop with 112 ops
[i0, theStack, aFrame2]
+283: label(i0, theStack, aFrame2, descr=TargetToken(140272489685024))
debug_merge_point(0, 0, 'JUMP_IF_GREATER @ 9 in Dispatch>>benchmark')
+288: guard_value(i0, 2, descr=<Guard0x7f93bbeb4078>) [i0, aFrame2, theStack]
+305: someInteger1 = getarrayitem_gc_r(aFrame2, 2, descr=<ArrayP 8>)
+316: p7 = getarrayitem_gc_r(aFrame2, 1, descr=<ArrayP 8>)
+320: i8 = getfield_gc_i(someInteger1, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+324: i9 = getfield_gc_i(p7, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+328: i10 = int_gt(i8, i9)
+331: guard_false(i10, descr=<Guard0x7f93bbeba020>) [i0, aFrame2, theStack]
debug_merge_point(0, 0, 'DUP @ 12 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'POP_FRAME_1 @ 13 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'PUSH_INNER_1 @ 16 in Dispatch>>benchmark')
+337: p12 = getarrayitem_gc_r(theStack, 0, descr=<ArrayP 8>)
+348: p14 = getarrayitem_gc_r(p12, 2, descr=<ArrayP 8>)
debug_merge_point(0, 0, 'PUSH_INNER_0 @ 19 in Dispatch>>benchmark')
+352: p16 = getarrayitem_gc_r(p12, 1, descr=<ArrayP 8>)
debug_merge_point(0, 0, 'PUSH_FRAME_1 @ 22 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'SEND_2 @ 25 in Dispatch>>benchmark')
+366: setarrayitem_gc(aFrame2, 3, p14, descr=<ArrayP 8>)
+380: setarrayitem_gc(aFrame2, 4, p16, descr=<ArrayP 8>)
+394: setarrayitem_gc(aFrame2, 5, someInteger1, descr=<ArrayP 8>)
+409: setarrayitem_gc(theStack, 2, someInteger1, descr=<ArrayP 8>)
+413: guard_class(p16, 4415661632, descr=<Guard0x7f93bbeb40d0>) [p16, aFrame2, theStack]
+426: guard_not_invalidated(descr=<Guard0x7f93bbeba060>) [p16, aFrame2, theStack]
+426: p22 = getfield_gc_r(p16, descr=<FieldP som.vmobjects.object_without_fields.ObjectWithoutFields.inst__object_layout 8 pure>)
+437: guard_value(p22, ConstPtr(ptr23), descr=<Guard0x7f93bbeba0a0>) [p16, aFrame2, theStack]
+446: enter_portal_frame(0, 0)
debug_merge_point(1, 1, 'PUSH_FRAME_1 @ 0 in Dispatch>>method:')
debug_merge_point(1, 1, 'RETURN_LOCAL @ 3 in Dispatch>>method:')
+446: leave_portal_frame(0)
debug_merge_point(0, 0, 'SEND_2 @ 27 in Dispatch>>benchmark')
+456: setarrayitem_gc(aFrame2, 4, someInteger1, descr=<ArrayP 8>)
+460: setarrayitem_gc(aFrame2, 5, ConstPtr(null), descr=<ArrayP 8>)
+468: guard_class(p14, ConstClass(Integer), descr=<Guard0x7f93bbeb4128>) [p14, aFrame2, theStack]
+480: setarrayitem_gc(aFrame2, 4, ConstPtr(null), descr=<ArrayP 8>)
+488: guard_class(someInteger1, ConstClass(Integer), descr=<Guard0x7f93bbeb4180>) [aFrame2, theStack, someInteger1, p14]
+500: i34 = getfield_gc_i(p14, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+504: i35 = int_add_ovf(i34, i8)
+507: guard_no_overflow(descr=<Guard0x7f93bbeba0e0>) [aFrame2, theStack, someInteger1, p14]
debug_merge_point(0, 0, 'DUP @ 29 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'POP_INNER_1 @ 30 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'POP @ 33 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'INC @ 34 in Dispatch>>benchmark')
+513: p36 = new_with_vtable(descr=<SizeDescr 16>)
+550: setfield_gc(p36, i35, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+565: setarrayitem_gc(p12, 2, p36, descr=<ArrayP 8>)
+569: p39 = getarrayitem_gc_r(aFrame2, 2, descr=<ArrayP 8>)
+573: setarrayitem_gc(aFrame2, 3, ConstPtr(null), descr=<ArrayP 8>)
+581: guard_nonnull_class(p39, ConstClass(Integer), descr=<Guard0x7f93bbeb41d8>) [p39, aFrame2, theStack]
+599: i43 = getfield_gc_i(p39, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+603: i45 = int_add_ovf(i43, 1)
+607: guard_no_overflow(descr=<Guard0x7f93bbeba120>) [p39, aFrame2, theStack]
debug_merge_point(0, 0, 'NIL_FRAME @ 35 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'JUMP_BACKWARD @ 37 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'JUMP_IF_GREATER @ 9 in Dispatch>>benchmark')
+613: p46 = new_with_vtable(descr=<SizeDescr 16>)
+624: setfield_gc(p46, i45, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+638: setarrayitem_gc(aFrame2, 2, p46, descr=<ArrayP 8>)
+660: setarrayitem_gc(theStack, 2, ConstPtr(ptr49), descr=<ArrayP 8>)
+664: label(theStack, aFrame2, p46, p7, i9, p12, p16, descr=TargetToken(140272489685104))
debug_merge_point(0, 0, 'JUMP_IF_GREATER @ 9 in Dispatch>>benchmark')
+672: i50 = getfield_gc_i(p46, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+676: i51 = int_gt(i50, i9)
+679: guard_false(i51, descr=<Guard0x7f93bbeb4230>) [i50, i9, aFrame2, theStack]
debug_merge_point(0, 0, 'DUP @ 12 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'POP_FRAME_1 @ 13 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'PUSH_INNER_1 @ 16 in Dispatch>>benchmark')
+685: p53 = getarrayitem_gc_r(p12, 2, descr=<ArrayP 8>)
debug_merge_point(0, 0, 'PUSH_INNER_0 @ 19 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'PUSH_FRAME_1 @ 22 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'SEND_2 @ 25 in Dispatch>>benchmark')
+699: setarrayitem_gc(aFrame2, 3, p53, descr=<ArrayP 8>)
+713: setarrayitem_gc(aFrame2, 4, p16, descr=<ArrayP 8>)
+727: setarrayitem_gc(aFrame2, 5, p46, descr=<ArrayP 8>)
+742: setarrayitem_gc(theStack, 2, p46, descr=<ArrayP 8>)
+746: guard_not_invalidated(descr=<Guard0x7f93bbeb4288>) [p16, aFrame2, theStack]
+746: enter_portal_frame(0, 0)
debug_merge_point(1, 1, 'PUSH_FRAME_1 @ 0 in Dispatch>>method:')
debug_merge_point(1, 1, 'RETURN_LOCAL @ 3 in Dispatch>>method:')
+746: leave_portal_frame(0)
debug_merge_point(0, 0, 'SEND_2 @ 27 in Dispatch>>benchmark')
+756: setarrayitem_gc(aFrame2, 4, p46, descr=<ArrayP 8>)
+760: setarrayitem_gc(aFrame2, 5, ConstPtr(null), descr=<ArrayP 8>)
+768: guard_class(p53, ConstClass(Integer), descr=<Guard0x7f93bbeb42e0>) [p53, aFrame2, theStack]
+780: i65 = getfield_gc_i(p53, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+784: setarrayitem_gc(aFrame2, 4, ConstPtr(null), descr=<ArrayP 8>)
+792: i68 = int_add_ovf(i65, i50)
+798: guard_no_overflow(descr=<Guard0x7f93bbeb4338>) [aFrame2, theStack, i50, i65]
debug_merge_point(0, 0, 'DUP @ 29 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'POP_INNER_1 @ 30 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'POP @ 33 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'INC @ 34 in Dispatch>>benchmark')
+804: p69 = new_with_vtable(descr=<SizeDescr 16>)
+841: setfield_gc(p69, i68, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+856: setarrayitem_gc(p12, 2, p69, descr=<ArrayP 8>)
+860: p72 = getarrayitem_gc_r(aFrame2, 2, descr=<ArrayP 8>)
+864: setarrayitem_gc(aFrame2, 3, ConstPtr(null), descr=<ArrayP 8>)
+872: guard_nonnull_class(p72, ConstClass(Integer), descr=<Guard0x7f93bbeb4390>) [p72, aFrame2, theStack]
+890: i76 = getfield_gc_i(p72, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+894: i78 = int_add_ovf(i76, 1)
+898: guard_no_overflow(descr=<Guard0x7f93bbeba160>) [p72, aFrame2, theStack]
debug_merge_point(0, 0, 'NIL_FRAME @ 35 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'JUMP_BACKWARD @ 37 in Dispatch>>benchmark')
debug_merge_point(0, 0, 'JUMP_IF_GREATER @ 9 in Dispatch>>benchmark')
+904: i79 = arraylen_gc(aFrame2, descr=<ArrayP 8>)
+904: i80 = arraylen_gc(theStack, descr=<ArrayP 8>)
+904: i81 = arraylen_gc(p12, descr=<ArrayP 8>)
+904: p82 = new_with_vtable(descr=<SizeDescr 16>)
+915: setfield_gc(p82, i78, descr=<FieldS som.vmobjects.integer.Integer.inst__embedded_integer 8 pure>)
+929: setarrayitem_gc(aFrame2, 2, p82, descr=<ArrayP 8>)
+951: setarrayitem_gc(theStack, 2, ConstPtr(ptr85), descr=<ArrayP 8>)
+955: jump(theStack, aFrame2, p82, p7, i9, p12, p16, descr=TargetToken(140272489685104))
+960: --end of the loop--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment