| 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 test function name: f | 7 test function name: f |
| 8 | 8 |
| 9 --- | 9 --- |
| 10 snippet: " | 10 snippet: " |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 ] | 98 ] |
| 99 handlers: [ | 99 handlers: [ |
| 100 ] | 100 ] |
| 101 | 101 |
| 102 --- | 102 --- |
| 103 snippet: " | 103 snippet: " |
| 104 x = 20; return eval(''); | 104 x = 20; return eval(''); |
| 105 " | 105 " |
| 106 frame size: 10 | 106 frame size: 10 |
| 107 parameter count: 1 | 107 parameter count: 1 |
| 108 bytecode array length: 66 | 108 bytecode array length: 70 |
| 109 bytecodes: [ | 109 bytecodes: [ |
| 110 B(CreateFunctionContext), U8(3), | 110 B(CreateFunctionContext), U8(3), |
| 111 B(PushContext), R(0), | 111 B(PushContext), R(0), |
| 112 B(Ldar), R(this), | 112 B(Ldar), R(this), |
| 113 B(StaCurrentContextSlot), U8(4), | 113 B(StaCurrentContextSlot), U8(4), |
| 114 B(CreateMappedArguments), | 114 B(CreateMappedArguments), |
| 115 B(StaCurrentContextSlot), U8(6), | 115 B(StaCurrentContextSlot), U8(6), |
| 116 B(Ldar), R(new_target), | 116 B(Ldar), R(new_target), |
| 117 B(StaCurrentContextSlot), U8(5), | 117 B(StaCurrentContextSlot), U8(5), |
| 118 /* 10 E> */ B(StackCheck), | 118 /* 10 E> */ B(StackCheck), |
| 119 /* 14 S> */ B(LdaSmi), I8(20), | 119 /* 14 S> */ B(LdaConstant), U8(0), |
| 120 B(Star), R(1), |
| 121 B(LdaSmi), I8(20), |
| 120 /* 16 E> */ B(StaLookupSlotSloppy), U8(0), | 122 /* 16 E> */ B(StaLookupSlotSloppy), U8(0), |
| 121 /* 22 S> */ B(LdaUndefined), | 123 /* 22 S> */ B(LdaUndefined), |
| 122 B(Star), R(2), | 124 B(Star), R(2), |
| 123 /* 29 E> */ B(LdaLookupGlobalSlot), U8(1), U8(4), U8(1), | 125 /* 29 E> */ B(LdaLookupGlobalSlot), U8(1), U8(6), U8(1), |
| 124 B(Star), R(1), | 126 B(Star), R(1), |
| 125 B(LdaConstant), U8(2), | 127 B(LdaConstant), U8(2), |
| 126 B(Star), R(3), | 128 B(Star), R(3), |
| 127 B(LdaZero), | 129 B(LdaZero), |
| 128 B(Star), R(7), | 130 B(Star), R(7), |
| 129 B(LdaSmi), I8(10), | 131 B(LdaSmi), I8(10), |
| 130 B(Star), R(8), | 132 B(Star), R(8), |
| 131 B(LdaSmi), I8(29), | 133 B(LdaSmi), I8(29), |
| 132 B(Star), R(9), | 134 B(Star), R(9), |
| 133 B(Mov), R(1), R(4), | 135 B(Mov), R(1), R(4), |
| 134 B(Mov), R(3), R(5), | 136 B(Mov), R(3), R(5), |
| 135 B(Mov), R(closure), R(6), | 137 B(Mov), R(closure), R(6), |
| 136 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4),
U8(6), | 138 B(CallRuntime), U16(Runtime::kResolvePossiblyDirectEval), R(4),
U8(6), |
| 137 B(Star), R(1), | 139 B(Star), R(1), |
| 138 /* 29 E> */ B(Call), R(1), R(2), U8(2), U8(2), | 140 /* 29 E> */ B(Call), R(1), R(2), U8(2), U8(4), |
| 139 /* 39 S> */ B(Return), | 141 /* 39 S> */ B(Return), |
| 140 ] | 142 ] |
| 141 constant pool: [ | 143 constant pool: [ |
| 142 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 144 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 143 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], | 145 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], |
| 144 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 146 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
| 145 ] | 147 ] |
| 146 handlers: [ | 148 handlers: [ |
| 147 ] | 149 ] |
| 148 | 150 |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 /* 72 S> */ B(Return), | 243 /* 72 S> */ B(Return), |
| 242 ] | 244 ] |
| 243 constant pool: [ | 245 constant pool: [ |
| 244 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], | 246 ONE_BYTE_INTERNALIZED_STRING_TYPE ["eval"], |
| 245 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var x = 10"], | 247 ONE_BYTE_INTERNALIZED_STRING_TYPE ["var x = 10"], |
| 246 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 248 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 247 ] | 249 ] |
| 248 handlers: [ | 250 handlers: [ |
| 249 ] | 251 ] |
| 250 | 252 |
| OLD | NEW |