| 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 x = 0; | 10 var x = 0; |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 outer: { | 133 outer: { |
| 134 inner: { | 134 inner: { |
| 135 let y = 2; | 135 let y = 2; |
| 136 function f() { return x + y; } | 136 function f() { return x + y; } |
| 137 if (y) break outer; | 137 if (y) break outer; |
| 138 y = 3; | 138 y = 3; |
| 139 } | 139 } |
| 140 } | 140 } |
| 141 x = 4; | 141 x = 4; |
| 142 " | 142 " |
| 143 frame size: 6 | 143 frame size: 4 |
| 144 parameter count: 1 | 144 parameter count: 1 |
| 145 bytecode array length: 116 | 145 bytecode array length: 67 |
| 146 bytecodes: [ | 146 bytecodes: [ |
| 147 B(CreateFunctionContext), U8(1), | 147 B(CreateFunctionContext), U8(1), |
| 148 B(PushContext), R(2), | 148 B(PushContext), R(2), |
| 149 B(LdaTheHole), | 149 B(LdaTheHole), |
| 150 B(StaContextSlot), R(context), U8(4), U8(0), | 150 B(StaContextSlot), R(context), U8(4), U8(0), |
| 151 /* 30 E> */ B(StackCheck), | 151 /* 30 E> */ B(StackCheck), |
| 152 /* 42 S> */ B(LdaSmi), U8(1), | 152 /* 42 S> */ B(LdaSmi), U8(1), |
| 153 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), | 153 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 154 B(Ldar), R(closure), | 154 B(Ldar), R(closure), |
| 155 B(CreateBlockContext), U8(0), | 155 B(CreateBlockContext), U8(0), |
| 156 B(PushContext), R(3), | 156 B(PushContext), R(3), |
| 157 B(LdaTheHole), | 157 B(LdaTheHole), |
| 158 B(StaContextSlot), R(context), U8(4), U8(0), | 158 B(StaContextSlot), R(context), U8(4), U8(0), |
| 159 B(CreateClosure), U8(1), U8(2), | 159 B(CreateClosure), U8(1), U8(2), |
| 160 B(Star), R(0), | 160 B(Star), R(0), |
| 161 /* 76 S> */ B(LdaSmi), U8(2), | 161 /* 76 S> */ B(LdaSmi), U8(2), |
| 162 /* 76 E> */ B(StaContextSlot), R(context), U8(4), U8(0), | 162 /* 76 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 163 B(Mov), R(0), R(1), | 163 B(Mov), R(0), R(1), |
| 164 /* 118 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), | 164 /* 118 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), |
| 165 B(JumpIfNotHole), U8(11), | |
| 166 B(LdaConstant), U8(2), | |
| 167 B(Star), R(4), | |
| 168 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | |
| 169 B(JumpIfToBooleanFalse), U8(6), | 165 B(JumpIfToBooleanFalse), U8(6), |
| 170 /* 125 S> */ B(PopContext), R(3), | 166 /* 125 S> */ B(PopContext), R(3), |
| 171 B(Jump), U8(29), | 167 B(Jump), U8(10), |
| 172 /* 142 S> */ B(LdaSmi), U8(3), | 168 /* 142 S> */ B(LdaSmi), U8(3), |
| 173 B(Star), R(4), | 169 /* 144 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 174 /* 144 E> */ B(LdaContextSlot), R(context), U8(4), U8(0), | |
| 175 B(JumpIfNotHole), U8(11), | |
| 176 B(LdaConstant), U8(2), | |
| 177 B(Star), R(5), | |
| 178 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | |
| 179 B(Ldar), R(4), | |
| 180 B(StaContextSlot), R(context), U8(4), U8(0), | |
| 181 B(PopContext), R(3), | 170 B(PopContext), R(3), |
| 182 /* 155 S> */ B(LdaSmi), U8(4), | 171 /* 155 S> */ B(LdaSmi), U8(4), |
| 183 B(Star), R(4), | 172 /* 157 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 184 /* 157 E> */ B(LdaContextSlot), R(context), U8(4), U8(0), | |
| 185 B(JumpIfNotHole), U8(11), | |
| 186 B(LdaConstant), U8(3), | |
| 187 B(Star), R(5), | |
| 188 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | |
| 189 B(Ldar), R(4), | |
| 190 B(StaContextSlot), R(context), U8(4), U8(0), | |
| 191 B(LdaUndefined), | 173 B(LdaUndefined), |
| 192 /* 162 S> */ B(Return), | 174 /* 162 S> */ B(Return), |
| 193 ] | 175 ] |
| 194 constant pool: [ | 176 constant pool: [ |
| 195 FIXED_ARRAY_TYPE, | 177 FIXED_ARRAY_TYPE, |
| 196 SHARED_FUNCTION_INFO_TYPE, | 178 SHARED_FUNCTION_INFO_TYPE, |
| 197 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y"], | |
| 198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | |
| 199 ] | 179 ] |
| 200 handlers: [ | 180 handlers: [ |
| 201 ] | 181 ] |
| 202 | 182 |
| OLD | NEW |