| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 execute: yes | 6 execute: yes |
| 7 wrap: yes | 7 wrap: yes |
| 8 | 8 |
| 9 --- | 9 --- |
| 10 snippet: " | 10 snippet: " |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 --- | 95 --- |
| 96 snippet: " | 96 snippet: " |
| 97 outer: { | 97 outer: { |
| 98 let y = 10; | 98 let y = 10; |
| 99 function f() { return y; } | 99 function f() { return y; } |
| 100 break outer; | 100 break outer; |
| 101 } | 101 } |
| 102 " | 102 " |
| 103 frame size: 3 | 103 frame size: 3 |
| 104 parameter count: 1 | 104 parameter count: 1 |
| 105 bytecode array length: 32 | 105 bytecode array length: 34 |
| 106 bytecodes: [ | 106 bytecodes: [ |
| 107 /* 30 E> */ B(StackCheck), | 107 /* 30 E> */ B(StackCheck), |
| 108 B(Ldar), R(closure), | 108 B(Ldar), R(closure), |
| 109 B(CreateBlockContext), U8(0), | 109 B(CreateBlockContext), U8(0), |
| 110 B(PushContext), R(2), | 110 B(PushContext), R(2), |
| 111 B(LdaTheHole), | 111 B(LdaTheHole), |
| 112 B(StaContextSlot), R(context), U8(4), | 112 B(StaContextSlot), R(context), U8(4), U8(0), |
| 113 B(CreateClosure), U8(1), U8(2), | 113 B(CreateClosure), U8(1), U8(2), |
| 114 B(Star), R(0), | 114 B(Star), R(0), |
| 115 /* 53 S> */ B(LdaSmi), U8(10), | 115 /* 53 S> */ B(LdaSmi), U8(10), |
| 116 /* 53 E> */ B(StaContextSlot), R(context), U8(4), | 116 /* 53 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 117 B(Mov), R(0), R(1), | 117 B(Mov), R(0), R(1), |
| 118 B(Ldar), R(0), | 118 B(Ldar), R(0), |
| 119 /* 88 S> */ B(Jump), U8(2), | 119 /* 88 S> */ B(Jump), U8(2), |
| 120 B(PopContext), R(2), | 120 B(PopContext), R(2), |
| 121 B(LdaUndefined), | 121 B(LdaUndefined), |
| 122 /* 103 S> */ B(Return), | 122 /* 103 S> */ B(Return), |
| 123 ] | 123 ] |
| 124 constant pool: [ | 124 constant pool: [ |
| 125 FIXED_ARRAY_TYPE, | 125 FIXED_ARRAY_TYPE, |
| 126 SHARED_FUNCTION_INFO_TYPE, | 126 SHARED_FUNCTION_INFO_TYPE, |
| 127 ] | 127 ] |
| 128 handlers: [ | 128 handlers: [ |
| 129 ] | 129 ] |
| 130 | 130 |
| 131 --- | 131 --- |
| 132 snippet: " | 132 snippet: " |
| 133 let x = 1; | 133 let x = 1; |
| 134 outer: { | 134 outer: { |
| 135 inner: { | 135 inner: { |
| 136 let y = 2; | 136 let y = 2; |
| 137 function f() { return x + y; } | 137 function f() { return x + y; } |
| 138 if (y) break outer; | 138 if (y) break outer; |
| 139 y = 3; | 139 y = 3; |
| 140 } | 140 } |
| 141 } | 141 } |
| 142 x = 4; | 142 x = 4; |
| 143 " | 143 " |
| 144 frame size: 6 | 144 frame size: 6 |
| 145 parameter count: 1 | 145 parameter count: 1 |
| 146 bytecode array length: 107 | 146 bytecode array length: 116 |
| 147 bytecodes: [ | 147 bytecodes: [ |
| 148 B(CreateFunctionContext), U8(1), | 148 B(CreateFunctionContext), U8(1), |
| 149 B(PushContext), R(2), | 149 B(PushContext), R(2), |
| 150 B(LdaTheHole), | 150 B(LdaTheHole), |
| 151 B(StaContextSlot), R(context), U8(4), | 151 B(StaContextSlot), R(context), U8(4), U8(0), |
| 152 /* 30 E> */ B(StackCheck), | 152 /* 30 E> */ B(StackCheck), |
| 153 /* 42 S> */ B(LdaSmi), U8(1), | 153 /* 42 S> */ B(LdaSmi), U8(1), |
| 154 /* 42 E> */ B(StaContextSlot), R(context), U8(4), | 154 /* 42 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 155 B(Ldar), R(closure), | 155 B(Ldar), R(closure), |
| 156 B(CreateBlockContext), U8(0), | 156 B(CreateBlockContext), U8(0), |
| 157 B(PushContext), R(3), | 157 B(PushContext), R(3), |
| 158 B(LdaTheHole), | 158 B(LdaTheHole), |
| 159 B(StaContextSlot), R(context), U8(4), | 159 B(StaContextSlot), R(context), U8(4), U8(0), |
| 160 B(CreateClosure), U8(1), U8(2), | 160 B(CreateClosure), U8(1), U8(2), |
| 161 B(Star), R(0), | 161 B(Star), R(0), |
| 162 /* 76 S> */ B(LdaSmi), U8(2), | 162 /* 76 S> */ B(LdaSmi), U8(2), |
| 163 /* 76 E> */ B(StaContextSlot), R(context), U8(4), | 163 /* 76 E> */ B(StaContextSlot), R(context), U8(4), U8(0), |
| 164 B(Mov), R(0), R(1), | 164 B(Mov), R(0), R(1), |
| 165 /* 118 S> */ B(LdaContextSlot), R(context), U8(4), | 165 /* 118 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), |
| 166 B(JumpIfNotHole), U8(11), | 166 B(JumpIfNotHole), U8(11), |
| 167 B(LdaConstant), U8(2), | 167 B(LdaConstant), U8(2), |
| 168 B(Star), R(4), | 168 B(Star), R(4), |
| 169 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), | 169 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(4), U8(1), |
| 170 B(JumpIfToBooleanFalse), U8(6), | 170 B(JumpIfToBooleanFalse), U8(6), |
| 171 /* 125 S> */ B(PopContext), R(3), | 171 /* 125 S> */ B(PopContext), R(3), |
| 172 B(Jump), U8(27), | 172 B(Jump), U8(29), |
| 173 /* 142 S> */ B(LdaSmi), U8(3), | 173 /* 142 S> */ B(LdaSmi), U8(3), |
| 174 B(Star), R(4), | 174 B(Star), R(4), |
| 175 /* 144 E> */ B(LdaContextSlot), R(context), U8(4), | 175 /* 144 E> */ B(LdaContextSlot), R(context), U8(4), U8(0), |
| 176 B(JumpIfNotHole), U8(11), | 176 B(JumpIfNotHole), U8(11), |
| 177 B(LdaConstant), U8(2), | 177 B(LdaConstant), U8(2), |
| 178 B(Star), R(5), | 178 B(Star), R(5), |
| 179 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 179 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
| 180 B(Ldar), R(4), | 180 B(Ldar), R(4), |
| 181 B(StaContextSlot), R(context), U8(4), | 181 B(StaContextSlot), R(context), U8(4), U8(0), |
| 182 B(PopContext), R(3), | 182 B(PopContext), R(3), |
| 183 /* 155 S> */ B(LdaSmi), U8(4), | 183 /* 155 S> */ B(LdaSmi), U8(4), |
| 184 B(Star), R(4), | 184 B(Star), R(4), |
| 185 /* 157 E> */ B(LdaContextSlot), R(context), U8(4), | 185 /* 157 E> */ B(LdaContextSlot), R(context), U8(4), U8(0), |
| 186 B(JumpIfNotHole), U8(11), | 186 B(JumpIfNotHole), U8(11), |
| 187 B(LdaConstant), U8(3), | 187 B(LdaConstant), U8(3), |
| 188 B(Star), R(5), | 188 B(Star), R(5), |
| 189 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 189 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), |
| 190 B(Ldar), R(4), | 190 B(Ldar), R(4), |
| 191 B(StaContextSlot), R(context), U8(4), | 191 B(StaContextSlot), R(context), U8(4), U8(0), |
| 192 B(LdaUndefined), | 192 B(LdaUndefined), |
| 193 /* 162 S> */ B(Return), | 193 /* 162 S> */ B(Return), |
| 194 ] | 194 ] |
| 195 constant pool: [ | 195 constant pool: [ |
| 196 FIXED_ARRAY_TYPE, | 196 FIXED_ARRAY_TYPE, |
| 197 SHARED_FUNCTION_INFO_TYPE, | 197 SHARED_FUNCTION_INFO_TYPE, |
| 198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y"], | 198 ONE_BYTE_INTERNALIZED_STRING_TYPE ["y"], |
| 199 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 199 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 200 ] | 200 ] |
| 201 handlers: [ | 201 handlers: [ |
| 202 ] | 202 ] |
| 203 | 203 |
| OLD | NEW |