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: mixed | 6 pool type: mixed |
7 execute: yes | 7 execute: yes |
8 wrap: yes | 8 wrap: yes |
9 | 9 |
10 --- | 10 --- |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 while (x < 10) { | 58 while (x < 10) { |
59 y = y * 12; | 59 y = y * 12; |
60 x = x + 1; | 60 x = x + 1; |
61 if (x == 3) continue; | 61 if (x == 3) continue; |
62 if (x == 4) break; | 62 if (x == 4) break; |
63 } | 63 } |
64 return y; | 64 return y; |
65 " | 65 " |
66 frame size: 2 | 66 frame size: 2 |
67 parameter count: 1 | 67 parameter count: 1 |
68 bytecode array length: 48 | 68 bytecode array length: 47 |
69 bytecodes: [ | 69 bytecodes: [ |
70 /* 30 E> */ B(StackCheck), | 70 /* 30 E> */ B(StackCheck), |
71 /* 42 S> */ B(LdaZero), | 71 /* 42 S> */ B(LdaZero), |
72 B(Star), R(0), | 72 B(Star), R(0), |
73 /* 53 S> */ B(LdaSmi), U8(1), | 73 /* 53 S> */ B(LdaSmi), U8(1), |
74 B(Star), R(1), | 74 B(Star), R(1), |
75 /* 65 S> */ B(LdaSmi), U8(10), | 75 /* 65 S> */ B(LdaSmi), U8(10), |
76 /* 65 E> */ B(TestLessThan), R(0), | 76 /* 65 E> */ B(TestLessThan), R(0), |
77 B(JumpIfFalse), U8(33), | 77 B(JumpIfFalse), U8(32), |
78 /* 56 E> */ B(StackCheck), | 78 /* 56 E> */ B(StackCheck), |
79 /* 75 S> */ B(LdaSmi), U8(12), | 79 /* 75 S> */ B(LdaSmi), U8(12), |
80 B(Mul), R(1), | 80 B(Mul), R(1), |
81 B(Star), R(1), | 81 B(Star), R(1), |
82 /* 89 S> */ B(LdaSmi), U8(1), | 82 /* 89 S> */ B(AddSmi), U8(1), R(0), |
83 B(Add), R(0), | |
84 B(Star), R(0), | 83 B(Star), R(0), |
85 /* 102 S> */ B(LdaSmi), U8(3), | 84 /* 102 S> */ B(LdaSmi), U8(3), |
86 /* 108 E> */ B(TestEqual), R(0), | 85 /* 108 E> */ B(TestEqual), R(0), |
87 B(JumpIfFalse), U8(4), | 86 B(JumpIfFalse), U8(4), |
88 /* 114 S> */ B(Jump), U8(10), | 87 /* 114 S> */ B(Jump), U8(10), |
89 /* 126 S> */ B(LdaSmi), U8(4), | 88 /* 126 S> */ B(LdaSmi), U8(4), |
90 /* 132 E> */ B(TestEqual), R(0), | 89 /* 132 E> */ B(TestEqual), R(0), |
91 B(JumpIfFalse), U8(4), | 90 B(JumpIfFalse), U8(4), |
92 /* 138 S> */ B(Jump), U8(4), | 91 /* 138 S> */ B(Jump), U8(4), |
93 B(Jump), U8(-35), | 92 B(Jump), U8(-34), |
94 /* 147 S> */ B(Ldar), R(1), | 93 /* 147 S> */ B(Ldar), R(1), |
95 /* 157 S> */ B(Return), | 94 /* 157 S> */ B(Return), |
96 ] | 95 ] |
97 constant pool: [ | 96 constant pool: [ |
98 ] | 97 ] |
99 handlers: [ | 98 handlers: [ |
100 ] | 99 ] |
101 | 100 |
102 --- | 101 --- |
103 snippet: " | 102 snippet: " |
104 var i = 0; | 103 var i = 0; |
105 while (true) { | 104 while (true) { |
106 if (i < 0) continue; | 105 if (i < 0) continue; |
107 if (i == 3) break; | 106 if (i == 3) break; |
108 if (i == 4) break; | 107 if (i == 4) break; |
109 if (i == 10) continue; | 108 if (i == 10) continue; |
110 if (i == 5) break; | 109 if (i == 5) break; |
111 i = i + 1; | 110 i = i + 1; |
112 } | 111 } |
113 return i; | 112 return i; |
114 " | 113 " |
115 frame size: 1 | 114 frame size: 1 |
116 parameter count: 1 | 115 parameter count: 1 |
117 bytecode array length: 55 | 116 bytecode array length: 54 |
118 bytecodes: [ | 117 bytecodes: [ |
119 /* 30 E> */ B(StackCheck), | 118 /* 30 E> */ B(StackCheck), |
120 /* 42 S> */ B(LdaZero), | 119 /* 42 S> */ B(LdaZero), |
121 B(Star), R(0), | 120 B(Star), R(0), |
122 /* 45 E> */ B(StackCheck), | 121 /* 45 E> */ B(StackCheck), |
123 /* 62 S> */ B(LdaZero), | 122 /* 62 S> */ B(LdaZero), |
124 /* 68 E> */ B(TestLessThan), R(0), | 123 /* 68 E> */ B(TestLessThan), R(0), |
125 B(JumpIfFalse), U8(4), | 124 B(JumpIfFalse), U8(4), |
126 /* 73 S> */ B(Jump), U8(40), | 125 /* 73 S> */ B(Jump), U8(39), |
127 /* 85 S> */ B(LdaSmi), U8(3), | 126 /* 85 S> */ B(LdaSmi), U8(3), |
128 /* 91 E> */ B(TestEqual), R(0), | 127 /* 91 E> */ B(TestEqual), R(0), |
129 B(JumpIfFalse), U8(4), | 128 B(JumpIfFalse), U8(4), |
130 /* 97 S> */ B(Jump), U8(34), | 129 /* 97 S> */ B(Jump), U8(33), |
131 /* 106 S> */ B(LdaSmi), U8(4), | 130 /* 106 S> */ B(LdaSmi), U8(4), |
132 /* 112 E> */ B(TestEqual), R(0), | 131 /* 112 E> */ B(TestEqual), R(0), |
133 B(JumpIfFalse), U8(4), | 132 B(JumpIfFalse), U8(4), |
134 /* 118 S> */ B(Jump), U8(26), | 133 /* 118 S> */ B(Jump), U8(25), |
135 /* 127 S> */ B(LdaSmi), U8(10), | 134 /* 127 S> */ B(LdaSmi), U8(10), |
136 /* 133 E> */ B(TestEqual), R(0), | 135 /* 133 E> */ B(TestEqual), R(0), |
137 B(JumpIfFalse), U8(4), | 136 B(JumpIfFalse), U8(4), |
138 /* 140 S> */ B(Jump), U8(16), | 137 /* 140 S> */ B(Jump), U8(15), |
139 /* 152 S> */ B(LdaSmi), U8(5), | 138 /* 152 S> */ B(LdaSmi), U8(5), |
140 /* 158 E> */ B(TestEqual), R(0), | 139 /* 158 E> */ B(TestEqual), R(0), |
141 B(JumpIfFalse), U8(4), | 140 B(JumpIfFalse), U8(4), |
142 /* 164 S> */ B(Jump), U8(10), | 141 /* 164 S> */ B(Jump), U8(9), |
143 /* 173 S> */ B(LdaSmi), U8(1), | 142 /* 173 S> */ B(AddSmi), U8(1), R(0), |
144 B(Add), R(0), | |
145 B(Star), R(0), | 143 B(Star), R(0), |
146 B(Jump), U8(-46), | 144 B(Jump), U8(-45), |
147 /* 186 S> */ B(Ldar), R(0), | 145 /* 186 S> */ B(Ldar), R(0), |
148 /* 196 S> */ B(Return), | 146 /* 196 S> */ B(Return), |
149 ] | 147 ] |
150 constant pool: [ | 148 constant pool: [ |
151 ] | 149 ] |
152 handlers: [ | 150 handlers: [ |
153 ] | 151 ] |
154 | 152 |
155 --- | 153 --- |
156 snippet: " | 154 snippet: " |
157 var i = 0; | 155 var i = 0; |
158 while (true) { | 156 while (true) { |
159 while (i < 3) { | 157 while (i < 3) { |
160 if (i == 2) break; | 158 if (i == 2) break; |
161 i = i + 1; | 159 i = i + 1; |
162 } | 160 } |
163 i = i + 1; | 161 i = i + 1; |
164 break; | 162 break; |
165 } | 163 } |
166 return i; | 164 return i; |
167 " | 165 " |
168 frame size: 1 | 166 frame size: 1 |
169 parameter count: 1 | 167 parameter count: 1 |
170 bytecode array length: 41 | 168 bytecode array length: 39 |
171 bytecodes: [ | 169 bytecodes: [ |
172 /* 30 E> */ B(StackCheck), | 170 /* 30 E> */ B(StackCheck), |
173 /* 42 S> */ B(LdaZero), | 171 /* 42 S> */ B(LdaZero), |
174 B(Star), R(0), | 172 B(Star), R(0), |
175 /* 45 E> */ B(StackCheck), | 173 /* 45 E> */ B(StackCheck), |
176 /* 71 S> */ B(LdaSmi), U8(3), | 174 /* 71 S> */ B(LdaSmi), U8(3), |
177 /* 71 E> */ B(TestLessThan), R(0), | 175 /* 71 E> */ B(TestLessThan), R(0), |
178 B(JumpIfFalse), U8(19), | 176 B(JumpIfFalse), U8(18), |
179 /* 62 E> */ B(StackCheck), | 177 /* 62 E> */ B(StackCheck), |
180 /* 82 S> */ B(LdaSmi), U8(2), | 178 /* 82 S> */ B(LdaSmi), U8(2), |
181 /* 88 E> */ B(TestEqual), R(0), | 179 /* 88 E> */ B(TestEqual), R(0), |
182 B(JumpIfFalse), U8(4), | 180 B(JumpIfFalse), U8(4), |
183 /* 94 S> */ B(Jump), U8(10), | 181 /* 94 S> */ B(Jump), U8(9), |
184 /* 105 S> */ B(LdaSmi), U8(1), | 182 /* 105 S> */ B(AddSmi), U8(1), R(0), |
185 B(Add), R(0), | |
186 B(Star), R(0), | 183 B(Star), R(0), |
187 B(Jump), U8(-21), | 184 B(Jump), U8(-20), |
188 /* 122 S> */ B(LdaSmi), U8(1), | 185 /* 122 S> */ B(AddSmi), U8(1), R(0), |
189 B(Add), R(0), | |
190 B(Star), R(0), | 186 B(Star), R(0), |
191 /* 135 S> */ B(Jump), U8(4), | 187 /* 135 S> */ B(Jump), U8(4), |
192 B(Jump), U8(-32), | 188 B(Jump), U8(-30), |
193 /* 144 S> */ B(Ldar), R(0), | 189 /* 144 S> */ B(Ldar), R(0), |
194 /* 154 S> */ B(Return), | 190 /* 154 S> */ B(Return), |
195 ] | 191 ] |
196 constant pool: [ | 192 constant pool: [ |
197 ] | 193 ] |
198 handlers: [ | 194 handlers: [ |
199 ] | 195 ] |
200 | 196 |
201 --- | 197 --- |
202 snippet: " | 198 snippet: " |
203 var x = 10; | 199 var x = 10; |
204 var y = 1; | 200 var y = 1; |
205 while (x) { | 201 while (x) { |
206 y = y * 12; | 202 y = y * 12; |
207 x = x - 1; | 203 x = x - 1; |
208 } | 204 } |
209 return y; | 205 return y; |
210 " | 206 " |
211 frame size: 2 | 207 frame size: 2 |
212 parameter count: 1 | 208 parameter count: 1 |
213 bytecode array length: 31 | 209 bytecode array length: 30 |
214 bytecodes: [ | 210 bytecodes: [ |
215 /* 30 E> */ B(StackCheck), | 211 /* 30 E> */ B(StackCheck), |
216 /* 42 S> */ B(LdaSmi), U8(10), | 212 /* 42 S> */ B(LdaSmi), U8(10), |
217 B(Star), R(0), | 213 B(Star), R(0), |
218 /* 54 S> */ B(LdaSmi), U8(1), | 214 /* 54 S> */ B(LdaSmi), U8(1), |
219 B(Star), R(1), | 215 B(Star), R(1), |
220 /* 64 S> */ B(Ldar), R(0), | 216 /* 64 S> */ B(Ldar), R(0), |
221 B(JumpIfToBooleanFalse), U8(17), | 217 B(JumpIfToBooleanFalse), U8(16), |
222 /* 57 E> */ B(StackCheck), | 218 /* 57 E> */ B(StackCheck), |
223 /* 71 S> */ B(LdaSmi), U8(12), | 219 /* 71 S> */ B(LdaSmi), U8(12), |
224 B(Mul), R(1), | 220 B(Mul), R(1), |
225 B(Star), R(1), | 221 B(Star), R(1), |
226 /* 85 S> */ B(LdaSmi), U8(1), | 222 /* 85 S> */ B(SubSmi), U8(1), R(0), |
227 B(Sub), R(0), | |
228 B(Star), R(0), | 223 B(Star), R(0), |
229 B(Jump), U8(-17), | 224 B(Jump), U8(-16), |
230 /* 98 S> */ B(Ldar), R(1), | 225 /* 98 S> */ B(Ldar), R(1), |
231 /* 108 S> */ B(Return), | 226 /* 108 S> */ B(Return), |
232 ] | 227 ] |
233 constant pool: [ | 228 constant pool: [ |
234 ] | 229 ] |
235 handlers: [ | 230 handlers: [ |
236 ] | 231 ] |
237 | 232 |
238 --- | 233 --- |
239 snippet: " | 234 snippet: " |
240 var x = 0; var y = 1; | 235 var x = 0; var y = 1; |
241 do { | 236 do { |
242 y = y * 10; | 237 y = y * 10; |
243 if (x == 5) break; | 238 if (x == 5) break; |
244 if (x == 6) continue; | 239 if (x == 6) continue; |
245 x = x + 1; | 240 x = x + 1; |
246 } while (x < 10); | 241 } while (x < 10); |
247 return y; | 242 return y; |
248 " | 243 " |
249 frame size: 2 | 244 frame size: 2 |
250 parameter count: 1 | 245 parameter count: 1 |
251 bytecode array length: 46 | 246 bytecode array length: 45 |
252 bytecodes: [ | 247 bytecodes: [ |
253 /* 30 E> */ B(StackCheck), | 248 /* 30 E> */ B(StackCheck), |
254 /* 42 S> */ B(LdaZero), | 249 /* 42 S> */ B(LdaZero), |
255 B(Star), R(0), | 250 B(Star), R(0), |
256 /* 53 S> */ B(LdaSmi), U8(1), | 251 /* 53 S> */ B(LdaSmi), U8(1), |
257 B(Star), R(1), | 252 B(Star), R(1), |
258 /* 56 E> */ B(StackCheck), | 253 /* 56 E> */ B(StackCheck), |
259 /* 63 S> */ B(LdaSmi), U8(10), | 254 /* 63 S> */ B(LdaSmi), U8(10), |
260 B(Mul), R(1), | 255 B(Mul), R(1), |
261 B(Star), R(1), | 256 B(Star), R(1), |
262 /* 77 S> */ B(LdaSmi), U8(5), | 257 /* 77 S> */ B(LdaSmi), U8(5), |
263 /* 83 E> */ B(TestEqual), R(0), | 258 /* 83 E> */ B(TestEqual), R(0), |
264 B(JumpIfFalse), U8(4), | 259 B(JumpIfFalse), U8(4), |
265 /* 89 S> */ B(Jump), U8(22), | 260 /* 89 S> */ B(Jump), U8(21), |
266 /* 98 S> */ B(LdaSmi), U8(6), | 261 /* 98 S> */ B(LdaSmi), U8(6), |
267 /* 104 E> */ B(TestEqual), R(0), | 262 /* 104 E> */ B(TestEqual), R(0), |
268 B(JumpIfFalse), U8(4), | 263 B(JumpIfFalse), U8(4), |
269 /* 110 S> */ B(Jump), U8(8), | 264 /* 110 S> */ B(Jump), U8(7), |
270 /* 122 S> */ B(LdaSmi), U8(1), | 265 /* 122 S> */ B(AddSmi), U8(1), R(0), |
271 B(Add), R(0), | |
272 B(Star), R(0), | 266 B(Star), R(0), |
273 /* 144 S> */ B(LdaSmi), U8(10), | 267 /* 144 S> */ B(LdaSmi), U8(10), |
274 /* 144 E> */ B(TestLessThan), R(0), | 268 /* 144 E> */ B(TestLessThan), R(0), |
275 B(JumpIfTrue), U8(-33), | 269 B(JumpIfTrue), U8(-32), |
276 /* 151 S> */ B(Ldar), R(1), | 270 /* 151 S> */ B(Ldar), R(1), |
277 /* 161 S> */ B(Return), | 271 /* 161 S> */ B(Return), |
278 ] | 272 ] |
279 constant pool: [ | 273 constant pool: [ |
280 ] | 274 ] |
281 handlers: [ | 275 handlers: [ |
282 ] | 276 ] |
283 | 277 |
284 --- | 278 --- |
285 snippet: " | 279 snippet: " |
286 var x = 10; | 280 var x = 10; |
287 var y = 1; | 281 var y = 1; |
288 do { | 282 do { |
289 y = y * 12; | 283 y = y * 12; |
290 x = x - 1; | 284 x = x - 1; |
291 } while (x); | 285 } while (x); |
292 return y; | 286 return y; |
293 " | 287 " |
294 frame size: 2 | 288 frame size: 2 |
295 parameter count: 1 | 289 parameter count: 1 |
296 bytecode array length: 29 | 290 bytecode array length: 28 |
297 bytecodes: [ | 291 bytecodes: [ |
298 /* 30 E> */ B(StackCheck), | 292 /* 30 E> */ B(StackCheck), |
299 /* 42 S> */ B(LdaSmi), U8(10), | 293 /* 42 S> */ B(LdaSmi), U8(10), |
300 B(Star), R(0), | 294 B(Star), R(0), |
301 /* 54 S> */ B(LdaSmi), U8(1), | 295 /* 54 S> */ B(LdaSmi), U8(1), |
302 B(Star), R(1), | 296 B(Star), R(1), |
303 /* 57 E> */ B(StackCheck), | 297 /* 57 E> */ B(StackCheck), |
304 /* 64 S> */ B(LdaSmi), U8(12), | 298 /* 64 S> */ B(LdaSmi), U8(12), |
305 B(Mul), R(1), | 299 B(Mul), R(1), |
306 B(Star), R(1), | 300 B(Star), R(1), |
307 /* 78 S> */ B(LdaSmi), U8(1), | 301 /* 78 S> */ B(SubSmi), U8(1), R(0), |
308 B(Sub), R(0), | |
309 B(Star), R(0), | 302 B(Star), R(0), |
310 /* 98 S> */ B(Ldar), R(0), | 303 /* 98 S> */ B(Ldar), R(0), |
311 B(JumpIfToBooleanTrue), U8(-15), | 304 B(JumpIfToBooleanTrue), U8(-14), |
312 /* 102 S> */ B(Ldar), R(1), | 305 /* 102 S> */ B(Ldar), R(1), |
313 /* 112 S> */ B(Return), | 306 /* 112 S> */ B(Return), |
314 ] | 307 ] |
315 constant pool: [ | 308 constant pool: [ |
316 ] | 309 ] |
317 handlers: [ | 310 handlers: [ |
318 ] | 311 ] |
319 | 312 |
320 --- | 313 --- |
321 snippet: " | 314 snippet: " |
322 var x = 0; var y = 1; | 315 var x = 0; var y = 1; |
323 do { | 316 do { |
324 y = y * 10; | 317 y = y * 10; |
325 if (x == 5) break; | 318 if (x == 5) break; |
326 x = x + 1; | 319 x = x + 1; |
327 if (x == 6) continue; | 320 if (x == 6) continue; |
328 } while (false); | 321 } while (false); |
329 return y; | 322 return y; |
330 " | 323 " |
331 frame size: 2 | 324 frame size: 2 |
332 parameter count: 1 | 325 parameter count: 1 |
333 bytecode array length: 40 | 326 bytecode array length: 39 |
334 bytecodes: [ | 327 bytecodes: [ |
335 /* 30 E> */ B(StackCheck), | 328 /* 30 E> */ B(StackCheck), |
336 /* 42 S> */ B(LdaZero), | 329 /* 42 S> */ B(LdaZero), |
337 B(Star), R(0), | 330 B(Star), R(0), |
338 /* 53 S> */ B(LdaSmi), U8(1), | 331 /* 53 S> */ B(LdaSmi), U8(1), |
339 B(Star), R(1), | 332 B(Star), R(1), |
340 /* 56 E> */ B(StackCheck), | 333 /* 56 E> */ B(StackCheck), |
341 /* 63 S> */ B(LdaSmi), U8(10), | 334 /* 63 S> */ B(LdaSmi), U8(10), |
342 B(Mul), R(1), | 335 B(Mul), R(1), |
343 B(Star), R(1), | 336 B(Star), R(1), |
344 /* 77 S> */ B(LdaSmi), U8(5), | 337 /* 77 S> */ B(LdaSmi), U8(5), |
345 /* 83 E> */ B(TestEqual), R(0), | 338 /* 83 E> */ B(TestEqual), R(0), |
346 B(JumpIfFalse), U8(4), | 339 B(JumpIfFalse), U8(4), |
347 /* 89 S> */ B(Jump), U8(16), | 340 /* 89 S> */ B(Jump), U8(15), |
348 /* 98 S> */ B(LdaSmi), U8(1), | 341 /* 98 S> */ B(AddSmi), U8(1), R(0), |
349 B(Add), R(0), | |
350 B(Star), R(0), | 342 B(Star), R(0), |
351 /* 111 S> */ B(LdaSmi), U8(6), | 343 /* 111 S> */ B(LdaSmi), U8(6), |
352 /* 117 E> */ B(TestEqual), R(0), | 344 /* 117 E> */ B(TestEqual), R(0), |
353 B(JumpIfFalse), U8(4), | 345 B(JumpIfFalse), U8(4), |
354 /* 123 S> */ B(Jump), U8(2), | 346 /* 123 S> */ B(Jump), U8(2), |
355 /* 150 S> */ B(Ldar), R(1), | 347 /* 150 S> */ B(Ldar), R(1), |
356 /* 160 S> */ B(Return), | 348 /* 160 S> */ B(Return), |
357 ] | 349 ] |
358 constant pool: [ | 350 constant pool: [ |
359 ] | 351 ] |
360 handlers: [ | 352 handlers: [ |
361 ] | 353 ] |
362 | 354 |
363 --- | 355 --- |
364 snippet: " | 356 snippet: " |
365 var x = 0; var y = 1; | 357 var x = 0; var y = 1; |
366 do { | 358 do { |
367 y = y * 10; | 359 y = y * 10; |
368 if (x == 5) break; | 360 if (x == 5) break; |
369 x = x + 1; | 361 x = x + 1; |
370 if (x == 6) continue; | 362 if (x == 6) continue; |
371 } while (true); | 363 } while (true); |
372 return y; | 364 return y; |
373 " | 365 " |
374 frame size: 2 | 366 frame size: 2 |
375 parameter count: 1 | 367 parameter count: 1 |
376 bytecode array length: 42 | 368 bytecode array length: 41 |
377 bytecodes: [ | 369 bytecodes: [ |
378 /* 30 E> */ B(StackCheck), | 370 /* 30 E> */ B(StackCheck), |
379 /* 42 S> */ B(LdaZero), | 371 /* 42 S> */ B(LdaZero), |
380 B(Star), R(0), | 372 B(Star), R(0), |
381 /* 53 S> */ B(LdaSmi), U8(1), | 373 /* 53 S> */ B(LdaSmi), U8(1), |
382 B(Star), R(1), | 374 B(Star), R(1), |
383 /* 56 E> */ B(StackCheck), | 375 /* 56 E> */ B(StackCheck), |
384 /* 63 S> */ B(LdaSmi), U8(10), | 376 /* 63 S> */ B(LdaSmi), U8(10), |
385 B(Mul), R(1), | 377 B(Mul), R(1), |
386 B(Star), R(1), | 378 B(Star), R(1), |
387 /* 77 S> */ B(LdaSmi), U8(5), | 379 /* 77 S> */ B(LdaSmi), U8(5), |
388 /* 83 E> */ B(TestEqual), R(0), | 380 /* 83 E> */ B(TestEqual), R(0), |
389 B(JumpIfFalse), U8(4), | 381 B(JumpIfFalse), U8(4), |
390 /* 89 S> */ B(Jump), U8(18), | 382 /* 89 S> */ B(Jump), U8(17), |
391 /* 98 S> */ B(LdaSmi), U8(1), | 383 /* 98 S> */ B(AddSmi), U8(1), R(0), |
392 B(Add), R(0), | |
393 B(Star), R(0), | 384 B(Star), R(0), |
394 /* 111 S> */ B(LdaSmi), U8(6), | 385 /* 111 S> */ B(LdaSmi), U8(6), |
395 /* 117 E> */ B(TestEqual), R(0), | 386 /* 117 E> */ B(TestEqual), R(0), |
396 B(JumpIfFalse), U8(4), | 387 B(JumpIfFalse), U8(4), |
397 /* 123 S> */ B(Jump), U8(2), | 388 /* 123 S> */ B(Jump), U8(2), |
398 B(Jump), U8(-29), | 389 B(Jump), U8(-28), |
399 /* 149 S> */ B(Ldar), R(1), | 390 /* 149 S> */ B(Ldar), R(1), |
400 /* 159 S> */ B(Return), | 391 /* 159 S> */ B(Return), |
401 ] | 392 ] |
402 constant pool: [ | 393 constant pool: [ |
403 ] | 394 ] |
404 handlers: [ | 395 handlers: [ |
405 ] | 396 ] |
406 | 397 |
407 --- | 398 --- |
408 snippet: " | 399 snippet: " |
409 var x = 0; | 400 var x = 0; |
410 for (;;) { | 401 for (;;) { |
411 if (x == 1) break; | 402 if (x == 1) break; |
412 if (x == 2) continue; | 403 if (x == 2) continue; |
413 x = x + 1; | 404 x = x + 1; |
414 } | 405 } |
415 " | 406 " |
416 frame size: 1 | 407 frame size: 1 |
417 parameter count: 1 | 408 parameter count: 1 |
418 bytecode array length: 31 | 409 bytecode array length: 30 |
419 bytecodes: [ | 410 bytecodes: [ |
420 /* 30 E> */ B(StackCheck), | 411 /* 30 E> */ B(StackCheck), |
421 /* 42 S> */ B(LdaZero), | 412 /* 42 S> */ B(LdaZero), |
422 B(Star), R(0), | 413 B(Star), R(0), |
423 /* 45 E> */ B(StackCheck), | 414 /* 45 E> */ B(StackCheck), |
424 /* 58 S> */ B(LdaSmi), U8(1), | 415 /* 58 S> */ B(LdaSmi), U8(1), |
425 /* 64 E> */ B(TestEqual), R(0), | 416 /* 64 E> */ B(TestEqual), R(0), |
426 B(JumpIfFalse), U8(4), | 417 B(JumpIfFalse), U8(4), |
427 /* 70 S> */ B(Jump), U8(18), | 418 /* 70 S> */ B(Jump), U8(17), |
428 /* 79 S> */ B(LdaSmi), U8(2), | 419 /* 79 S> */ B(LdaSmi), U8(2), |
429 /* 85 E> */ B(TestEqual), R(0), | 420 /* 85 E> */ B(TestEqual), R(0), |
430 B(JumpIfFalse), U8(4), | 421 B(JumpIfFalse), U8(4), |
431 /* 91 S> */ B(Jump), U8(8), | 422 /* 91 S> */ B(Jump), U8(7), |
432 /* 103 S> */ B(LdaSmi), U8(1), | 423 /* 103 S> */ B(AddSmi), U8(1), R(0), |
433 B(Add), R(0), | |
434 B(Star), R(0), | 424 B(Star), R(0), |
435 B(Jump), U8(-23), | 425 B(Jump), U8(-22), |
436 B(LdaUndefined), | 426 B(LdaUndefined), |
437 /* 116 S> */ B(Return), | 427 /* 116 S> */ B(Return), |
438 ] | 428 ] |
439 constant pool: [ | 429 constant pool: [ |
440 ] | 430 ] |
441 handlers: [ | 431 handlers: [ |
442 ] | 432 ] |
443 | 433 |
444 --- | 434 --- |
445 snippet: " | 435 snippet: " |
446 for (var x = 0;;) { | 436 for (var x = 0;;) { |
447 if (x == 1) break; | 437 if (x == 1) break; |
448 if (x == 2) continue; | 438 if (x == 2) continue; |
449 x = x + 1; | 439 x = x + 1; |
450 } | 440 } |
451 " | 441 " |
452 frame size: 1 | 442 frame size: 1 |
453 parameter count: 1 | 443 parameter count: 1 |
454 bytecode array length: 31 | 444 bytecode array length: 30 |
455 bytecodes: [ | 445 bytecodes: [ |
456 /* 30 E> */ B(StackCheck), | 446 /* 30 E> */ B(StackCheck), |
457 /* 47 S> */ B(LdaZero), | 447 /* 47 S> */ B(LdaZero), |
458 B(Star), R(0), | 448 B(Star), R(0), |
459 /* 34 E> */ B(StackCheck), | 449 /* 34 E> */ B(StackCheck), |
460 /* 56 S> */ B(LdaSmi), U8(1), | 450 /* 56 S> */ B(LdaSmi), U8(1), |
461 /* 62 E> */ B(TestEqual), R(0), | 451 /* 62 E> */ B(TestEqual), R(0), |
462 B(JumpIfFalse), U8(4), | 452 B(JumpIfFalse), U8(4), |
463 /* 68 S> */ B(Jump), U8(18), | 453 /* 68 S> */ B(Jump), U8(17), |
464 /* 77 S> */ B(LdaSmi), U8(2), | 454 /* 77 S> */ B(LdaSmi), U8(2), |
465 /* 83 E> */ B(TestEqual), R(0), | 455 /* 83 E> */ B(TestEqual), R(0), |
466 B(JumpIfFalse), U8(4), | 456 B(JumpIfFalse), U8(4), |
467 /* 89 S> */ B(Jump), U8(8), | 457 /* 89 S> */ B(Jump), U8(7), |
468 /* 101 S> */ B(LdaSmi), U8(1), | 458 /* 101 S> */ B(AddSmi), U8(1), R(0), |
469 B(Add), R(0), | |
470 B(Star), R(0), | 459 B(Star), R(0), |
471 B(Jump), U8(-23), | 460 B(Jump), U8(-22), |
472 B(LdaUndefined), | 461 B(LdaUndefined), |
473 /* 114 S> */ B(Return), | 462 /* 114 S> */ B(Return), |
474 ] | 463 ] |
475 constant pool: [ | 464 constant pool: [ |
476 ] | 465 ] |
477 handlers: [ | 466 handlers: [ |
478 ] | 467 ] |
479 | 468 |
480 --- | 469 --- |
481 snippet: " | 470 snippet: " |
482 var x = 0; | 471 var x = 0; |
483 for (;; x = x + 1) { | 472 for (;; x = x + 1) { |
484 if (x == 1) break; | 473 if (x == 1) break; |
485 if (x == 2) continue; | 474 if (x == 2) continue; |
486 } | 475 } |
487 " | 476 " |
488 frame size: 1 | 477 frame size: 1 |
489 parameter count: 1 | 478 parameter count: 1 |
490 bytecode array length: 31 | 479 bytecode array length: 30 |
491 bytecodes: [ | 480 bytecodes: [ |
492 /* 30 E> */ B(StackCheck), | 481 /* 30 E> */ B(StackCheck), |
493 /* 42 S> */ B(LdaZero), | 482 /* 42 S> */ B(LdaZero), |
494 B(Star), R(0), | 483 B(Star), R(0), |
495 /* 45 E> */ B(StackCheck), | 484 /* 45 E> */ B(StackCheck), |
496 /* 68 S> */ B(LdaSmi), U8(1), | 485 /* 68 S> */ B(LdaSmi), U8(1), |
497 /* 74 E> */ B(TestEqual), R(0), | 486 /* 74 E> */ B(TestEqual), R(0), |
498 B(JumpIfFalse), U8(4), | 487 B(JumpIfFalse), U8(4), |
499 /* 80 S> */ B(Jump), U8(18), | 488 /* 80 S> */ B(Jump), U8(17), |
500 /* 89 S> */ B(LdaSmi), U8(2), | 489 /* 89 S> */ B(LdaSmi), U8(2), |
501 /* 95 E> */ B(TestEqual), R(0), | 490 /* 95 E> */ B(TestEqual), R(0), |
502 B(JumpIfFalse), U8(4), | 491 B(JumpIfFalse), U8(4), |
503 /* 101 S> */ B(Jump), U8(2), | 492 /* 101 S> */ B(Jump), U8(2), |
504 /* 55 S> */ B(LdaSmi), U8(1), | 493 /* 55 S> */ B(AddSmi), U8(1), R(0), |
505 B(Add), R(0), | |
506 B(Star), R(0), | 494 B(Star), R(0), |
507 B(Jump), U8(-23), | 495 B(Jump), U8(-22), |
508 B(LdaUndefined), | 496 B(LdaUndefined), |
509 /* 113 S> */ B(Return), | 497 /* 113 S> */ B(Return), |
510 ] | 498 ] |
511 constant pool: [ | 499 constant pool: [ |
512 ] | 500 ] |
513 handlers: [ | 501 handlers: [ |
514 ] | 502 ] |
515 | 503 |
516 --- | 504 --- |
517 snippet: " | 505 snippet: " |
518 for (var x = 0;; x = x + 1) { | 506 for (var x = 0;; x = x + 1) { |
519 if (x == 1) break; | 507 if (x == 1) break; |
520 if (x == 2) continue; | 508 if (x == 2) continue; |
521 } | 509 } |
522 " | 510 " |
523 frame size: 1 | 511 frame size: 1 |
524 parameter count: 1 | 512 parameter count: 1 |
525 bytecode array length: 31 | 513 bytecode array length: 30 |
526 bytecodes: [ | 514 bytecodes: [ |
527 /* 30 E> */ B(StackCheck), | 515 /* 30 E> */ B(StackCheck), |
528 /* 47 S> */ B(LdaZero), | 516 /* 47 S> */ B(LdaZero), |
529 B(Star), R(0), | 517 B(Star), R(0), |
530 /* 34 E> */ B(StackCheck), | 518 /* 34 E> */ B(StackCheck), |
531 /* 66 S> */ B(LdaSmi), U8(1), | 519 /* 66 S> */ B(LdaSmi), U8(1), |
532 /* 72 E> */ B(TestEqual), R(0), | 520 /* 72 E> */ B(TestEqual), R(0), |
533 B(JumpIfFalse), U8(4), | 521 B(JumpIfFalse), U8(4), |
534 /* 78 S> */ B(Jump), U8(18), | 522 /* 78 S> */ B(Jump), U8(17), |
535 /* 87 S> */ B(LdaSmi), U8(2), | 523 /* 87 S> */ B(LdaSmi), U8(2), |
536 /* 93 E> */ B(TestEqual), R(0), | 524 /* 93 E> */ B(TestEqual), R(0), |
537 B(JumpIfFalse), U8(4), | 525 B(JumpIfFalse), U8(4), |
538 /* 99 S> */ B(Jump), U8(2), | 526 /* 99 S> */ B(Jump), U8(2), |
539 /* 53 S> */ B(LdaSmi), U8(1), | 527 /* 53 S> */ B(AddSmi), U8(1), R(0), |
540 B(Add), R(0), | |
541 B(Star), R(0), | 528 B(Star), R(0), |
542 B(Jump), U8(-23), | 529 B(Jump), U8(-22), |
543 B(LdaUndefined), | 530 B(LdaUndefined), |
544 /* 111 S> */ B(Return), | 531 /* 111 S> */ B(Return), |
545 ] | 532 ] |
546 constant pool: [ | 533 constant pool: [ |
547 ] | 534 ] |
548 handlers: [ | 535 handlers: [ |
549 ] | 536 ] |
550 | 537 |
551 --- | 538 --- |
552 snippet: " | 539 snippet: " |
553 var u = 0; | 540 var u = 0; |
554 for (var i = 0; i < 100; i = i + 1) { | 541 for (var i = 0; i < 100; i = i + 1) { |
555 u = u + 1; | 542 u = u + 1; |
556 continue; | 543 continue; |
557 } | 544 } |
558 " | 545 " |
559 frame size: 2 | 546 frame size: 2 |
560 parameter count: 1 | 547 parameter count: 1 |
561 bytecode array length: 32 | 548 bytecode array length: 30 |
562 bytecodes: [ | 549 bytecodes: [ |
563 /* 30 E> */ B(StackCheck), | 550 /* 30 E> */ B(StackCheck), |
564 /* 42 S> */ B(LdaZero), | 551 /* 42 S> */ B(LdaZero), |
565 B(Star), R(0), | 552 B(Star), R(0), |
566 /* 58 S> */ B(LdaZero), | 553 /* 58 S> */ B(LdaZero), |
567 B(Star), R(1), | 554 B(Star), R(1), |
568 /* 63 S> */ B(LdaSmi), U8(100), | 555 /* 63 S> */ B(LdaSmi), U8(100), |
569 /* 63 E> */ B(TestLessThan), R(1), | 556 /* 63 E> */ B(TestLessThan), R(1), |
570 B(JumpIfFalse), U8(19), | 557 B(JumpIfFalse), U8(17), |
571 /* 45 E> */ B(StackCheck), | 558 /* 45 E> */ B(StackCheck), |
572 /* 85 S> */ B(LdaSmi), U8(1), | 559 /* 85 S> */ B(AddSmi), U8(1), R(0), |
573 B(Add), R(0), | |
574 B(Star), R(0), | 560 B(Star), R(0), |
575 /* 98 S> */ B(Jump), U8(2), | 561 /* 98 S> */ B(Jump), U8(2), |
576 /* 72 S> */ B(LdaSmi), U8(1), | 562 /* 72 S> */ B(AddSmi), U8(1), R(1), |
577 B(Add), R(1), | |
578 B(Star), R(1), | 563 B(Star), R(1), |
579 B(Jump), U8(-21), | 564 B(Jump), U8(-19), |
580 B(LdaUndefined), | 565 B(LdaUndefined), |
581 /* 110 S> */ B(Return), | 566 /* 110 S> */ B(Return), |
582 ] | 567 ] |
583 constant pool: [ | 568 constant pool: [ |
584 ] | 569 ] |
585 handlers: [ | 570 handlers: [ |
586 ] | 571 ] |
587 | 572 |
588 --- | 573 --- |
589 snippet: " | 574 snippet: " |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 snippet: " | 634 snippet: " |
650 var x = 0; | 635 var x = 0; |
651 for (var i = 0; true; ++i) { | 636 for (var i = 0; true; ++i) { |
652 x = x + 1; | 637 x = x + 1; |
653 if (x == 20) break; | 638 if (x == 20) break; |
654 }; | 639 }; |
655 return x; | 640 return x; |
656 " | 641 " |
657 frame size: 2 | 642 frame size: 2 |
658 parameter count: 1 | 643 parameter count: 1 |
659 bytecode array length: 32 | 644 bytecode array length: 31 |
660 bytecodes: [ | 645 bytecodes: [ |
661 /* 30 E> */ B(StackCheck), | 646 /* 30 E> */ B(StackCheck), |
662 /* 42 S> */ B(LdaZero), | 647 /* 42 S> */ B(LdaZero), |
663 B(Star), R(0), | 648 B(Star), R(0), |
664 /* 58 S> */ B(LdaZero), | 649 /* 58 S> */ B(LdaZero), |
665 B(Star), R(1), | 650 B(Star), R(1), |
666 /* 45 E> */ B(StackCheck), | 651 /* 45 E> */ B(StackCheck), |
667 /* 76 S> */ B(LdaSmi), U8(1), | 652 /* 76 S> */ B(AddSmi), U8(1), R(0), |
668 B(Add), R(0), | |
669 B(Star), R(0), | 653 B(Star), R(0), |
670 /* 89 S> */ B(LdaSmi), U8(20), | 654 /* 89 S> */ B(LdaSmi), U8(20), |
671 /* 95 E> */ B(TestEqual), R(0), | 655 /* 95 E> */ B(TestEqual), R(0), |
672 B(JumpIfFalse), U8(4), | 656 B(JumpIfFalse), U8(4), |
673 /* 102 S> */ B(Jump), U8(9), | 657 /* 102 S> */ B(Jump), U8(9), |
674 /* 69 S> */ B(Ldar), R(1), | 658 /* 69 S> */ B(Ldar), R(1), |
675 B(Inc), | 659 B(Inc), |
676 B(Star), R(1), | 660 B(Star), R(1), |
677 B(Jump), U8(-20), | 661 B(Jump), U8(-19), |
678 /* 112 S> */ B(Ldar), R(0), | 662 /* 112 S> */ B(Ldar), R(0), |
679 /* 122 S> */ B(Return), | 663 /* 122 S> */ B(Return), |
680 ] | 664 ] |
681 constant pool: [ | 665 constant pool: [ |
682 ] | 666 ] |
683 handlers: [ | 667 handlers: [ |
684 ] | 668 ] |
685 | 669 |
686 --- | 670 --- |
687 snippet: " | 671 snippet: " |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 ] | 738 ] |
755 constant pool: [ | 739 constant pool: [ |
756 InstanceType::FIXED_ARRAY_TYPE, | 740 InstanceType::FIXED_ARRAY_TYPE, |
757 InstanceType::SHARED_FUNCTION_INFO_TYPE, | 741 InstanceType::SHARED_FUNCTION_INFO_TYPE, |
758 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 742 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
759 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 743 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
760 ] | 744 ] |
761 handlers: [ | 745 handlers: [ |
762 ] | 746 ] |
763 | 747 |
OLD | NEW |