| 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 18 matching lines...) Expand all Loading... |
| 29 snippet: " | 29 snippet: " |
| 30 var a = 1; return function() { a = 2; }; | 30 var a = 1; return function() { a = 2; }; |
| 31 " | 31 " |
| 32 frame size: 1 | 32 frame size: 1 |
| 33 parameter count: 1 | 33 parameter count: 1 |
| 34 bytecode array length: 14 | 34 bytecode array length: 14 |
| 35 bytecodes: [ | 35 bytecodes: [ |
| 36 B(CreateFunctionContext), U8(1), | 36 B(CreateFunctionContext), U8(1), |
| 37 B(PushContext), R(0), | 37 B(PushContext), R(0), |
| 38 /* 30 E> */ B(StackCheck), | 38 /* 30 E> */ B(StackCheck), |
| 39 /* 42 S> */ B(LdaSmi), U8(1), | 39 /* 42 S> */ B(LdaSmi), I8(1), |
| 40 /* 42 E> */ B(StaCurrentContextSlot), U8(4), | 40 /* 42 E> */ B(StaCurrentContextSlot), U8(4), |
| 41 /* 45 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 41 /* 45 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
| 42 /* 75 S> */ B(Return), | 42 /* 75 S> */ B(Return), |
| 43 ] | 43 ] |
| 44 constant pool: [ | 44 constant pool: [ |
| 45 SHARED_FUNCTION_INFO_TYPE, | 45 SHARED_FUNCTION_INFO_TYPE, |
| 46 ] | 46 ] |
| 47 handlers: [ | 47 handlers: [ |
| 48 ] | 48 ] |
| 49 | 49 |
| 50 --- | 50 --- |
| 51 snippet: " | 51 snippet: " |
| 52 var a = 1; var b = 2; return function() { a = 2; b = 3 }; | 52 var a = 1; var b = 2; return function() { a = 2; b = 3 }; |
| 53 " | 53 " |
| 54 frame size: 1 | 54 frame size: 1 |
| 55 parameter count: 1 | 55 parameter count: 1 |
| 56 bytecode array length: 18 | 56 bytecode array length: 18 |
| 57 bytecodes: [ | 57 bytecodes: [ |
| 58 B(CreateFunctionContext), U8(2), | 58 B(CreateFunctionContext), U8(2), |
| 59 B(PushContext), R(0), | 59 B(PushContext), R(0), |
| 60 /* 30 E> */ B(StackCheck), | 60 /* 30 E> */ B(StackCheck), |
| 61 /* 42 S> */ B(LdaSmi), U8(1), | 61 /* 42 S> */ B(LdaSmi), I8(1), |
| 62 /* 42 E> */ B(StaCurrentContextSlot), U8(4), | 62 /* 42 E> */ B(StaCurrentContextSlot), U8(4), |
| 63 /* 53 S> */ B(LdaSmi), U8(2), | 63 /* 53 S> */ B(LdaSmi), I8(2), |
| 64 /* 53 E> */ B(StaCurrentContextSlot), U8(5), | 64 /* 53 E> */ B(StaCurrentContextSlot), U8(5), |
| 65 /* 56 S> */ B(CreateClosure), U8(0), U8(2), U8(2), | 65 /* 56 S> */ B(CreateClosure), U8(0), U8(2), U8(2), |
| 66 /* 92 S> */ B(Return), | 66 /* 92 S> */ B(Return), |
| 67 ] | 67 ] |
| 68 constant pool: [ | 68 constant pool: [ |
| 69 SHARED_FUNCTION_INFO_TYPE, | 69 SHARED_FUNCTION_INFO_TYPE, |
| 70 ] | 70 ] |
| 71 handlers: [ | 71 handlers: [ |
| 72 ] | 72 ] |
| 73 | 73 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 104 " | 104 " |
| 105 frame size: 2 | 105 frame size: 2 |
| 106 parameter count: 1 | 106 parameter count: 1 |
| 107 bytecode array length: 32 | 107 bytecode array length: 32 |
| 108 bytecodes: [ | 108 bytecodes: [ |
| 109 B(CreateFunctionContext), U8(1), | 109 B(CreateFunctionContext), U8(1), |
| 110 B(PushContext), R(0), | 110 B(PushContext), R(0), |
| 111 B(LdaTheHole), | 111 B(LdaTheHole), |
| 112 B(StaCurrentContextSlot), U8(4), | 112 B(StaCurrentContextSlot), U8(4), |
| 113 /* 30 E> */ B(StackCheck), | 113 /* 30 E> */ B(StackCheck), |
| 114 /* 56 S> */ B(LdaSmi), U8(1), | 114 /* 56 S> */ B(LdaSmi), I8(1), |
| 115 /* 56 E> */ B(StaCurrentContextSlot), U8(4), | 115 /* 56 E> */ B(StaCurrentContextSlot), U8(4), |
| 116 B(Ldar), R(closure), | 116 B(Ldar), R(closure), |
| 117 B(CreateBlockContext), U8(0), | 117 B(CreateBlockContext), U8(0), |
| 118 B(PushContext), R(1), | 118 B(PushContext), R(1), |
| 119 B(LdaTheHole), | 119 B(LdaTheHole), |
| 120 B(StaCurrentContextSlot), U8(4), | 120 B(StaCurrentContextSlot), U8(4), |
| 121 /* 69 S> */ B(LdaSmi), U8(2), | 121 /* 69 S> */ B(LdaSmi), I8(2), |
| 122 /* 69 E> */ B(StaCurrentContextSlot), U8(4), | 122 /* 69 E> */ B(StaCurrentContextSlot), U8(4), |
| 123 /* 72 S> */ B(CreateClosure), U8(1), U8(2), U8(2), | 123 /* 72 S> */ B(CreateClosure), U8(1), U8(2), U8(2), |
| 124 B(PopContext), R(0), | 124 B(PopContext), R(0), |
| 125 /* 104 S> */ B(Return), | 125 /* 104 S> */ B(Return), |
| 126 ] | 126 ] |
| 127 constant pool: [ | 127 constant pool: [ |
| 128 FIXED_ARRAY_TYPE, | 128 FIXED_ARRAY_TYPE, |
| 129 SHARED_FUNCTION_INFO_TYPE, | 129 SHARED_FUNCTION_INFO_TYPE, |
| 130 ] | 130 ] |
| 131 handlers: [ | 131 handlers: [ |
| (...skipping 767 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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(Call), R(1), R(2), U8(1), U8(2), |
| 909 /* 3454 S> */ B(LdaSmi), U8(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 |