rm push/pop
This commit is contained in:
6
slots.ce
6
slots.ce
@@ -179,7 +179,7 @@ var run = function() {
|
||||
first_def[slot_num] = pc
|
||||
first_def_op[slot_num] = op
|
||||
}
|
||||
push(events, {kind: "DEF", slot: operand_val, pc: pc, instr: instr})
|
||||
events[] = {kind: "DEF", slot: operand_val, pc: pc, instr: instr}
|
||||
}
|
||||
di = di + 1
|
||||
}
|
||||
@@ -191,7 +191,7 @@ var run = function() {
|
||||
slot_num = text(operand_val)
|
||||
if (!uses[slot_num]) uses[slot_num] = 0
|
||||
uses[slot_num] = uses[slot_num] + 1
|
||||
push(events, {kind: "USE", slot: operand_val, pc: pc, instr: instr})
|
||||
events[] = {kind: "USE", slot: operand_val, pc: pc, instr: instr}
|
||||
}
|
||||
ui = ui + 1
|
||||
}
|
||||
@@ -219,7 +219,7 @@ var run = function() {
|
||||
parts = []
|
||||
j = 1
|
||||
while (j < n - 2) {
|
||||
push(parts, fmt_val(evt.instr[j]))
|
||||
parts[] = fmt_val(evt.instr[j])
|
||||
j = j + 1
|
||||
}
|
||||
operands = text(parts, ", ")
|
||||
|
||||
Reference in New Issue
Block a user