OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 wrap: yes | 6 wrap: yes |
7 | 7 |
8 --- | 8 --- |
9 snippet: " | 9 snippet: " |
10 var a; return function() { a = 1; }; | 10 var a; return function() { a = 1; }; |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 ] | 70 ] |
71 handlers: [ | 71 handlers: [ |
72 ] | 72 ] |
73 | 73 |
74 --- | 74 --- |
75 snippet: " | 75 snippet: " |
76 var a; (function() { a = 2; })(); return a; | 76 var a; (function() { a = 2; })(); return a; |
77 " | 77 " |
78 frame size: 3 | 78 frame size: 3 |
79 parameter count: 1 | 79 parameter count: 1 |
80 bytecode array length: 22 | 80 bytecode array length: 21 |
81 bytecodes: [ | 81 bytecodes: [ |
82 B(CreateFunctionContext), U8(1), | 82 B(CreateFunctionContext), U8(1), |
83 B(PushContext), R(0), | 83 B(PushContext), R(0), |
84 /* 30 E> */ B(StackCheck), | 84 /* 30 E> */ B(StackCheck), |
85 /* 41 S> */ B(LdaUndefined), | 85 /* 41 S> */ B(LdaUndefined), |
86 B(Star), R(2), | 86 B(Star), R(2), |
87 B(CreateClosure), U8(0), U8(4), U8(2), | 87 B(CreateClosure), U8(0), U8(4), U8(2), |
88 B(Star), R(1), | 88 B(Star), R(1), |
89 /* 64 E> */ B(Call), R(1), R(2), U8(1), U8(2), | 89 /* 64 E> */ B(Call0), R(1), R(2), U8(2), |
90 /* 68 S> */ B(LdaCurrentContextSlot), U8(4), | 90 /* 68 S> */ B(LdaCurrentContextSlot), U8(4), |
91 /* 78 S> */ B(Return), | 91 /* 78 S> */ B(Return), |
92 ] | 92 ] |
93 constant pool: [ | 93 constant pool: [ |
94 SHARED_FUNCTION_INFO_TYPE, | 94 SHARED_FUNCTION_INFO_TYPE, |
95 ] | 95 ] |
96 handlers: [ | 96 handlers: [ |
97 ] | 97 ] |
98 | 98 |
99 --- | 99 --- |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 var a246 = 0; | 383 var a246 = 0; |
384 var a247 = 0; | 384 var a247 = 0; |
385 var a248 = 0; | 385 var a248 = 0; |
386 var a249 = 0; | 386 var a249 = 0; |
387 eval(); | 387 eval(); |
388 var b = 100; | 388 var b = 100; |
389 return b | 389 return b |
390 " | 390 " |
391 frame size: 3 | 391 frame size: 3 |
392 parameter count: 1 | 392 parameter count: 1 |
393 bytecode array length: 792 | 393 bytecode array length: 791 |
394 bytecodes: [ | 394 bytecodes: [ |
395 B(CreateFunctionContext), U8(254), | 395 B(CreateFunctionContext), U8(254), |
396 B(PushContext), R(0), | 396 B(PushContext), R(0), |
397 B(Ldar), R(this), | 397 B(Ldar), R(this), |
398 B(StaCurrentContextSlot), U8(4), | 398 B(StaCurrentContextSlot), U8(4), |
399 B(CreateUnmappedArguments), | 399 B(CreateUnmappedArguments), |
400 B(Wide), B(StaCurrentContextSlot), U16(257), | 400 B(Wide), B(StaCurrentContextSlot), U16(257), |
401 B(Ldar), R(new_target), | 401 B(Ldar), R(new_target), |
402 B(StaCurrentContextSlot), U8(5), | 402 B(StaCurrentContextSlot), U8(5), |
403 /* 30 E> */ B(StackCheck), | 403 /* 30 E> */ B(StackCheck), |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 /* 3407 S> */ B(LdaZero), | 898 /* 3407 S> */ B(LdaZero), |
899 /* 3407 E> */ B(StaCurrentContextSlot), U8(253), | 899 /* 3407 E> */ B(StaCurrentContextSlot), U8(253), |
900 /* 3421 S> */ B(LdaZero), | 900 /* 3421 S> */ B(LdaZero), |
901 /* 3421 E> */ B(StaCurrentContextSlot), U8(254), | 901 /* 3421 E> */ B(StaCurrentContextSlot), U8(254), |
902 /* 3435 S> */ B(LdaZero), | 902 /* 3435 S> */ B(LdaZero), |
903 /* 3435 E> */ B(StaCurrentContextSlot), U8(255), | 903 /* 3435 E> */ B(StaCurrentContextSlot), U8(255), |
904 /* 3438 S> */ B(LdaUndefined), | 904 /* 3438 S> */ B(LdaUndefined), |
905 B(Star), R(2), | 905 B(Star), R(2), |
906 B(LdaGlobal), U8(0), U8(4), | 906 B(LdaGlobal), U8(0), U8(4), |
907 B(Star), R(1), | 907 B(Star), R(1), |
908 /* 3438 E> */ B(Call), R(1), R(2), U8(1), U8(2), | 908 /* 3438 E> */ B(Call0), R(1), R(2), U8(2), |
909 /* 3454 S> */ B(LdaSmi), I8(100), | 909 /* 3454 S> */ B(LdaSmi), I8(100), |
910 /* 3454 E> */ B(Wide), B(StaCurrentContextSlot), U16(256), | 910 /* 3454 E> */ B(Wide), B(StaCurrentContextSlot), U16(256), |
911 /* 3459 S> */ B(Wide), B(LdaCurrentContextSlot), U16(256), | 911 /* 3459 S> */ B(Wide), B(LdaCurrentContextSlot), U16(256), |
912 /* 3468 S> */ B(Return), | 912 /* 3468 S> */ B(Return), |
913 ] | 913 ] |
914 constant pool: [ | 914 constant pool: [ |
915 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], | 915 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], |
916 ] | 916 ] |
917 handlers: [ | 917 handlers: [ |
918 ] | 918 ] |
919 | 919 |
OLD | NEW |