OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: no | 6 wrap: no |
7 module: yes | 7 module: yes |
8 top level: yes | 8 top level: yes |
9 | 9 |
10 --- | 10 --- |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 ] | 146 ] |
147 | 147 |
148 --- | 148 --- |
149 snippet: " | 149 snippet: " |
150 import {foo as goo} from \"bar\"; | 150 import {foo as goo} from \"bar\"; |
151 goo(42); | 151 goo(42); |
152 { let x; { goo(42) } }; | 152 { let x; { goo(42) } }; |
153 " | 153 " |
154 frame size: 9 | 154 frame size: 9 |
155 parameter count: 2 | 155 parameter count: 2 |
156 bytecode array length: 205 | 156 bytecode array length: 193 |
157 bytecodes: [ | 157 bytecodes: [ |
158 B(Ldar), R(new_target), | 158 B(Ldar), R(new_target), |
159 B(JumpIfUndefined), U8(21), | 159 B(JumpIfUndefined), U8(21), |
160 B(ResumeGenerator), R(new_target), | 160 B(ResumeGenerator), R(new_target), |
161 B(Star), R(2), | 161 B(Star), R(2), |
162 B(LdaZero), | 162 B(LdaZero), |
163 B(TestEqualStrict), R(2), U8(0), | 163 B(TestEqualStrict), R(2), U8(0), |
164 B(JumpIfTrue), U8(63), | 164 B(JumpIfTrue), U8(63), |
165 B(LdaSmi), U8(76), | 165 B(LdaSmi), U8(76), |
166 B(Star), R(3), | 166 B(Star), R(3), |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 B(JumpIfTrue), U8(16), | 201 B(JumpIfTrue), U8(16), |
202 B(Jump), U8(2), | 202 B(Jump), U8(2), |
203 B(LdaTrue), | 203 B(LdaTrue), |
204 B(Star), R(8), | 204 B(Star), R(8), |
205 B(Mov), R(5), R(7), | 205 B(Mov), R(5), R(7), |
206 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), | 206 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), |
207 /* 64 S> */ B(Return), | 207 /* 64 S> */ B(Return), |
208 B(Ldar), R(5), | 208 B(Ldar), R(5), |
209 /* 0 E> */ B(Throw), | 209 /* 0 E> */ B(Throw), |
210 /* 32 S> */ B(LdrUndefined), R(4), | 210 /* 32 S> */ B(LdrUndefined), R(4), |
211 B(LdaSmi), U8(-1), | 211 /* 32 E> */ B(LdaModuleVariable), U8(-1), U8(0), |
212 B(Star), R(6), | |
213 /* 32 E> */ B(CallRuntime), U16(Runtime::kLoadModuleVariable), R(6), U8(1), | |
214 B(JumpIfNotHole), U8(11), | 212 B(JumpIfNotHole), U8(11), |
215 B(LdaConstant), U8(1), | 213 B(LdaConstant), U8(1), |
216 B(Star), R(7), | 214 B(Star), R(6), |
217 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(7), U8(1), | 215 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), |
218 B(Star), R(3), | 216 B(Star), R(3), |
219 B(LdaSmi), U8(42), | 217 B(LdaSmi), U8(42), |
220 B(Star), R(5), | 218 B(Star), R(5), |
221 /* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2), | 219 /* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2), |
222 B(Ldar), R(closure), | 220 B(Ldar), R(closure), |
223 B(CreateBlockContext), U8(2), | 221 B(CreateBlockContext), U8(2), |
224 B(PushContext), R(1), | 222 B(PushContext), R(1), |
225 B(LdaTheHole), | 223 B(LdaTheHole), |
226 B(StaCurrentContextSlot), U8(4), | 224 B(StaCurrentContextSlot), U8(4), |
227 /* 47 S> */ B(LdaUndefined), | 225 /* 47 S> */ B(LdaUndefined), |
228 /* 47 E> */ B(StaCurrentContextSlot), U8(4), | 226 /* 47 E> */ B(StaCurrentContextSlot), U8(4), |
229 /* 52 S> */ B(LdrUndefined), R(4), | 227 /* 52 S> */ B(LdrUndefined), R(4), |
230 B(LdaSmi), U8(-1), | 228 /* 52 E> */ B(LdaModuleVariable), U8(-1), U8(1), |
231 B(Star), R(6), | |
232 /* 52 E> */ B(CallRuntime), U16(Runtime::kLoadModuleVariable), R(6), U8(1), | |
233 B(JumpIfNotHole), U8(11), | 229 B(JumpIfNotHole), U8(11), |
234 B(LdaConstant), U8(1), | 230 B(LdaConstant), U8(1), |
235 B(Star), R(7), | 231 B(Star), R(6), |
236 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(7), U8(1), | 232 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), |
237 B(Star), R(3), | 233 B(Star), R(3), |
238 B(LdaSmi), U8(42), | 234 B(LdaSmi), U8(42), |
239 B(Star), R(5), | 235 B(Star), R(5), |
240 /* 52 E> */ B(Call), R(3), R(4), U8(2), U8(4), | 236 /* 52 E> */ B(Call), R(3), R(4), U8(2), U8(4), |
241 B(PopContext), R(1), | 237 B(PopContext), R(1), |
242 B(LdaUndefined), | 238 B(LdaUndefined), |
243 /* 64 S> */ B(Return), | 239 /* 64 S> */ B(Return), |
244 ] | 240 ] |
245 constant pool: [ | 241 constant pool: [ |
246 FIXED_ARRAY_TYPE, | 242 FIXED_ARRAY_TYPE, |
247 ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"], | 243 ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"], |
248 FIXED_ARRAY_TYPE, | 244 FIXED_ARRAY_TYPE, |
249 ] | 245 ] |
250 handlers: [ | 246 handlers: [ |
251 ] | 247 ] |
252 | 248 |
253 --- | 249 --- |
254 snippet: " | 250 snippet: " |
255 export var foo = 42; | 251 export var foo = 42; |
256 foo++; | 252 foo++; |
257 { let x; { foo++ } }; | 253 { let x; { foo++ } }; |
258 " | 254 " |
259 frame size: 9 | 255 frame size: 9 |
260 parameter count: 2 | 256 parameter count: 2 |
261 bytecode array length: 196 | 257 bytecode array length: 160 |
262 bytecodes: [ | 258 bytecodes: [ |
263 B(Ldar), R(new_target), | 259 B(Ldar), R(new_target), |
264 B(JumpIfUndefined), U8(21), | 260 B(JumpIfUndefined), U8(21), |
265 B(ResumeGenerator), R(new_target), | 261 B(ResumeGenerator), R(new_target), |
266 B(Star), R(2), | 262 B(Star), R(2), |
267 B(LdaZero), | 263 B(LdaZero), |
268 B(TestEqualStrict), R(2), U8(0), | 264 B(TestEqualStrict), R(2), U8(0), |
269 B(JumpIfTrue), U8(63), | 265 B(JumpIfTrue), U8(63), |
270 B(LdaSmi), U8(76), | 266 B(LdaSmi), U8(76), |
271 B(Star), R(3), | 267 B(Star), R(3), |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 B(JumpIfTrue), U8(16), | 302 B(JumpIfTrue), U8(16), |
307 B(Jump), U8(2), | 303 B(Jump), U8(2), |
308 B(LdaTrue), | 304 B(LdaTrue), |
309 B(Star), R(8), | 305 B(Star), R(8), |
310 B(Mov), R(5), R(7), | 306 B(Mov), R(5), R(7), |
311 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), | 307 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), |
312 /* 49 S> */ B(Return), | 308 /* 49 S> */ B(Return), |
313 B(Ldar), R(5), | 309 B(Ldar), R(5), |
314 /* 0 E> */ B(Throw), | 310 /* 0 E> */ B(Throw), |
315 /* 17 S> */ B(LdaSmi), U8(42), | 311 /* 17 S> */ B(LdaSmi), U8(42), |
316 B(Star), R(4), | 312 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0), |
317 B(LdaSmi), U8(1), | 313 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0), |
318 B(Star), R(3), | |
319 /* 17 E> */ B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(3), U8(2), | |
320 /* 21 S> */ B(LdaSmi), U8(1), | |
321 B(Star), R(3), | |
322 B(CallRuntime), U16(Runtime::kLoadModuleVariable), R(3), U8(1), | |
323 B(Inc), U8(2), | 314 B(Inc), U8(2), |
324 B(Star), R(4), | 315 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0), |
325 B(LdaSmi), U8(1), | |
326 B(Star), R(3), | |
327 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(3), U8(2), | |
328 B(Ldar), R(closure), | 316 B(Ldar), R(closure), |
329 B(CreateBlockContext), U8(1), | 317 B(CreateBlockContext), U8(1), |
330 B(PushContext), R(1), | 318 B(PushContext), R(1), |
331 B(LdaTheHole), | 319 B(LdaTheHole), |
332 B(StaCurrentContextSlot), U8(4), | 320 B(StaCurrentContextSlot), U8(4), |
333 /* 34 S> */ B(LdaUndefined), | 321 /* 34 S> */ B(LdaUndefined), |
334 /* 34 E> */ B(StaCurrentContextSlot), U8(4), | 322 /* 34 E> */ B(StaCurrentContextSlot), U8(4), |
335 /* 39 S> */ B(LdaSmi), U8(1), | 323 /* 39 S> */ B(LdaModuleVariable), U8(1), U8(1), |
336 B(Star), R(3), | |
337 B(CallRuntime), U16(Runtime::kLoadModuleVariable), R(3), U8(1), | |
338 B(Inc), U8(3), | 324 B(Inc), U8(3), |
339 B(Star), R(4), | 325 /* 42 E> */ B(StaModuleVariable), U8(1), U8(1), |
340 B(LdaSmi), U8(1), | |
341 B(Star), R(3), | |
342 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(3), U8(2), | |
343 B(PopContext), R(1), | 326 B(PopContext), R(1), |
344 B(LdaUndefined), | 327 B(LdaUndefined), |
345 /* 49 S> */ B(Return), | 328 /* 49 S> */ B(Return), |
346 ] | 329 ] |
347 constant pool: [ | 330 constant pool: [ |
348 FIXED_ARRAY_TYPE, | 331 FIXED_ARRAY_TYPE, |
349 FIXED_ARRAY_TYPE, | 332 FIXED_ARRAY_TYPE, |
350 ] | 333 ] |
351 handlers: [ | 334 handlers: [ |
352 ] | 335 ] |
353 | 336 |
354 --- | 337 --- |
355 snippet: " | 338 snippet: " |
356 export let foo = 42; | 339 export let foo = 42; |
357 foo++; | 340 foo++; |
358 { let x; { foo++ } }; | 341 { let x; { foo++ } }; |
359 " | 342 " |
360 frame size: 9 | 343 frame size: 9 |
361 parameter count: 2 | 344 parameter count: 2 |
362 bytecode array length: 208 | 345 bytecode array length: 164 |
363 bytecodes: [ | 346 bytecodes: [ |
364 B(Ldar), R(new_target), | 347 B(Ldar), R(new_target), |
365 B(JumpIfUndefined), U8(21), | 348 B(JumpIfUndefined), U8(21), |
366 B(ResumeGenerator), R(new_target), | 349 B(ResumeGenerator), R(new_target), |
367 B(Star), R(2), | 350 B(Star), R(2), |
368 B(LdaZero), | 351 B(LdaZero), |
369 B(TestEqualStrict), R(2), U8(0), | 352 B(TestEqualStrict), R(2), U8(0), |
370 B(JumpIfTrue), U8(75), | 353 B(JumpIfTrue), U8(67), |
371 B(LdaSmi), U8(76), | 354 B(LdaSmi), U8(76), |
372 B(Star), R(3), | 355 B(Star), R(3), |
373 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), | 356 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
374 B(LdaSmi), U8(-2), | 357 B(LdaSmi), U8(-2), |
375 B(Star), R(2), | 358 B(Star), R(2), |
376 B(LdaConstant), U8(0), | 359 B(LdaConstant), U8(0), |
377 B(Star), R(5), | 360 B(Star), R(5), |
378 B(Mov), R(arg0), R(3), | 361 B(Mov), R(arg0), R(3), |
379 B(Mov), R(closure), R(4), | 362 B(Mov), R(closure), R(4), |
380 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), | 363 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), |
381 B(PushContext), R(0), | 364 B(PushContext), R(0), |
382 B(Ldar), R(this), | 365 B(Ldar), R(this), |
383 B(StaCurrentContextSlot), U8(4), | 366 B(StaCurrentContextSlot), U8(4), |
384 B(LdaTheHole), | 367 B(LdaTheHole), |
385 B(Star), R(4), | 368 B(StaModuleVariable), U8(1), U8(0), |
386 B(LdaSmi), U8(1), | |
387 B(Star), R(3), | |
388 B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(3), U8(2), | |
389 /* 0 E> */ B(StackCheck), | 369 /* 0 E> */ B(StackCheck), |
390 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4), | 370 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4), |
391 B(Ldar), R(4), | 371 B(Ldar), R(4), |
392 B(Mov), R(closure), R(3), | 372 B(Mov), R(closure), R(3), |
393 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), | 373 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), |
394 B(StaCurrentContextSlot), U8(5), | 374 B(StaCurrentContextSlot), U8(5), |
395 B(Star), R(3), | 375 B(Star), R(3), |
396 B(LdrCurrentContextSlot), U8(5), R(4), | 376 B(LdrCurrentContextSlot), U8(5), R(4), |
397 B(LdaZero), | 377 B(LdaZero), |
398 B(SuspendGenerator), R(4), | 378 B(SuspendGenerator), R(4), |
(...skipping 13 matching lines...) Expand all Loading... |
412 B(JumpIfTrue), U8(16), | 392 B(JumpIfTrue), U8(16), |
413 B(Jump), U8(2), | 393 B(Jump), U8(2), |
414 B(LdaTrue), | 394 B(LdaTrue), |
415 B(Star), R(8), | 395 B(Star), R(8), |
416 B(Mov), R(5), R(7), | 396 B(Mov), R(5), R(7), |
417 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), | 397 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), |
418 /* 49 S> */ B(Return), | 398 /* 49 S> */ B(Return), |
419 B(Ldar), R(5), | 399 B(Ldar), R(5), |
420 /* 0 E> */ B(Throw), | 400 /* 0 E> */ B(Throw), |
421 /* 17 S> */ B(LdaSmi), U8(42), | 401 /* 17 S> */ B(LdaSmi), U8(42), |
422 B(Star), R(4), | 402 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0), |
423 B(LdaSmi), U8(1), | 403 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0), |
424 B(Star), R(3), | |
425 /* 17 E> */ B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(3), U8(2), | |
426 /* 21 S> */ B(LdaSmi), U8(1), | |
427 B(Star), R(3), | |
428 B(CallRuntime), U16(Runtime::kLoadModuleVariable), R(3), U8(1), | |
429 B(Inc), U8(2), | 404 B(Inc), U8(2), |
430 B(Star), R(4), | 405 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0), |
431 B(LdaSmi), U8(1), | |
432 B(Star), R(3), | |
433 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(3), U8(2), | |
434 B(Ldar), R(closure), | 406 B(Ldar), R(closure), |
435 B(CreateBlockContext), U8(1), | 407 B(CreateBlockContext), U8(1), |
436 B(PushContext), R(1), | 408 B(PushContext), R(1), |
437 B(LdaTheHole), | 409 B(LdaTheHole), |
438 B(StaCurrentContextSlot), U8(4), | 410 B(StaCurrentContextSlot), U8(4), |
439 /* 34 S> */ B(LdaUndefined), | 411 /* 34 S> */ B(LdaUndefined), |
440 /* 34 E> */ B(StaCurrentContextSlot), U8(4), | 412 /* 34 E> */ B(StaCurrentContextSlot), U8(4), |
441 /* 39 S> */ B(LdaSmi), U8(1), | 413 /* 39 S> */ B(LdaModuleVariable), U8(1), U8(1), |
442 B(Star), R(3), | |
443 B(CallRuntime), U16(Runtime::kLoadModuleVariable), R(3), U8(1), | |
444 B(Inc), U8(3), | 414 B(Inc), U8(3), |
445 B(Star), R(4), | 415 /* 42 E> */ B(StaModuleVariable), U8(1), U8(1), |
446 B(LdaSmi), U8(1), | |
447 B(Star), R(3), | |
448 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(3), U8(2), | |
449 B(PopContext), R(1), | 416 B(PopContext), R(1), |
450 B(LdaUndefined), | 417 B(LdaUndefined), |
451 /* 49 S> */ B(Return), | 418 /* 49 S> */ B(Return), |
452 ] | 419 ] |
453 constant pool: [ | 420 constant pool: [ |
454 FIXED_ARRAY_TYPE, | 421 FIXED_ARRAY_TYPE, |
455 FIXED_ARRAY_TYPE, | 422 FIXED_ARRAY_TYPE, |
456 ] | 423 ] |
457 handlers: [ | 424 handlers: [ |
458 ] | 425 ] |
459 | 426 |
460 --- | 427 --- |
461 snippet: " | 428 snippet: " |
462 export const foo = 42; | 429 export const foo = 42; |
463 foo++; | 430 foo++; |
464 { let x; { foo++ } }; | 431 { let x; { foo++ } }; |
465 " | 432 " |
466 frame size: 9 | 433 frame size: 9 |
467 parameter count: 2 | 434 parameter count: 2 |
468 bytecode array length: 196 | 435 bytecode array length: 168 |
469 bytecodes: [ | 436 bytecodes: [ |
470 B(Ldar), R(new_target), | 437 B(Ldar), R(new_target), |
471 B(JumpIfUndefined), U8(21), | 438 B(JumpIfUndefined), U8(21), |
472 B(ResumeGenerator), R(new_target), | 439 B(ResumeGenerator), R(new_target), |
473 B(Star), R(2), | 440 B(Star), R(2), |
474 B(LdaZero), | 441 B(LdaZero), |
475 B(TestEqualStrict), R(2), U8(0), | 442 B(TestEqualStrict), R(2), U8(0), |
476 B(JumpIfTrue), U8(75), | 443 B(JumpIfTrue), U8(67), |
477 B(LdaSmi), U8(76), | 444 B(LdaSmi), U8(76), |
478 B(Star), R(3), | 445 B(Star), R(3), |
479 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), | 446 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
480 B(LdaSmi), U8(-2), | 447 B(LdaSmi), U8(-2), |
481 B(Star), R(2), | 448 B(Star), R(2), |
482 B(LdaConstant), U8(0), | 449 B(LdaConstant), U8(0), |
483 B(Star), R(5), | 450 B(Star), R(5), |
484 B(Mov), R(arg0), R(3), | 451 B(Mov), R(arg0), R(3), |
485 B(Mov), R(closure), R(4), | 452 B(Mov), R(closure), R(4), |
486 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), | 453 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), |
487 B(PushContext), R(0), | 454 B(PushContext), R(0), |
488 B(Ldar), R(this), | 455 B(Ldar), R(this), |
489 B(StaCurrentContextSlot), U8(4), | 456 B(StaCurrentContextSlot), U8(4), |
490 B(LdaTheHole), | 457 B(LdaTheHole), |
491 B(Star), R(4), | 458 B(StaModuleVariable), U8(1), U8(0), |
492 B(LdaSmi), U8(1), | |
493 B(Star), R(3), | |
494 B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(3), U8(2), | |
495 /* 0 E> */ B(StackCheck), | 459 /* 0 E> */ B(StackCheck), |
496 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4), | 460 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4), |
497 B(Ldar), R(4), | 461 B(Ldar), R(4), |
498 B(Mov), R(closure), R(3), | 462 B(Mov), R(closure), R(3), |
499 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), | 463 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), |
500 B(StaCurrentContextSlot), U8(5), | 464 B(StaCurrentContextSlot), U8(5), |
501 B(Star), R(3), | 465 B(Star), R(3), |
502 B(LdrCurrentContextSlot), U8(5), R(4), | 466 B(LdrCurrentContextSlot), U8(5), R(4), |
503 B(LdaZero), | 467 B(LdaZero), |
504 B(SuspendGenerator), R(4), | 468 B(SuspendGenerator), R(4), |
(...skipping 13 matching lines...) Expand all Loading... |
518 B(JumpIfTrue), U8(16), | 482 B(JumpIfTrue), U8(16), |
519 B(Jump), U8(2), | 483 B(Jump), U8(2), |
520 B(LdaTrue), | 484 B(LdaTrue), |
521 B(Star), R(8), | 485 B(Star), R(8), |
522 B(Mov), R(5), R(7), | 486 B(Mov), R(5), R(7), |
523 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), | 487 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8
(2), |
524 /* 51 S> */ B(Return), | 488 /* 51 S> */ B(Return), |
525 B(Ldar), R(5), | 489 B(Ldar), R(5), |
526 /* 0 E> */ B(Throw), | 490 /* 0 E> */ B(Throw), |
527 /* 19 S> */ B(LdaSmi), U8(42), | 491 /* 19 S> */ B(LdaSmi), U8(42), |
528 B(Star), R(4), | 492 /* 19 E> */ B(StaModuleVariable), U8(1), U8(0), |
529 B(LdaSmi), U8(1), | 493 /* 23 S> */ B(LdaModuleVariable), U8(1), U8(0), |
530 B(Star), R(3), | |
531 /* 19 E> */ B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(3), U8(2), | |
532 /* 23 S> */ B(LdaSmi), U8(1), | |
533 B(Star), R(3), | |
534 B(CallRuntime), U16(Runtime::kLoadModuleVariable), R(3), U8(1), | |
535 B(Inc), U8(2), | 494 B(Inc), U8(2), |
536 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 495 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
537 B(Ldar), R(closure), | 496 B(Ldar), R(closure), |
538 B(CreateBlockContext), U8(1), | 497 B(CreateBlockContext), U8(1), |
539 B(PushContext), R(1), | 498 B(PushContext), R(1), |
540 B(LdaTheHole), | 499 B(LdaTheHole), |
541 B(StaCurrentContextSlot), U8(4), | 500 B(StaCurrentContextSlot), U8(4), |
542 /* 36 S> */ B(LdaUndefined), | 501 /* 36 S> */ B(LdaUndefined), |
543 /* 36 E> */ B(StaCurrentContextSlot), U8(4), | 502 /* 36 E> */ B(StaCurrentContextSlot), U8(4), |
544 /* 41 S> */ B(LdaSmi), U8(1), | 503 /* 41 S> */ B(LdaModuleVariable), U8(1), U8(1), |
545 B(Star), R(3), | |
546 B(CallRuntime), U16(Runtime::kLoadModuleVariable), R(3), U8(1), | |
547 B(Inc), U8(3), | 504 B(Inc), U8(3), |
548 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 505 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
549 B(PopContext), R(1), | 506 B(PopContext), R(1), |
550 B(LdaUndefined), | 507 B(LdaUndefined), |
551 /* 51 S> */ B(Return), | 508 /* 51 S> */ B(Return), |
552 ] | 509 ] |
553 constant pool: [ | 510 constant pool: [ |
554 FIXED_ARRAY_TYPE, | 511 FIXED_ARRAY_TYPE, |
555 FIXED_ARRAY_TYPE, | 512 FIXED_ARRAY_TYPE, |
556 ] | 513 ] |
557 handlers: [ | 514 handlers: [ |
558 ] | 515 ] |
559 | 516 |
560 --- | 517 --- |
561 snippet: " | 518 snippet: " |
562 export default (function () {}); | 519 export default (function () {}); |
563 " | 520 " |
564 frame size: 8 | 521 frame size: 8 |
565 parameter count: 2 | 522 parameter count: 2 |
566 bytecode array length: 151 | 523 bytecode array length: 135 |
567 bytecodes: [ | 524 bytecodes: [ |
568 B(Ldar), R(new_target), | 525 B(Ldar), R(new_target), |
569 B(JumpIfUndefined), U8(21), | 526 B(JumpIfUndefined), U8(21), |
570 B(ResumeGenerator), R(new_target), | 527 B(ResumeGenerator), R(new_target), |
571 B(Star), R(1), | 528 B(Star), R(1), |
572 B(LdaZero), | 529 B(LdaZero), |
573 B(TestEqualStrict), R(1), U8(0), | 530 B(TestEqualStrict), R(1), U8(0), |
574 B(JumpIfTrue), U8(75), | 531 B(JumpIfTrue), U8(67), |
575 B(LdaSmi), U8(76), | 532 B(LdaSmi), U8(76), |
576 B(Star), R(2), | 533 B(Star), R(2), |
577 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), | 534 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), |
578 B(LdaSmi), U8(-2), | 535 B(LdaSmi), U8(-2), |
579 B(Star), R(1), | 536 B(Star), R(1), |
580 B(LdaConstant), U8(0), | 537 B(LdaConstant), U8(0), |
581 B(Star), R(4), | 538 B(Star), R(4), |
582 B(Mov), R(arg0), R(2), | 539 B(Mov), R(arg0), R(2), |
583 B(Mov), R(closure), R(3), | 540 B(Mov), R(closure), R(3), |
584 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), | 541 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), |
585 B(PushContext), R(0), | 542 B(PushContext), R(0), |
586 B(Ldar), R(this), | 543 B(Ldar), R(this), |
587 B(StaCurrentContextSlot), U8(4), | 544 B(StaCurrentContextSlot), U8(4), |
588 B(LdaTheHole), | 545 B(LdaTheHole), |
589 B(Star), R(3), | 546 B(StaModuleVariable), U8(1), U8(0), |
590 B(LdaSmi), U8(1), | |
591 B(Star), R(2), | |
592 B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(2), U8(2), | |
593 /* 0 E> */ B(StackCheck), | 547 /* 0 E> */ B(StackCheck), |
594 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), | 548 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), |
595 B(Ldar), R(3), | 549 B(Ldar), R(3), |
596 B(Mov), R(closure), R(2), | 550 B(Mov), R(closure), R(2), |
597 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), | 551 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), |
598 B(StaCurrentContextSlot), U8(5), | 552 B(StaCurrentContextSlot), U8(5), |
599 B(Star), R(2), | 553 B(Star), R(2), |
600 B(LdrCurrentContextSlot), U8(5), R(3), | 554 B(LdrCurrentContextSlot), U8(5), R(3), |
601 B(LdaZero), | 555 B(LdaZero), |
602 B(SuspendGenerator), R(3), | 556 B(SuspendGenerator), R(3), |
(...skipping 13 matching lines...) Expand all Loading... |
616 B(JumpIfTrue), U8(16), | 570 B(JumpIfTrue), U8(16), |
617 B(Jump), U8(2), | 571 B(Jump), U8(2), |
618 B(LdaTrue), | 572 B(LdaTrue), |
619 B(Star), R(7), | 573 B(Star), R(7), |
620 B(Mov), R(4), R(6), | 574 B(Mov), R(4), R(6), |
621 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8
(2), | 575 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8
(2), |
622 /* 32 S> */ B(Return), | 576 /* 32 S> */ B(Return), |
623 B(Ldar), R(4), | 577 B(Ldar), R(4), |
624 /* 0 E> */ B(Throw), | 578 /* 0 E> */ B(Throw), |
625 B(CreateClosure), U8(1), U8(0), | 579 B(CreateClosure), U8(1), U8(0), |
626 B(Star), R(3), | 580 B(StaModuleVariable), U8(1), U8(0), |
627 B(LdaSmi), U8(1), | |
628 B(Star), R(2), | |
629 B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(2), U8(2), | |
630 B(LdaUndefined), | 581 B(LdaUndefined), |
631 /* 32 S> */ B(Return), | 582 /* 32 S> */ B(Return), |
632 ] | 583 ] |
633 constant pool: [ | 584 constant pool: [ |
634 FIXED_ARRAY_TYPE, | 585 FIXED_ARRAY_TYPE, |
635 SHARED_FUNCTION_INFO_TYPE, | 586 SHARED_FUNCTION_INFO_TYPE, |
636 ] | 587 ] |
637 handlers: [ | 588 handlers: [ |
638 ] | 589 ] |
639 | 590 |
640 --- | 591 --- |
641 snippet: " | 592 snippet: " |
642 export default (class {}); | 593 export default (class {}); |
643 " | 594 " |
644 frame size: 8 | 595 frame size: 8 |
645 parameter count: 2 | 596 parameter count: 2 |
646 bytecode array length: 184 | 597 bytecode array length: 169 |
647 bytecodes: [ | 598 bytecodes: [ |
648 B(Ldar), R(new_target), | 599 B(Ldar), R(new_target), |
649 B(JumpIfUndefined), U8(21), | 600 B(JumpIfUndefined), U8(21), |
650 B(ResumeGenerator), R(new_target), | 601 B(ResumeGenerator), R(new_target), |
651 B(Star), R(1), | 602 B(Star), R(1), |
652 B(LdaZero), | 603 B(LdaZero), |
653 B(TestEqualStrict), R(1), U8(0), | 604 B(TestEqualStrict), R(1), U8(0), |
654 B(JumpIfTrue), U8(75), | 605 B(JumpIfTrue), U8(67), |
655 B(LdaSmi), U8(76), | 606 B(LdaSmi), U8(76), |
656 B(Star), R(2), | 607 B(Star), R(2), |
657 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), | 608 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), |
658 B(LdaSmi), U8(-2), | 609 B(LdaSmi), U8(-2), |
659 B(Star), R(1), | 610 B(Star), R(1), |
660 B(LdaConstant), U8(0), | 611 B(LdaConstant), U8(0), |
661 B(Star), R(4), | 612 B(Star), R(4), |
662 B(Mov), R(arg0), R(2), | 613 B(Mov), R(arg0), R(2), |
663 B(Mov), R(closure), R(3), | 614 B(Mov), R(closure), R(3), |
664 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), | 615 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), |
665 B(PushContext), R(0), | 616 B(PushContext), R(0), |
666 B(Ldar), R(this), | 617 B(Ldar), R(this), |
667 B(StaCurrentContextSlot), U8(4), | 618 B(StaCurrentContextSlot), U8(4), |
668 B(LdaTheHole), | 619 B(LdaTheHole), |
669 B(Star), R(3), | 620 B(StaModuleVariable), U8(1), U8(0), |
670 B(LdaSmi), U8(1), | |
671 B(Star), R(2), | |
672 B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(2), U8(2), | |
673 /* 0 E> */ B(StackCheck), | 621 /* 0 E> */ B(StackCheck), |
674 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), | 622 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3), |
675 B(Ldar), R(3), | 623 B(Ldar), R(3), |
676 B(Mov), R(closure), R(2), | 624 B(Mov), R(closure), R(2), |
677 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), | 625 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), |
678 B(StaCurrentContextSlot), U8(5), | 626 B(StaCurrentContextSlot), U8(5), |
679 B(Star), R(2), | 627 B(Star), R(2), |
680 B(LdrCurrentContextSlot), U8(5), R(3), | 628 B(LdrCurrentContextSlot), U8(5), R(3), |
681 B(LdaZero), | 629 B(LdaZero), |
682 B(SuspendGenerator), R(3), | 630 B(SuspendGenerator), R(3), |
(...skipping 25 matching lines...) Expand all Loading... |
708 B(Star), R(3), | 656 B(Star), R(3), |
709 B(LdaSmi), U8(16), | 657 B(LdaSmi), U8(16), |
710 B(Star), R(4), | 658 B(Star), R(4), |
711 B(LdaSmi), U8(24), | 659 B(LdaSmi), U8(24), |
712 B(Star), R(5), | 660 B(Star), R(5), |
713 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4), | 661 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4), |
714 B(Star), R(2), | 662 B(Star), R(2), |
715 B(LdrNamedProperty), R(2), U8(2), U8(2), R(3), | 663 B(LdrNamedProperty), R(2), U8(2), U8(2), R(3), |
716 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1), | 664 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1), |
717 B(StaCurrentContextSlot), U8(6), | 665 B(StaCurrentContextSlot), U8(6), |
718 /* 16 E> */ B(LdrCurrentContextSlot), U8(6), R(3), | 666 /* 16 E> */ B(LdaCurrentContextSlot), U8(6), |
719 B(LdaSmi), U8(1), | 667 B(StaModuleVariable), U8(1), U8(0), |
720 B(Star), R(2), | |
721 B(CallRuntime), U16(Runtime::kStoreModuleVariable), R(2), U8(2), | |
722 B(LdaUndefined), | 668 B(LdaUndefined), |
723 /* 26 S> */ B(Return), | 669 /* 26 S> */ B(Return), |
724 ] | 670 ] |
725 constant pool: [ | 671 constant pool: [ |
726 FIXED_ARRAY_TYPE, | 672 FIXED_ARRAY_TYPE, |
727 SHARED_FUNCTION_INFO_TYPE, | 673 SHARED_FUNCTION_INFO_TYPE, |
728 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], | 674 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], |
729 ] | 675 ] |
730 handlers: [ | 676 handlers: [ |
731 ] | 677 ] |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 /* 45 S> */ B(Return), | 889 /* 45 S> */ B(Return), |
944 ] | 890 ] |
945 constant pool: [ | 891 constant pool: [ |
946 FIXED_ARRAY_TYPE, | 892 FIXED_ARRAY_TYPE, |
947 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], | 893 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], |
948 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 894 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
949 ] | 895 ] |
950 handlers: [ | 896 handlers: [ |
951 ] | 897 ] |
952 | 898 |
OLD | NEW |