2016-02-25 12:07:07 +00:00
|
|
|
#
|
|
|
|
# Autogenerated by generate-bytecode-expectations.
|
|
|
|
#
|
|
|
|
|
|
|
|
---
|
|
|
|
wrap: yes
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0;
|
|
|
|
while (false) { x = 99; break; continue; }
|
|
|
|
return x;
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2017-07-17 19:02:35 +00:00
|
|
|
bytecode array length: 5
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 97 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0;
|
|
|
|
while (false) {
|
|
|
|
x = x + 1;
|
|
|
|
};
|
|
|
|
return x;
|
|
|
|
"
|
|
|
|
frame size: 1
|
|
|
|
parameter count: 1
|
2017-07-17 19:02:35 +00:00
|
|
|
bytecode array length: 5
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 86 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0;
|
|
|
|
var y = 1;
|
|
|
|
while (x < 10) {
|
|
|
|
y = y * 12;
|
|
|
|
x = x + 1;
|
|
|
|
if (x == 3) continue;
|
|
|
|
if (x == 4) break;
|
|
|
|
}
|
|
|
|
return y;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 54
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 53 S> */ B(LdaSmi), I8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 65 S> */ B(LdaSmi), I8(10),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 65 E> */ B(TestLessThan), R(0), U8(0),
|
2016-12-08 10:11:06 +00:00
|
|
|
B(JumpIfFalse), U8(38),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 56 E> */ B(StackCheck),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 75 S> */ B(Ldar), R(1),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 81 E> */ B(MulSmi), I8(12), U8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 89 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 95 E> */ B(AddSmi), I8(1), U8(2),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 102 S> */ B(LdaSmi), I8(3),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 108 E> */ B(TestEqual), R(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-08-30 10:21:02 +00:00
|
|
|
/* 114 S> */ B(Jump), U8(11),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 126 S> */ B(LdaSmi), I8(4),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 132 E> */ B(TestEqual), R(0), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-09-13 13:07:15 +00:00
|
|
|
/* 138 S> */ B(Jump), U8(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(40), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 147 S> */ B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 156 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var i = 0;
|
|
|
|
while (true) {
|
|
|
|
if (i < 0) continue;
|
|
|
|
if (i == 3) break;
|
|
|
|
if (i == 4) break;
|
|
|
|
if (i == 10) continue;
|
|
|
|
if (i == 5) break;
|
|
|
|
i = i + 1;
|
|
|
|
}
|
|
|
|
return i;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 62
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2016-05-27 15:57:35 +00:00
|
|
|
/* 62 S> */ B(LdaZero),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 68 E> */ B(TestLessThan), R(0), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 73 S> */ B(Jump), U8(45),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 85 S> */ B(LdaSmi), I8(3),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 91 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 97 S> */ B(Jump), U8(39),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 106 S> */ B(LdaSmi), I8(4),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 112 E> */ B(TestEqual), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 118 S> */ B(Jump), U8(30),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 127 S> */ B(LdaSmi), I8(10),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 133 E> */ B(TestEqual), R(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 140 S> */ B(Jump), U8(18),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 152 S> */ B(LdaSmi), I8(5),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 158 E> */ B(TestEqual), R(0), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 164 S> */ B(Jump), U8(12),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 173 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 179 E> */ B(AddSmi), I8(1), U8(5),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(52), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 186 S> */ B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 195 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var i = 0;
|
|
|
|
while (true) {
|
|
|
|
while (i < 3) {
|
|
|
|
if (i == 2) break;
|
|
|
|
i = i + 1;
|
|
|
|
}
|
|
|
|
i = i + 1;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return i;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 44
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 71 S> */ B(LdaSmi), I8(3),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 71 E> */ B(TestLessThan), R(0), U8(0),
|
2016-12-08 10:11:06 +00:00
|
|
|
B(JumpIfFalse), U8(22),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 82 S> */ B(LdaSmi), I8(2),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 88 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 94 S> */ B(Jump), U8(12),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 105 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 111 E> */ B(AddSmi), I8(1), U8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(24), I8(1),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 122 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 128 E> */ B(AddSmi), I8(1), U8(3),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-08-19 09:21:38 +00:00
|
|
|
/* 135 S> */ B(Jump), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 144 S> */ B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 153 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 10;
|
|
|
|
var y = 1;
|
|
|
|
while (x) {
|
|
|
|
y = y * 12;
|
|
|
|
x = x - 1;
|
|
|
|
}
|
|
|
|
return y;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 34
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(10),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 54 S> */ B(LdaSmi), I8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 64 S> */ B(Ldar), R(0),
|
2016-12-08 10:11:06 +00:00
|
|
|
B(JumpIfToBooleanFalse), U8(20),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 57 E> */ B(StackCheck),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 71 S> */ B(Ldar), R(1),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 77 E> */ B(MulSmi), I8(12), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 85 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 91 E> */ B(SubSmi), I8(1), U8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(19), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 98 S> */ B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 107 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0; var y = 1;
|
|
|
|
do {
|
|
|
|
y = y * 10;
|
|
|
|
if (x == 5) break;
|
|
|
|
if (x == 6) continue;
|
|
|
|
x = x + 1;
|
|
|
|
} while (x < 10);
|
|
|
|
return y;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 54
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 53 S> */ B(LdaSmi), I8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 56 E> */ B(StackCheck),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 63 S> */ B(Ldar), R(1),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 69 E> */ B(MulSmi), I8(10), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 77 S> */ B(LdaSmi), I8(5),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 83 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 89 S> */ B(Jump), U8(28),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 98 S> */ B(LdaSmi), I8(6),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 104 E> */ B(TestEqual), R(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 110 S> */ B(Jump), U8(9),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 122 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 128 E> */ B(AddSmi), I8(1), U8(3),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 144 S> */ B(LdaSmi), I8(10),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 144 E> */ B(TestLessThan), R(0), U8(4),
|
2016-09-13 13:07:15 +00:00
|
|
|
B(JumpIfFalse), U8(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(40), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 151 S> */ B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 160 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 10;
|
|
|
|
var y = 1;
|
|
|
|
do {
|
|
|
|
y = y * 12;
|
|
|
|
x = x - 1;
|
|
|
|
} while (x);
|
|
|
|
return y;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 32
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(10),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 54 S> */ B(LdaSmi), I8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 57 E> */ B(StackCheck),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 64 S> */ B(Ldar), R(1),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 70 E> */ B(MulSmi), I8(12), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 78 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 84 E> */ B(SubSmi), I8(1), U8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-09-13 13:07:15 +00:00
|
|
|
/* 98 S> */ B(JumpIfToBooleanFalse), U8(5),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(17), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 102 S> */ B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 111 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0; var y = 1;
|
|
|
|
do {
|
|
|
|
y = y * 10;
|
|
|
|
if (x == 5) break;
|
|
|
|
x = x + 1;
|
|
|
|
if (x == 6) continue;
|
|
|
|
} while (false);
|
|
|
|
return y;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2017-07-17 19:02:35 +00:00
|
|
|
bytecode array length: 42
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 53 S> */ B(LdaSmi), I8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 56 E> */ B(StackCheck),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 69 S> */ B(MulSmi), I8(10), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 77 S> */ B(LdaSmi), I8(5),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 83 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 89 S> */ B(Jump), U8(18),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 98 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 104 E> */ B(AddSmi), I8(1), U8(2),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 111 S> */ B(LdaSmi), I8(6),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 117 E> */ B(TestEqual), R(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
/* 123 S> */ B(Jump), U8(2),
|
|
|
|
/* 150 S> */ B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 159 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0; var y = 1;
|
|
|
|
do {
|
|
|
|
y = y * 10;
|
|
|
|
if (x == 5) break;
|
|
|
|
x = x + 1;
|
|
|
|
if (x == 6) continue;
|
|
|
|
} while (true);
|
|
|
|
return y;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 47
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 53 S> */ B(LdaSmi), I8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 56 E> */ B(StackCheck),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 63 S> */ B(Ldar), R(1),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 69 E> */ B(MulSmi), I8(10), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 77 S> */ B(LdaSmi), I8(5),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 83 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 89 S> */ B(Jump), U8(21),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 98 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 104 E> */ B(AddSmi), I8(1), U8(2),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 111 S> */ B(LdaSmi), I8(6),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 117 E> */ B(TestEqual), R(0), U8(3),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
/* 123 S> */ B(Jump), U8(2),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(33), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 149 S> */ B(Ldar), R(1),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 158 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0;
|
|
|
|
for (;;) {
|
|
|
|
if (x == 1) break;
|
|
|
|
if (x == 2) continue;
|
|
|
|
x = x + 1;
|
|
|
|
}
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 35
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 58 S> */ B(LdaSmi), I8(1),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 64 E> */ B(TestEqual), R(0), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 70 S> */ B(Jump), U8(21),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 79 S> */ B(LdaSmi), I8(2),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 85 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 91 S> */ B(Jump), U8(9),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 103 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 109 E> */ B(AddSmi), I8(1), U8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(26), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 116 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
for (var x = 0;;) {
|
|
|
|
if (x == 1) break;
|
|
|
|
if (x == 2) continue;
|
|
|
|
x = x + 1;
|
|
|
|
}
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 35
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 47 S> */ B(LdaZero),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 34 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 56 S> */ B(LdaSmi), I8(1),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 62 E> */ B(TestEqual), R(0), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 68 S> */ B(Jump), U8(21),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 77 S> */ B(LdaSmi), I8(2),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 83 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 89 S> */ B(Jump), U8(9),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 101 S> */ B(Ldar), R(0),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 107 E> */ B(AddSmi), I8(1), U8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(26), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 114 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0;
|
|
|
|
for (;; x = x + 1) {
|
|
|
|
if (x == 1) break;
|
|
|
|
if (x == 2) continue;
|
|
|
|
}
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 35
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 68 S> */ B(LdaSmi), I8(1),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 74 E> */ B(TestEqual), R(0), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 80 S> */ B(Jump), U8(21),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 89 S> */ B(LdaSmi), I8(2),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 95 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
/* 101 S> */ B(Jump), U8(2),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 55 S> */ B(Ldar), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 59 E> */ B(AddSmi), I8(1), U8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(26), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 113 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
for (var x = 0;; x = x + 1) {
|
|
|
|
if (x == 1) break;
|
|
|
|
if (x == 2) continue;
|
|
|
|
}
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 1
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 35
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 47 S> */ B(LdaZero),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 34 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 66 S> */ B(LdaSmi), I8(1),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 72 E> */ B(TestEqual), R(0), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-12-08 10:11:06 +00:00
|
|
|
/* 78 S> */ B(Jump), U8(21),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 87 S> */ B(LdaSmi), I8(2),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 93 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
|
|
|
/* 99 S> */ B(Jump), U8(2),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 53 S> */ B(Ldar), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 57 E> */ B(AddSmi), I8(1), U8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(26), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 111 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var u = 0;
|
|
|
|
for (var i = 0; i < 100; i = i + 1) {
|
|
|
|
u = u + 1;
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 36
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 58 S> */ B(LdaZero),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 63 S> */ B(LdaSmi), I8(100),
|
2017-07-27 12:45:00 +00:00
|
|
|
/* 63 E> */ B(TestLessThan), R(1), U8(0),
|
2016-12-08 10:11:06 +00:00
|
|
|
B(JumpIfFalse), U8(22),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 85 S> */ B(Ldar), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 91 E> */ B(AddSmi), I8(1), U8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 98 S> */ B(Jump), U8(2),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 72 S> */ B(Ldar), R(1),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 76 E> */ B(AddSmi), I8(1), U8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(24), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 110 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var y = 1;
|
|
|
|
for (var x = 10; x; --x) {
|
|
|
|
y = y * 12;
|
|
|
|
}
|
|
|
|
return y;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-09-13 13:07:15 +00:00
|
|
|
bytecode array length: 33
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 42 S> */ B(LdaSmi), I8(1),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 58 S> */ B(LdaSmi), I8(10),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 62 S> */ B(Ldar), R(1),
|
2016-09-13 13:07:15 +00:00
|
|
|
B(JumpIfToBooleanFalse), U8(19),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 74 S> */ B(Ldar), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 80 E> */ B(MulSmi), I8(12), U8(0),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 67 S> */ B(Ldar), R(1),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(Dec), U8(1),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(18), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 88 S> */ B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 97 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0;
|
|
|
|
for (var i = 0; false; i++) {
|
|
|
|
x = x + 1;
|
|
|
|
};
|
|
|
|
return x;
|
|
|
|
"
|
|
|
|
frame size: 2
|
|
|
|
parameter count: 1
|
|
|
|
bytecode array length: 10
|
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 58 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 91 S> */ B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 100 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var x = 0;
|
|
|
|
for (var i = 0; true; ++i) {
|
|
|
|
x = x + 1;
|
|
|
|
if (x == 20) break;
|
|
|
|
};
|
|
|
|
return x;
|
|
|
|
"
|
2016-05-27 15:57:35 +00:00
|
|
|
frame size: 2
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2016-12-08 10:11:06 +00:00
|
|
|
bytecode array length: 36
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 58 S> */ B(LdaZero),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2017-04-10 09:30:51 +00:00
|
|
|
/* 76 S> */ B(Ldar), R(0),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 82 E> */ B(AddSmi), I8(1), U8(0),
|
2016-05-23 13:31:53 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 89 S> */ B(LdaSmi), I8(20),
|
2017-10-19 15:12:42 +00:00
|
|
|
/* 95 E> */ B(TestEqual), R(0), U8(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(JumpIfFalse), U8(4),
|
2016-09-13 13:07:15 +00:00
|
|
|
/* 102 S> */ B(Jump), U8(11),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 69 S> */ B(Ldar), R(1),
|
2017-10-19 15:12:42 +00:00
|
|
|
B(Inc), U8(2),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2017-01-25 17:39:24 +00:00
|
|
|
B(JumpLoop), U8(23), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 112 S> */ B(Ldar), R(0),
|
2017-07-14 17:50:09 +00:00
|
|
|
/* 121 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|
|
|
|
---
|
|
|
|
snippet: "
|
|
|
|
var a = 0;
|
|
|
|
while (a) {
|
|
|
|
{
|
|
|
|
let z = 1;
|
|
|
|
function f() { z = 2; }
|
|
|
|
if (z) continue;
|
|
|
|
z++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
"
|
2016-10-20 17:31:36 +00:00
|
|
|
frame size: 4
|
2016-02-25 12:07:07 +00:00
|
|
|
parameter count: 1
|
2018-05-02 13:57:26 +00:00
|
|
|
bytecode array length: 50
|
2016-02-25 12:07:07 +00:00
|
|
|
bytecodes: [
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 30 E> */ B(StackCheck),
|
|
|
|
/* 42 S> */ B(LdaZero),
|
2016-06-09 13:32:33 +00:00
|
|
|
B(Star), R(1),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 52 S> */ B(Ldar), R(1),
|
2018-05-02 13:57:26 +00:00
|
|
|
B(JumpIfToBooleanFalse), U8(42),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 45 E> */ B(StackCheck),
|
2016-08-16 11:07:21 +00:00
|
|
|
B(CreateBlockContext), U8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(PushContext), R(3),
|
|
|
|
B(LdaTheHole),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(StaCurrentContextSlot), U8(4),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(CreateClosure), U8(1), U8(0), U8(2),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(Star), R(0),
|
2017-01-25 17:39:24 +00:00
|
|
|
/* 73 S> */ B(LdaSmi), I8(1),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 73 E> */ B(StaCurrentContextSlot), U8(4),
|
2016-08-05 17:50:08 +00:00
|
|
|
B(Mov), R(0), R(2),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 106 S> */ B(LdaCurrentContextSlot), U8(4),
|
2017-05-24 08:08:21 +00:00
|
|
|
B(JumpIfToBooleanFalse), U8(6),
|
2016-05-11 12:21:56 +00:00
|
|
|
/* 113 S> */ B(PopContext), R(3),
|
2016-10-28 10:10:32 +00:00
|
|
|
B(Jump), U8(10),
|
|
|
|
/* 126 S> */ B(LdaCurrentContextSlot), U8(4),
|
2017-07-27 12:45:00 +00:00
|
|
|
B(Inc), U8(1),
|
2016-10-28 10:10:32 +00:00
|
|
|
/* 127 E> */ B(StaCurrentContextSlot), U8(4),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(PopContext), R(3),
|
2018-05-02 13:57:26 +00:00
|
|
|
B(JumpLoop), U8(41), I8(0),
|
2016-05-11 12:21:56 +00:00
|
|
|
B(LdaUndefined),
|
|
|
|
/* 137 S> */ B(Return),
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
constant pool: [
|
2018-02-16 12:36:47 +00:00
|
|
|
SCOPE_INFO_TYPE,
|
2016-09-06 16:10:19 +00:00
|
|
|
SHARED_FUNCTION_INFO_TYPE,
|
2016-02-25 12:07:07 +00:00
|
|
|
]
|
|
|
|
handlers: [
|
|
|
|
]
|
|
|
|
|