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: 23 | 20 bytecode array length: 22 |
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(LogicalNot), |
28 B(JumpIfFalse), U8(11), | 28 B(JumpIfFalse), U8(10), |
29 /* 45 E> */ B(StackCheck), | 29 /* 45 E> */ B(StackCheck), |
30 /* 65 S> */ B(LdaSmi), U8(10), | 30 /* 65 S> */ B(AddSmi), U8(10), R(0), |
31 B(Add), R(0), | |
32 B(Star), R(0), | 31 B(Star), R(0), |
33 B(Jump), U8(-14), | 32 B(Jump), U8(-13), |
34 /* 79 S> */ B(Ldar), R(0), | 33 /* 79 S> */ B(Ldar), R(0), |
35 /* 89 S> */ B(Return), | 34 /* 89 S> */ B(Return), |
36 ] | 35 ] |
37 constant pool: [ | 36 constant pool: [ |
38 ] | 37 ] |
39 handlers: [ | 38 handlers: [ |
40 ] | 39 ] |
41 | 40 |
42 --- | 41 --- |
43 snippet: " | 42 snippet: " |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 ] | 91 ] |
93 | 92 |
94 --- | 93 --- |
95 snippet: " | 94 snippet: " |
96 var x = 1234; | 95 var x = 1234; |
97 var y = void (x * x - 1); | 96 var y = void (x * x - 1); |
98 return y; | 97 return y; |
99 " | 98 " |
100 frame size: 4 | 99 frame size: 4 |
101 parameter count: 1 | 100 parameter count: 1 |
102 bytecode array length: 22 | 101 bytecode array length: 21 |
103 bytecodes: [ | 102 bytecodes: [ |
104 /* 30 E> */ B(StackCheck), | 103 /* 30 E> */ B(StackCheck), |
105 /* 42 S> */ B(Wide), B(LdaSmi), U16(1234), | 104 /* 42 S> */ B(Wide), B(LdaSmi), U16(1234), |
106 B(Star), R(0), | 105 B(Star), R(0), |
107 /* 56 S> */ B(Nop), | 106 /* 56 S> */ B(Nop), |
108 /* 66 E> */ B(Mul), R(0), | 107 /* 66 E> */ B(Mul), R(0), |
109 B(Star), R(3), | 108 B(Star), R(3), |
110 B(LdaSmi), U8(1), | 109 B(SubSmi), U8(1), R(3), |
111 B(Sub), R(3), | |
112 B(LdrUndefined), R(1), | 110 B(LdrUndefined), R(1), |
113 B(Ldar), R(1), | 111 B(Ldar), R(1), |
114 /* 74 S> */ B(Nop), | 112 /* 74 S> */ B(Nop), |
115 /* 84 S> */ B(Return), | 113 /* 84 S> */ B(Return), |
116 ] | 114 ] |
117 constant pool: [ | 115 constant pool: [ |
118 ] | 116 ] |
119 handlers: [ | 117 handlers: [ |
120 ] | 118 ] |
121 | 119 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 B(Star), R(0), | 173 B(Star), R(0), |
176 /* 46 S> */ B(LdaSmi), U8(-1), | 174 /* 46 S> */ B(LdaSmi), U8(-1), |
177 B(Mul), R(0), | 175 B(Mul), R(0), |
178 /* 57 S> */ B(Return), | 176 /* 57 S> */ B(Return), |
179 ] | 177 ] |
180 constant pool: [ | 178 constant pool: [ |
181 ] | 179 ] |
182 handlers: [ | 180 handlers: [ |
183 ] | 181 ] |
184 | 182 |
OLD | NEW |