OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: number | 6 pool type: number |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
11 snippet: " | 11 snippet: " |
12 var x = 0; | 12 var x = 0; |
13 while (x != 10) { | 13 while (x != 10) { |
14 x = x + 10; | 14 x = x + 10; |
15 } | 15 } |
16 return x; | 16 return x; |
17 " | 17 " |
18 frame size: 1 | 18 frame size: 1 |
19 parameter count: 1 | 19 parameter count: 1 |
20 bytecode array length: 22 | 20 bytecode array length: 21 |
21 bytecodes: [ | 21 bytecodes: [ |
22 /* 30 E> */ B(StackCheck), | 22 /* 30 E> */ B(StackCheck), |
23 /* 42 S> */ B(LdaZero), | 23 /* 42 S> */ B(LdaZero), |
24 B(Star), R(0), | 24 B(Star), R(0), |
25 /* 54 S> */ B(LdaSmi), U8(10), | 25 /* 54 S> */ B(LdaSmi), U8(10), |
26 /* 54 E> */ B(TestEqual), R(0), | 26 /* 54 E> */ B(TestEqual), R(0), |
27 B(LogicalNot), | 27 B(JumpIfTrue), U8(10), |
28 B(JumpIfFalse), U8(10), | |
29 /* 45 E> */ B(StackCheck), | 28 /* 45 E> */ B(StackCheck), |
30 /* 65 S> */ B(AddSmi), U8(10), R(0), | 29 /* 65 S> */ B(AddSmi), U8(10), R(0), |
31 B(Star), R(0), | 30 B(Star), R(0), |
32 B(Jump), U8(-13), | 31 B(Jump), U8(-12), |
33 /* 79 S> */ B(Ldar), R(0), | 32 /* 79 S> */ B(Ldar), R(0), |
34 /* 89 S> */ B(Return), | 33 /* 89 S> */ B(Return), |
35 ] | 34 ] |
36 constant pool: [ | 35 constant pool: [ |
37 ] | 36 ] |
38 handlers: [ | 37 handlers: [ |
39 ] | 38 ] |
40 | 39 |
41 --- | 40 --- |
42 snippet: " | 41 snippet: " |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 B(Star), R(0), | 172 B(Star), R(0), |
174 /* 46 S> */ B(LdaSmi), U8(-1), | 173 /* 46 S> */ B(LdaSmi), U8(-1), |
175 B(Mul), R(0), U8(1), | 174 B(Mul), R(0), U8(1), |
176 /* 57 S> */ B(Return), | 175 /* 57 S> */ B(Return), |
177 ] | 176 ] |
178 constant pool: [ | 177 constant pool: [ |
179 ] | 178 ] |
180 handlers: [ | 179 handlers: [ |
181 ] | 180 ] |
182 | 181 |
OLD | NEW |