| OLD | NEW |
| 1 # | 1 # |
| 2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
| 3 # | 3 # |
| 4 | 4 |
| 5 --- | 5 --- |
| 6 wrap: no | 6 wrap: no |
| 7 module: yes | 7 module: yes |
| 8 top level: yes | 8 top level: yes |
| 9 | 9 |
| 10 --- | 10 --- |
| 11 snippet: " | 11 snippet: " |
| 12 import \"bar\"; | 12 import \"bar\"; |
| 13 " | 13 " |
| 14 frame size: 8 | 14 frame size: 9 |
| 15 parameter count: 2 | 15 parameter count: 2 |
| 16 bytecode array length: 124 | 16 bytecode array length: 131 |
| 17 bytecodes: [ | 17 bytecodes: [ |
| 18 B(Ldar), R(new_target), | 18 B(Ldar), R(new_target), |
| 19 B(JumpIfUndefined), U8(21), | 19 B(JumpIfUndefined), U8(28), |
| 20 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 21 B(PushContext), R(2), |
| 20 B(ResumeGenerator), R(new_target), | 22 B(ResumeGenerator), R(new_target), |
| 21 B(Star), R(1), | 23 B(Star), R(1), |
| 22 B(LdaZero), | 24 B(LdaZero), |
| 23 B(TestEqualStrict), R(1), U8(0), | 25 B(TestEqualStrict), R(1), U8(0), |
| 24 B(JumpIfTrue), U8(63), | 26 B(JumpIfTrue), U8(63), |
| 25 B(LdaSmi), U8(77), | 27 B(LdaSmi), U8(77), |
| 26 B(Star), R(2), | 28 B(Star), R(3), |
| 27 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), | 29 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
| 28 B(LdaSmi), U8(-2), | 30 B(LdaSmi), U8(-2), |
| 29 B(Star), R(1), | 31 B(Star), R(1), |
| 30 B(LdaConstant), U8(0), | 32 B(LdaConstant), U8(0), |
| 31 B(Star), R(4), | 33 B(Star), R(5), |
| 32 B(Mov), R(arg0), R(2), | 34 B(Mov), R(arg0), R(3), |
| 33 B(Mov), R(closure), R(3), | 35 B(Mov), R(closure), R(4), |
| 34 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), | 36 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), |
| 35 B(PushContext), R(0), | 37 B(PushContext), R(0), |
| 36 B(Ldar), R(this), | 38 B(Ldar), R(this), |
| 37 B(StaCurrentContextSlot), U8(4), | 39 B(StaCurrentContextSlot), U8(4), |
| 38 /* 0 E> */ B(StackCheck), | 40 /* 0 E> */ B(StackCheck), |
| 39 B(LdaCurrentContextSlot), U8(4), | 41 B(LdaCurrentContextSlot), U8(4), |
| 42 B(Star), R(4), |
| 43 B(Mov), R(closure), R(3), |
| 44 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), |
| 45 B(StaCurrentContextSlot), U8(5), |
| 40 B(Star), R(3), | 46 B(Star), R(3), |
| 41 B(Mov), R(closure), R(2), | |
| 42 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), | |
| 43 B(StaCurrentContextSlot), U8(5), | |
| 44 B(Star), R(2), | |
| 45 B(LdaCurrentContextSlot), U8(5), | 47 B(LdaCurrentContextSlot), U8(5), |
| 46 B(Star), R(3), | 48 B(Star), R(4), |
| 47 B(LdaZero), | 49 B(LdaZero), |
| 48 B(SuspendGenerator), R(3), | 50 B(SuspendGenerator), R(4), |
| 49 B(Ldar), R(2), | 51 B(Ldar), R(3), |
| 50 /* 13 S> */ B(Return), | 52 /* 13 S> */ B(Return), |
| 51 B(LdaSmi), U8(-2), | 53 B(LdaSmi), U8(-2), |
| 52 B(Star), R(1), | 54 B(Star), R(1), |
| 53 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3
), U8(1), | 55 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), |
| 54 B(Star), R(4), | |
| 55 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8
(1), | |
| 56 B(Star), R(5), | 56 B(Star), R(5), |
| 57 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), |
| 58 B(Star), R(6), |
| 57 B(LdaZero), | 59 B(LdaZero), |
| 58 B(TestEqualStrict), R(5), U8(0), | 60 B(TestEqualStrict), R(6), U8(0), |
| 59 B(JumpIfTrue), U8(25), | 61 B(JumpIfTrue), U8(25), |
| 60 B(LdaSmi), U8(2), | 62 B(LdaSmi), U8(2), |
| 61 B(TestEqualStrict), R(5), U8(0), | 63 B(TestEqualStrict), R(6), U8(0), |
| 62 B(JumpIfTrue), U8(15), | 64 B(JumpIfTrue), U8(15), |
| 63 B(Jump), U8(2), | 65 B(Jump), U8(2), |
| 64 B(LdaTrue), | 66 B(LdaTrue), |
| 65 B(Star), R(7), | 67 B(Star), R(8), |
| 66 B(Mov), R(4), R(6), | 68 B(Mov), R(5), R(7), |
| 67 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6),
U8(2), | 69 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), |
| 68 /* 13 S> */ B(Return), | 70 /* 13 S> */ B(Return), |
| 69 B(Ldar), R(4), | 71 B(Ldar), R(5), |
| 70 /* 0 E> */ B(Throw), | 72 /* 0 E> */ B(Throw), |
| 71 B(LdaUndefined), | 73 B(LdaUndefined), |
| 72 /* 13 S> */ B(Return), | 74 /* 13 S> */ B(Return), |
| 73 ] | 75 ] |
| 74 constant pool: [ | 76 constant pool: [ |
| 75 FIXED_ARRAY_TYPE, | 77 FIXED_ARRAY_TYPE, |
| 76 ] | 78 ] |
| 77 handlers: [ | 79 handlers: [ |
| 78 ] | 80 ] |
| 79 | 81 |
| 80 --- | 82 --- |
| 81 snippet: " | 83 snippet: " |
| 82 import {foo} from \"bar\"; | 84 import {foo} from \"bar\"; |
| 83 " | 85 " |
| 84 frame size: 8 | 86 frame size: 9 |
| 85 parameter count: 2 | 87 parameter count: 2 |
| 86 bytecode array length: 124 | 88 bytecode array length: 131 |
| 87 bytecodes: [ | 89 bytecodes: [ |
| 88 B(Ldar), R(new_target), | 90 B(Ldar), R(new_target), |
| 89 B(JumpIfUndefined), U8(21), | 91 B(JumpIfUndefined), U8(28), |
| 92 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 93 B(PushContext), R(2), |
| 90 B(ResumeGenerator), R(new_target), | 94 B(ResumeGenerator), R(new_target), |
| 91 B(Star), R(1), | 95 B(Star), R(1), |
| 92 B(LdaZero), | 96 B(LdaZero), |
| 93 B(TestEqualStrict), R(1), U8(0), | 97 B(TestEqualStrict), R(1), U8(0), |
| 94 B(JumpIfTrue), U8(63), | 98 B(JumpIfTrue), U8(63), |
| 95 B(LdaSmi), U8(77), | 99 B(LdaSmi), U8(77), |
| 96 B(Star), R(2), | 100 B(Star), R(3), |
| 97 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), | 101 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
| 98 B(LdaSmi), U8(-2), | 102 B(LdaSmi), U8(-2), |
| 99 B(Star), R(1), | 103 B(Star), R(1), |
| 100 B(LdaConstant), U8(0), | 104 B(LdaConstant), U8(0), |
| 101 B(Star), R(4), | 105 B(Star), R(5), |
| 102 B(Mov), R(arg0), R(2), | 106 B(Mov), R(arg0), R(3), |
| 103 B(Mov), R(closure), R(3), | 107 B(Mov), R(closure), R(4), |
| 104 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), | 108 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), |
| 105 B(PushContext), R(0), | 109 B(PushContext), R(0), |
| 106 B(Ldar), R(this), | 110 B(Ldar), R(this), |
| 107 B(StaCurrentContextSlot), U8(4), | 111 B(StaCurrentContextSlot), U8(4), |
| 108 /* 0 E> */ B(StackCheck), | 112 /* 0 E> */ B(StackCheck), |
| 109 B(LdaCurrentContextSlot), U8(4), | 113 B(LdaCurrentContextSlot), U8(4), |
| 114 B(Star), R(4), |
| 115 B(Mov), R(closure), R(3), |
| 116 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), |
| 117 B(StaCurrentContextSlot), U8(5), |
| 110 B(Star), R(3), | 118 B(Star), R(3), |
| 111 B(Mov), R(closure), R(2), | |
| 112 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), | |
| 113 B(StaCurrentContextSlot), U8(5), | |
| 114 B(Star), R(2), | |
| 115 B(LdaCurrentContextSlot), U8(5), | 119 B(LdaCurrentContextSlot), U8(5), |
| 116 B(Star), R(3), | 120 B(Star), R(4), |
| 117 B(LdaZero), | 121 B(LdaZero), |
| 118 B(SuspendGenerator), R(3), | 122 B(SuspendGenerator), R(4), |
| 119 B(Ldar), R(2), | 123 B(Ldar), R(3), |
| 120 /* 24 S> */ B(Return), | 124 /* 24 S> */ B(Return), |
| 121 B(LdaSmi), U8(-2), | 125 B(LdaSmi), U8(-2), |
| 122 B(Star), R(1), | 126 B(Star), R(1), |
| 123 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3
), U8(1), | 127 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), |
| 124 B(Star), R(4), | |
| 125 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8
(1), | |
| 126 B(Star), R(5), | 128 B(Star), R(5), |
| 129 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), |
| 130 B(Star), R(6), |
| 127 B(LdaZero), | 131 B(LdaZero), |
| 128 B(TestEqualStrict), R(5), U8(0), | 132 B(TestEqualStrict), R(6), U8(0), |
| 129 B(JumpIfTrue), U8(25), | 133 B(JumpIfTrue), U8(25), |
| 130 B(LdaSmi), U8(2), | 134 B(LdaSmi), U8(2), |
| 131 B(TestEqualStrict), R(5), U8(0), | 135 B(TestEqualStrict), R(6), U8(0), |
| 132 B(JumpIfTrue), U8(15), | 136 B(JumpIfTrue), U8(15), |
| 133 B(Jump), U8(2), | 137 B(Jump), U8(2), |
| 134 B(LdaTrue), | 138 B(LdaTrue), |
| 135 B(Star), R(7), | 139 B(Star), R(8), |
| 136 B(Mov), R(4), R(6), | 140 B(Mov), R(5), R(7), |
| 137 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6),
U8(2), | 141 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), |
| 138 /* 24 S> */ B(Return), | 142 /* 24 S> */ B(Return), |
| 139 B(Ldar), R(4), | 143 B(Ldar), R(5), |
| 140 /* 0 E> */ B(Throw), | 144 /* 0 E> */ B(Throw), |
| 141 B(LdaUndefined), | 145 B(LdaUndefined), |
| 142 /* 24 S> */ B(Return), | 146 /* 24 S> */ B(Return), |
| 143 ] | 147 ] |
| 144 constant pool: [ | 148 constant pool: [ |
| 145 FIXED_ARRAY_TYPE, | 149 FIXED_ARRAY_TYPE, |
| 146 ] | 150 ] |
| 147 handlers: [ | 151 handlers: [ |
| 148 ] | 152 ] |
| 149 | 153 |
| 150 --- | 154 --- |
| 151 snippet: " | 155 snippet: " |
| 152 import {foo as goo} from \"bar\"; | 156 import {foo as goo} from \"bar\"; |
| 153 goo(42); | 157 goo(42); |
| 154 { let x; { goo(42) } }; | 158 { let x; { goo(42) } }; |
| 155 " | 159 " |
| 156 frame size: 9 | 160 frame size: 10 |
| 157 parameter count: 2 | 161 parameter count: 2 |
| 158 bytecode array length: 194 | 162 bytecode array length: 201 |
| 159 bytecodes: [ | 163 bytecodes: [ |
| 160 B(Ldar), R(new_target), | 164 B(Ldar), R(new_target), |
| 161 B(JumpIfUndefined), U8(21), | 165 B(JumpIfUndefined), U8(28), |
| 166 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 167 B(PushContext), R(3), |
| 162 B(ResumeGenerator), R(new_target), | 168 B(ResumeGenerator), R(new_target), |
| 163 B(Star), R(2), | 169 B(Star), R(2), |
| 164 B(LdaZero), | 170 B(LdaZero), |
| 165 B(TestEqualStrict), R(2), U8(0), | 171 B(TestEqualStrict), R(2), U8(0), |
| 166 B(JumpIfTrue), U8(63), | 172 B(JumpIfTrue), U8(63), |
| 167 B(LdaSmi), U8(77), | 173 B(LdaSmi), U8(77), |
| 168 B(Star), R(3), | 174 B(Star), R(4), |
| 169 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), | 175 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), |
| 170 B(LdaSmi), U8(-2), | 176 B(LdaSmi), U8(-2), |
| 171 B(Star), R(2), | 177 B(Star), R(2), |
| 172 B(LdaConstant), U8(0), | 178 B(LdaConstant), U8(0), |
| 173 B(Star), R(5), | 179 B(Star), R(6), |
| 174 B(Mov), R(arg0), R(3), | 180 B(Mov), R(arg0), R(4), |
| 175 B(Mov), R(closure), R(4), | 181 B(Mov), R(closure), R(5), |
| 176 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), | 182 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), |
| 177 B(PushContext), R(0), | 183 B(PushContext), R(0), |
| 178 B(Ldar), R(this), | 184 B(Ldar), R(this), |
| 179 B(StaCurrentContextSlot), U8(4), | 185 B(StaCurrentContextSlot), U8(4), |
| 180 /* 0 E> */ B(StackCheck), | 186 /* 0 E> */ B(StackCheck), |
| 181 B(LdaCurrentContextSlot), U8(4), | 187 B(LdaCurrentContextSlot), U8(4), |
| 188 B(Star), R(5), |
| 189 B(Mov), R(closure), R(4), |
| 190 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8
(2), |
| 191 B(StaCurrentContextSlot), U8(5), |
| 182 B(Star), R(4), | 192 B(Star), R(4), |
| 183 B(Mov), R(closure), R(3), | |
| 184 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), | |
| 185 B(StaCurrentContextSlot), U8(5), | |
| 186 B(Star), R(3), | |
| 187 B(LdaCurrentContextSlot), U8(5), | 193 B(LdaCurrentContextSlot), U8(5), |
| 188 B(Star), R(4), | 194 B(Star), R(5), |
| 189 B(LdaZero), | 195 B(LdaZero), |
| 190 B(SuspendGenerator), R(4), | 196 B(SuspendGenerator), R(5), |
| 191 B(Ldar), R(3), | 197 B(Ldar), R(4), |
| 192 /* 64 S> */ B(Return), | 198 /* 64 S> */ B(Return), |
| 193 B(LdaSmi), U8(-2), | 199 B(LdaSmi), U8(-2), |
| 194 B(Star), R(2), | 200 B(Star), R(2), |
| 195 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), | 201 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(5
), U8(1), |
| 196 B(Star), R(5), | |
| 197 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), | |
| 198 B(Star), R(6), | 202 B(Star), R(6), |
| 203 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(5), U8
(1), |
| 204 B(Star), R(7), |
| 199 B(LdaZero), | 205 B(LdaZero), |
| 200 B(TestEqualStrict), R(6), U8(0), | 206 B(TestEqualStrict), R(7), U8(0), |
| 201 B(JumpIfTrue), U8(25), | 207 B(JumpIfTrue), U8(25), |
| 202 B(LdaSmi), U8(2), | 208 B(LdaSmi), U8(2), |
| 203 B(TestEqualStrict), R(6), U8(0), | 209 B(TestEqualStrict), R(7), U8(0), |
| 204 B(JumpIfTrue), U8(15), | 210 B(JumpIfTrue), U8(15), |
| 205 B(Jump), U8(2), | 211 B(Jump), U8(2), |
| 206 B(LdaTrue), | 212 B(LdaTrue), |
| 207 B(Star), R(8), | 213 B(Star), R(9), |
| 208 B(Mov), R(5), R(7), | 214 B(Mov), R(6), R(8), |
| 209 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), | 215 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8),
U8(2), |
| 210 /* 64 S> */ B(Return), | 216 /* 64 S> */ B(Return), |
| 211 B(Ldar), R(5), | 217 B(Ldar), R(6), |
| 212 /* 0 E> */ B(Throw), | 218 /* 0 E> */ B(Throw), |
| 213 /* 32 S> */ B(LdaUndefined), | 219 /* 32 S> */ B(LdaUndefined), |
| 214 B(Star), R(4), | 220 B(Star), R(5), |
| 215 /* 32 E> */ B(LdaModuleVariable), U8(-1), U8(0), | 221 /* 32 E> */ B(LdaModuleVariable), U8(-1), U8(0), |
| 216 B(JumpIfNotHole), U8(11), | 222 B(JumpIfNotHole), U8(11), |
| 217 B(LdaConstant), U8(1), | 223 B(LdaConstant), U8(1), |
| 218 B(Star), R(5), | 224 B(Star), R(6), |
| 219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 225 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), |
| 220 B(Star), R(3), | 226 B(Star), R(4), |
| 221 B(LdaSmi), U8(42), | 227 B(LdaSmi), U8(42), |
| 222 B(Star), R(5), | 228 B(Star), R(6), |
| 223 /* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2), | 229 /* 32 E> */ B(Call), R(4), R(5), U8(2), U8(2), |
| 224 B(Ldar), R(closure), | 230 B(Ldar), R(closure), |
| 225 B(CreateBlockContext), U8(2), | 231 B(CreateBlockContext), U8(2), |
| 226 B(PushContext), R(1), | 232 B(PushContext), R(1), |
| 227 B(LdaTheHole), | 233 B(LdaTheHole), |
| 228 B(StaCurrentContextSlot), U8(4), | 234 B(StaCurrentContextSlot), U8(4), |
| 229 /* 47 S> */ B(LdaUndefined), | 235 /* 47 S> */ B(LdaUndefined), |
| 230 /* 47 E> */ B(StaCurrentContextSlot), U8(4), | 236 /* 47 E> */ B(StaCurrentContextSlot), U8(4), |
| 231 /* 52 S> */ B(LdaUndefined), | 237 /* 52 S> */ B(LdaUndefined), |
| 232 B(Star), R(4), | 238 B(Star), R(5), |
| 233 /* 52 E> */ B(LdaModuleVariable), U8(-1), U8(1), | 239 /* 52 E> */ B(LdaModuleVariable), U8(-1), U8(1), |
| 234 B(JumpIfNotHole), U8(11), | 240 B(JumpIfNotHole), U8(11), |
| 235 B(LdaConstant), U8(1), | 241 B(LdaConstant), U8(1), |
| 236 B(Star), R(5), | 242 B(Star), R(6), |
| 237 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), | 243 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(6), U8(1), |
| 238 B(Star), R(3), | 244 B(Star), R(4), |
| 239 B(LdaSmi), U8(42), | 245 B(LdaSmi), U8(42), |
| 240 B(Star), R(5), | 246 B(Star), R(6), |
| 241 /* 52 E> */ B(Call), R(3), R(4), U8(2), U8(4), | 247 /* 52 E> */ B(Call), R(4), R(5), U8(2), U8(4), |
| 242 B(PopContext), R(1), | 248 B(PopContext), R(1), |
| 243 B(LdaUndefined), | 249 B(LdaUndefined), |
| 244 /* 64 S> */ B(Return), | 250 /* 64 S> */ B(Return), |
| 245 ] | 251 ] |
| 246 constant pool: [ | 252 constant pool: [ |
| 247 FIXED_ARRAY_TYPE, | 253 FIXED_ARRAY_TYPE, |
| 248 ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"], | 254 ONE_BYTE_INTERNALIZED_STRING_TYPE ["goo"], |
| 249 FIXED_ARRAY_TYPE, | 255 FIXED_ARRAY_TYPE, |
| 250 ] | 256 ] |
| 251 handlers: [ | 257 handlers: [ |
| 252 ] | 258 ] |
| 253 | 259 |
| 254 --- | 260 --- |
| 255 snippet: " | 261 snippet: " |
| 256 export var foo = 42; | 262 export var foo = 42; |
| 257 foo++; | 263 foo++; |
| 258 { let x; { foo++ } }; | 264 { let x; { foo++ } }; |
| 259 " | 265 " |
| 260 frame size: 9 | 266 frame size: 10 |
| 261 parameter count: 2 | 267 parameter count: 2 |
| 262 bytecode array length: 159 | 268 bytecode array length: 166 |
| 263 bytecodes: [ | 269 bytecodes: [ |
| 264 B(Ldar), R(new_target), | 270 B(Ldar), R(new_target), |
| 265 B(JumpIfUndefined), U8(21), | 271 B(JumpIfUndefined), U8(28), |
| 272 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 273 B(PushContext), R(3), |
| 266 B(ResumeGenerator), R(new_target), | 274 B(ResumeGenerator), R(new_target), |
| 267 B(Star), R(2), | 275 B(Star), R(2), |
| 268 B(LdaZero), | 276 B(LdaZero), |
| 269 B(TestEqualStrict), R(2), U8(0), | 277 B(TestEqualStrict), R(2), U8(0), |
| 270 B(JumpIfTrue), U8(63), | 278 B(JumpIfTrue), U8(63), |
| 271 B(LdaSmi), U8(77), | 279 B(LdaSmi), U8(77), |
| 272 B(Star), R(3), | 280 B(Star), R(4), |
| 273 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), | 281 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), |
| 274 B(LdaSmi), U8(-2), | 282 B(LdaSmi), U8(-2), |
| 275 B(Star), R(2), | 283 B(Star), R(2), |
| 276 B(LdaConstant), U8(0), | 284 B(LdaConstant), U8(0), |
| 277 B(Star), R(5), | 285 B(Star), R(6), |
| 278 B(Mov), R(arg0), R(3), | 286 B(Mov), R(arg0), R(4), |
| 279 B(Mov), R(closure), R(4), | 287 B(Mov), R(closure), R(5), |
| 280 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), | 288 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), |
| 281 B(PushContext), R(0), | 289 B(PushContext), R(0), |
| 282 B(Ldar), R(this), | 290 B(Ldar), R(this), |
| 283 B(StaCurrentContextSlot), U8(4), | 291 B(StaCurrentContextSlot), U8(4), |
| 284 /* 0 E> */ B(StackCheck), | 292 /* 0 E> */ B(StackCheck), |
| 285 B(LdaCurrentContextSlot), U8(4), | 293 B(LdaCurrentContextSlot), U8(4), |
| 294 B(Star), R(5), |
| 295 B(Mov), R(closure), R(4), |
| 296 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8
(2), |
| 297 B(StaCurrentContextSlot), U8(5), |
| 286 B(Star), R(4), | 298 B(Star), R(4), |
| 287 B(Mov), R(closure), R(3), | |
| 288 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), | |
| 289 B(StaCurrentContextSlot), U8(5), | |
| 290 B(Star), R(3), | |
| 291 B(LdaCurrentContextSlot), U8(5), | 299 B(LdaCurrentContextSlot), U8(5), |
| 292 B(Star), R(4), | 300 B(Star), R(5), |
| 293 B(LdaZero), | 301 B(LdaZero), |
| 294 B(SuspendGenerator), R(4), | 302 B(SuspendGenerator), R(5), |
| 295 B(Ldar), R(3), | 303 B(Ldar), R(4), |
| 296 /* 49 S> */ B(Return), | 304 /* 49 S> */ B(Return), |
| 297 B(LdaSmi), U8(-2), | 305 B(LdaSmi), U8(-2), |
| 298 B(Star), R(2), | 306 B(Star), R(2), |
| 299 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), | 307 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(5
), U8(1), |
| 300 B(Star), R(5), | |
| 301 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), | |
| 302 B(Star), R(6), | 308 B(Star), R(6), |
| 309 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(5), U8
(1), |
| 310 B(Star), R(7), |
| 303 B(LdaZero), | 311 B(LdaZero), |
| 304 B(TestEqualStrict), R(6), U8(0), | 312 B(TestEqualStrict), R(7), U8(0), |
| 305 B(JumpIfTrue), U8(25), | 313 B(JumpIfTrue), U8(25), |
| 306 B(LdaSmi), U8(2), | 314 B(LdaSmi), U8(2), |
| 307 B(TestEqualStrict), R(6), U8(0), | 315 B(TestEqualStrict), R(7), U8(0), |
| 308 B(JumpIfTrue), U8(15), | 316 B(JumpIfTrue), U8(15), |
| 309 B(Jump), U8(2), | 317 B(Jump), U8(2), |
| 310 B(LdaTrue), | 318 B(LdaTrue), |
| 311 B(Star), R(8), | 319 B(Star), R(9), |
| 312 B(Mov), R(5), R(7), | 320 B(Mov), R(6), R(8), |
| 313 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), | 321 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8),
U8(2), |
| 314 /* 49 S> */ B(Return), | 322 /* 49 S> */ B(Return), |
| 315 B(Ldar), R(5), | 323 B(Ldar), R(6), |
| 316 /* 0 E> */ B(Throw), | 324 /* 0 E> */ B(Throw), |
| 317 /* 17 S> */ B(LdaSmi), U8(42), | 325 /* 17 S> */ B(LdaSmi), U8(42), |
| 318 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0), | 326 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0), |
| 319 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0), | 327 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0), |
| 320 B(Inc), U8(2), | 328 B(Inc), U8(2), |
| 321 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0), | 329 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0), |
| 322 B(Ldar), R(closure), | 330 B(Ldar), R(closure), |
| 323 B(CreateBlockContext), U8(1), | 331 B(CreateBlockContext), U8(1), |
| 324 B(PushContext), R(1), | 332 B(PushContext), R(1), |
| 325 B(LdaTheHole), | 333 B(LdaTheHole), |
| (...skipping 13 matching lines...) Expand all Loading... |
| 339 ] | 347 ] |
| 340 handlers: [ | 348 handlers: [ |
| 341 ] | 349 ] |
| 342 | 350 |
| 343 --- | 351 --- |
| 344 snippet: " | 352 snippet: " |
| 345 export let foo = 42; | 353 export let foo = 42; |
| 346 foo++; | 354 foo++; |
| 347 { let x; { foo++ } }; | 355 { let x; { foo++ } }; |
| 348 " | 356 " |
| 349 frame size: 9 | 357 frame size: 10 |
| 350 parameter count: 2 | 358 parameter count: 2 |
| 351 bytecode array length: 163 | 359 bytecode array length: 170 |
| 352 bytecodes: [ | 360 bytecodes: [ |
| 353 B(Ldar), R(new_target), | 361 B(Ldar), R(new_target), |
| 354 B(JumpIfUndefined), U8(21), | 362 B(JumpIfUndefined), U8(28), |
| 363 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 364 B(PushContext), R(3), |
| 355 B(ResumeGenerator), R(new_target), | 365 B(ResumeGenerator), R(new_target), |
| 356 B(Star), R(2), | 366 B(Star), R(2), |
| 357 B(LdaZero), | 367 B(LdaZero), |
| 358 B(TestEqualStrict), R(2), U8(0), | 368 B(TestEqualStrict), R(2), U8(0), |
| 359 B(JumpIfTrue), U8(67), | 369 B(JumpIfTrue), U8(67), |
| 360 B(LdaSmi), U8(77), | 370 B(LdaSmi), U8(77), |
| 361 B(Star), R(3), | 371 B(Star), R(4), |
| 362 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), | 372 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), |
| 363 B(LdaSmi), U8(-2), | 373 B(LdaSmi), U8(-2), |
| 364 B(Star), R(2), | 374 B(Star), R(2), |
| 365 B(LdaConstant), U8(0), | 375 B(LdaConstant), U8(0), |
| 366 B(Star), R(5), | 376 B(Star), R(6), |
| 367 B(Mov), R(arg0), R(3), | 377 B(Mov), R(arg0), R(4), |
| 368 B(Mov), R(closure), R(4), | 378 B(Mov), R(closure), R(5), |
| 369 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), | 379 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), |
| 370 B(PushContext), R(0), | 380 B(PushContext), R(0), |
| 371 B(Ldar), R(this), | 381 B(Ldar), R(this), |
| 372 B(StaCurrentContextSlot), U8(4), | 382 B(StaCurrentContextSlot), U8(4), |
| 373 B(LdaTheHole), | 383 B(LdaTheHole), |
| 374 B(StaModuleVariable), U8(1), U8(0), | 384 B(StaModuleVariable), U8(1), U8(0), |
| 375 /* 0 E> */ B(StackCheck), | 385 /* 0 E> */ B(StackCheck), |
| 376 B(LdaCurrentContextSlot), U8(4), | 386 B(LdaCurrentContextSlot), U8(4), |
| 387 B(Star), R(5), |
| 388 B(Mov), R(closure), R(4), |
| 389 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8
(2), |
| 390 B(StaCurrentContextSlot), U8(5), |
| 377 B(Star), R(4), | 391 B(Star), R(4), |
| 378 B(Mov), R(closure), R(3), | |
| 379 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), | |
| 380 B(StaCurrentContextSlot), U8(5), | |
| 381 B(Star), R(3), | |
| 382 B(LdaCurrentContextSlot), U8(5), | 392 B(LdaCurrentContextSlot), U8(5), |
| 383 B(Star), R(4), | 393 B(Star), R(5), |
| 384 B(LdaZero), | 394 B(LdaZero), |
| 385 B(SuspendGenerator), R(4), | 395 B(SuspendGenerator), R(5), |
| 386 B(Ldar), R(3), | 396 B(Ldar), R(4), |
| 387 /* 49 S> */ B(Return), | 397 /* 49 S> */ B(Return), |
| 388 B(LdaSmi), U8(-2), | 398 B(LdaSmi), U8(-2), |
| 389 B(Star), R(2), | 399 B(Star), R(2), |
| 390 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), | 400 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(5
), U8(1), |
| 391 B(Star), R(5), | |
| 392 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), | |
| 393 B(Star), R(6), | 401 B(Star), R(6), |
| 402 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(5), U8
(1), |
| 403 B(Star), R(7), |
| 394 B(LdaZero), | 404 B(LdaZero), |
| 395 B(TestEqualStrict), R(6), U8(0), | 405 B(TestEqualStrict), R(7), U8(0), |
| 396 B(JumpIfTrue), U8(25), | 406 B(JumpIfTrue), U8(25), |
| 397 B(LdaSmi), U8(2), | 407 B(LdaSmi), U8(2), |
| 398 B(TestEqualStrict), R(6), U8(0), | 408 B(TestEqualStrict), R(7), U8(0), |
| 399 B(JumpIfTrue), U8(15), | 409 B(JumpIfTrue), U8(15), |
| 400 B(Jump), U8(2), | 410 B(Jump), U8(2), |
| 401 B(LdaTrue), | 411 B(LdaTrue), |
| 402 B(Star), R(8), | 412 B(Star), R(9), |
| 403 B(Mov), R(5), R(7), | 413 B(Mov), R(6), R(8), |
| 404 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), | 414 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8),
U8(2), |
| 405 /* 49 S> */ B(Return), | 415 /* 49 S> */ B(Return), |
| 406 B(Ldar), R(5), | 416 B(Ldar), R(6), |
| 407 /* 0 E> */ B(Throw), | 417 /* 0 E> */ B(Throw), |
| 408 /* 17 S> */ B(LdaSmi), U8(42), | 418 /* 17 S> */ B(LdaSmi), U8(42), |
| 409 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0), | 419 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0), |
| 410 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0), | 420 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0), |
| 411 B(Inc), U8(2), | 421 B(Inc), U8(2), |
| 412 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0), | 422 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0), |
| 413 B(Ldar), R(closure), | 423 B(Ldar), R(closure), |
| 414 B(CreateBlockContext), U8(1), | 424 B(CreateBlockContext), U8(1), |
| 415 B(PushContext), R(1), | 425 B(PushContext), R(1), |
| 416 B(LdaTheHole), | 426 B(LdaTheHole), |
| (...skipping 13 matching lines...) Expand all Loading... |
| 430 ] | 440 ] |
| 431 handlers: [ | 441 handlers: [ |
| 432 ] | 442 ] |
| 433 | 443 |
| 434 --- | 444 --- |
| 435 snippet: " | 445 snippet: " |
| 436 export const foo = 42; | 446 export const foo = 42; |
| 437 foo++; | 447 foo++; |
| 438 { let x; { foo++ } }; | 448 { let x; { foo++ } }; |
| 439 " | 449 " |
| 440 frame size: 9 | 450 frame size: 10 |
| 441 parameter count: 2 | 451 parameter count: 2 |
| 442 bytecode array length: 167 | 452 bytecode array length: 174 |
| 443 bytecodes: [ | 453 bytecodes: [ |
| 444 B(Ldar), R(new_target), | 454 B(Ldar), R(new_target), |
| 445 B(JumpIfUndefined), U8(21), | 455 B(JumpIfUndefined), U8(28), |
| 456 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 457 B(PushContext), R(3), |
| 446 B(ResumeGenerator), R(new_target), | 458 B(ResumeGenerator), R(new_target), |
| 447 B(Star), R(2), | 459 B(Star), R(2), |
| 448 B(LdaZero), | 460 B(LdaZero), |
| 449 B(TestEqualStrict), R(2), U8(0), | 461 B(TestEqualStrict), R(2), U8(0), |
| 450 B(JumpIfTrue), U8(67), | 462 B(JumpIfTrue), U8(67), |
| 451 B(LdaSmi), U8(77), | 463 B(LdaSmi), U8(77), |
| 452 B(Star), R(3), | 464 B(Star), R(4), |
| 453 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), | 465 B(CallRuntime), U16(Runtime::kAbort), R(4), U8(1), |
| 454 B(LdaSmi), U8(-2), | 466 B(LdaSmi), U8(-2), |
| 455 B(Star), R(2), | 467 B(Star), R(2), |
| 456 B(LdaConstant), U8(0), | 468 B(LdaConstant), U8(0), |
| 457 B(Star), R(5), | 469 B(Star), R(6), |
| 458 B(Mov), R(arg0), R(3), | 470 B(Mov), R(arg0), R(4), |
| 459 B(Mov), R(closure), R(4), | 471 B(Mov), R(closure), R(5), |
| 460 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), | 472 B(CallRuntime), U16(Runtime::kPushModuleContext), R(4), U8(3), |
| 461 B(PushContext), R(0), | 473 B(PushContext), R(0), |
| 462 B(Ldar), R(this), | 474 B(Ldar), R(this), |
| 463 B(StaCurrentContextSlot), U8(4), | 475 B(StaCurrentContextSlot), U8(4), |
| 464 B(LdaTheHole), | 476 B(LdaTheHole), |
| 465 B(StaModuleVariable), U8(1), U8(0), | 477 B(StaModuleVariable), U8(1), U8(0), |
| 466 /* 0 E> */ B(StackCheck), | 478 /* 0 E> */ B(StackCheck), |
| 467 B(LdaCurrentContextSlot), U8(4), | 479 B(LdaCurrentContextSlot), U8(4), |
| 480 B(Star), R(5), |
| 481 B(Mov), R(closure), R(4), |
| 482 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(4), U8
(2), |
| 483 B(StaCurrentContextSlot), U8(5), |
| 468 B(Star), R(4), | 484 B(Star), R(4), |
| 469 B(Mov), R(closure), R(3), | |
| 470 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), | |
| 471 B(StaCurrentContextSlot), U8(5), | |
| 472 B(Star), R(3), | |
| 473 B(LdaCurrentContextSlot), U8(5), | 485 B(LdaCurrentContextSlot), U8(5), |
| 474 B(Star), R(4), | 486 B(Star), R(5), |
| 475 B(LdaZero), | 487 B(LdaZero), |
| 476 B(SuspendGenerator), R(4), | 488 B(SuspendGenerator), R(5), |
| 477 B(Ldar), R(3), | 489 B(Ldar), R(4), |
| 478 /* 51 S> */ B(Return), | 490 /* 51 S> */ B(Return), |
| 479 B(LdaSmi), U8(-2), | 491 B(LdaSmi), U8(-2), |
| 480 B(Star), R(2), | 492 B(Star), R(2), |
| 481 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), | 493 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(5
), U8(1), |
| 482 B(Star), R(5), | |
| 483 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), | |
| 484 B(Star), R(6), | 494 B(Star), R(6), |
| 495 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(5), U8
(1), |
| 496 B(Star), R(7), |
| 485 B(LdaZero), | 497 B(LdaZero), |
| 486 B(TestEqualStrict), R(6), U8(0), | 498 B(TestEqualStrict), R(7), U8(0), |
| 487 B(JumpIfTrue), U8(25), | 499 B(JumpIfTrue), U8(25), |
| 488 B(LdaSmi), U8(2), | 500 B(LdaSmi), U8(2), |
| 489 B(TestEqualStrict), R(6), U8(0), | 501 B(TestEqualStrict), R(7), U8(0), |
| 490 B(JumpIfTrue), U8(15), | 502 B(JumpIfTrue), U8(15), |
| 491 B(Jump), U8(2), | 503 B(Jump), U8(2), |
| 492 B(LdaTrue), | 504 B(LdaTrue), |
| 493 B(Star), R(8), | 505 B(Star), R(9), |
| 494 B(Mov), R(5), R(7), | 506 B(Mov), R(6), R(8), |
| 495 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), | 507 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(8),
U8(2), |
| 496 /* 51 S> */ B(Return), | 508 /* 51 S> */ B(Return), |
| 497 B(Ldar), R(5), | 509 B(Ldar), R(6), |
| 498 /* 0 E> */ B(Throw), | 510 /* 0 E> */ B(Throw), |
| 499 /* 19 S> */ B(LdaSmi), U8(42), | 511 /* 19 S> */ B(LdaSmi), U8(42), |
| 500 /* 19 E> */ B(StaModuleVariable), U8(1), U8(0), | 512 /* 19 E> */ B(StaModuleVariable), U8(1), U8(0), |
| 501 /* 23 S> */ B(LdaModuleVariable), U8(1), U8(0), | 513 /* 23 S> */ B(LdaModuleVariable), U8(1), U8(0), |
| 502 B(Inc), U8(2), | 514 B(Inc), U8(2), |
| 503 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), | 515 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0
), |
| 504 B(Ldar), R(closure), | 516 B(Ldar), R(closure), |
| 505 B(CreateBlockContext), U8(1), | 517 B(CreateBlockContext), U8(1), |
| 506 B(PushContext), R(1), | 518 B(PushContext), R(1), |
| 507 B(LdaTheHole), | 519 B(LdaTheHole), |
| (...skipping 11 matching lines...) Expand all Loading... |
| 519 FIXED_ARRAY_TYPE, | 531 FIXED_ARRAY_TYPE, |
| 520 FIXED_ARRAY_TYPE, | 532 FIXED_ARRAY_TYPE, |
| 521 ] | 533 ] |
| 522 handlers: [ | 534 handlers: [ |
| 523 ] | 535 ] |
| 524 | 536 |
| 525 --- | 537 --- |
| 526 snippet: " | 538 snippet: " |
| 527 export default (function () {}); | 539 export default (function () {}); |
| 528 " | 540 " |
| 529 frame size: 8 | 541 frame size: 9 |
| 530 parameter count: 2 | 542 parameter count: 2 |
| 531 bytecode array length: 135 | 543 bytecode array length: 142 |
| 532 bytecodes: [ | 544 bytecodes: [ |
| 533 B(Ldar), R(new_target), | 545 B(Ldar), R(new_target), |
| 534 B(JumpIfUndefined), U8(21), | 546 B(JumpIfUndefined), U8(28), |
| 547 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 548 B(PushContext), R(2), |
| 535 B(ResumeGenerator), R(new_target), | 549 B(ResumeGenerator), R(new_target), |
| 536 B(Star), R(1), | 550 B(Star), R(1), |
| 537 B(LdaZero), | 551 B(LdaZero), |
| 538 B(TestEqualStrict), R(1), U8(0), | 552 B(TestEqualStrict), R(1), U8(0), |
| 539 B(JumpIfTrue), U8(67), | 553 B(JumpIfTrue), U8(67), |
| 540 B(LdaSmi), U8(77), | 554 B(LdaSmi), U8(77), |
| 541 B(Star), R(2), | 555 B(Star), R(3), |
| 542 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), | 556 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
| 543 B(LdaSmi), U8(-2), | 557 B(LdaSmi), U8(-2), |
| 544 B(Star), R(1), | 558 B(Star), R(1), |
| 545 B(LdaConstant), U8(0), | 559 B(LdaConstant), U8(0), |
| 546 B(Star), R(4), | 560 B(Star), R(5), |
| 547 B(Mov), R(arg0), R(2), | 561 B(Mov), R(arg0), R(3), |
| 548 B(Mov), R(closure), R(3), | 562 B(Mov), R(closure), R(4), |
| 549 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), | 563 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), |
| 550 B(PushContext), R(0), | 564 B(PushContext), R(0), |
| 551 B(Ldar), R(this), | 565 B(Ldar), R(this), |
| 552 B(StaCurrentContextSlot), U8(4), | 566 B(StaCurrentContextSlot), U8(4), |
| 553 B(LdaTheHole), | 567 B(LdaTheHole), |
| 554 B(StaModuleVariable), U8(1), U8(0), | 568 B(StaModuleVariable), U8(1), U8(0), |
| 555 /* 0 E> */ B(StackCheck), | 569 /* 0 E> */ B(StackCheck), |
| 556 B(LdaCurrentContextSlot), U8(4), | 570 B(LdaCurrentContextSlot), U8(4), |
| 571 B(Star), R(4), |
| 572 B(Mov), R(closure), R(3), |
| 573 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), |
| 574 B(StaCurrentContextSlot), U8(5), |
| 557 B(Star), R(3), | 575 B(Star), R(3), |
| 558 B(Mov), R(closure), R(2), | |
| 559 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), | |
| 560 B(StaCurrentContextSlot), U8(5), | |
| 561 B(Star), R(2), | |
| 562 B(LdaCurrentContextSlot), U8(5), | 576 B(LdaCurrentContextSlot), U8(5), |
| 563 B(Star), R(3), | 577 B(Star), R(4), |
| 564 B(LdaZero), | 578 B(LdaZero), |
| 565 B(SuspendGenerator), R(3), | 579 B(SuspendGenerator), R(4), |
| 566 B(Ldar), R(2), | 580 B(Ldar), R(3), |
| 567 /* 32 S> */ B(Return), | 581 /* 32 S> */ B(Return), |
| 568 B(LdaSmi), U8(-2), | 582 B(LdaSmi), U8(-2), |
| 569 B(Star), R(1), | 583 B(Star), R(1), |
| 570 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3
), U8(1), | 584 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), |
| 571 B(Star), R(4), | |
| 572 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8
(1), | |
| 573 B(Star), R(5), | 585 B(Star), R(5), |
| 586 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), |
| 587 B(Star), R(6), |
| 574 B(LdaZero), | 588 B(LdaZero), |
| 575 B(TestEqualStrict), R(5), U8(0), | 589 B(TestEqualStrict), R(6), U8(0), |
| 576 B(JumpIfTrue), U8(25), | 590 B(JumpIfTrue), U8(25), |
| 577 B(LdaSmi), U8(2), | 591 B(LdaSmi), U8(2), |
| 578 B(TestEqualStrict), R(5), U8(0), | 592 B(TestEqualStrict), R(6), U8(0), |
| 579 B(JumpIfTrue), U8(15), | 593 B(JumpIfTrue), U8(15), |
| 580 B(Jump), U8(2), | 594 B(Jump), U8(2), |
| 581 B(LdaTrue), | 595 B(LdaTrue), |
| 582 B(Star), R(7), | 596 B(Star), R(8), |
| 583 B(Mov), R(4), R(6), | 597 B(Mov), R(5), R(7), |
| 584 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6),
U8(2), | 598 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), |
| 585 /* 32 S> */ B(Return), | 599 /* 32 S> */ B(Return), |
| 586 B(Ldar), R(4), | 600 B(Ldar), R(5), |
| 587 /* 0 E> */ B(Throw), | 601 /* 0 E> */ B(Throw), |
| 588 B(CreateClosure), U8(1), U8(2), U8(0), | 602 B(CreateClosure), U8(1), U8(2), U8(0), |
| 589 B(StaModuleVariable), U8(1), U8(0), | 603 B(StaModuleVariable), U8(1), U8(0), |
| 590 B(LdaUndefined), | 604 B(LdaUndefined), |
| 591 /* 32 S> */ B(Return), | 605 /* 32 S> */ B(Return), |
| 592 ] | 606 ] |
| 593 constant pool: [ | 607 constant pool: [ |
| 594 FIXED_ARRAY_TYPE, | 608 FIXED_ARRAY_TYPE, |
| 595 SHARED_FUNCTION_INFO_TYPE, | 609 SHARED_FUNCTION_INFO_TYPE, |
| 596 ] | 610 ] |
| 597 handlers: [ | 611 handlers: [ |
| 598 ] | 612 ] |
| 599 | 613 |
| 600 --- | 614 --- |
| 601 snippet: " | 615 snippet: " |
| 602 export default (class {}); | 616 export default (class {}); |
| 603 " | 617 " |
| 604 frame size: 8 | 618 frame size: 9 |
| 605 parameter count: 2 | 619 parameter count: 2 |
| 606 bytecode array length: 172 | 620 bytecode array length: 179 |
| 607 bytecodes: [ | 621 bytecodes: [ |
| 608 B(Ldar), R(new_target), | 622 B(Ldar), R(new_target), |
| 609 B(JumpIfUndefined), U8(21), | 623 B(JumpIfUndefined), U8(28), |
| 624 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 625 B(PushContext), R(2), |
| 610 B(ResumeGenerator), R(new_target), | 626 B(ResumeGenerator), R(new_target), |
| 611 B(Star), R(1), | 627 B(Star), R(1), |
| 612 B(LdaZero), | 628 B(LdaZero), |
| 613 B(TestEqualStrict), R(1), U8(0), | 629 B(TestEqualStrict), R(1), U8(0), |
| 614 B(JumpIfTrue), U8(67), | 630 B(JumpIfTrue), U8(67), |
| 615 B(LdaSmi), U8(77), | 631 B(LdaSmi), U8(77), |
| 616 B(Star), R(2), | 632 B(Star), R(3), |
| 617 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), | 633 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
| 618 B(LdaSmi), U8(-2), | 634 B(LdaSmi), U8(-2), |
| 619 B(Star), R(1), | 635 B(Star), R(1), |
| 620 B(LdaConstant), U8(0), | 636 B(LdaConstant), U8(0), |
| 621 B(Star), R(4), | 637 B(Star), R(5), |
| 622 B(Mov), R(arg0), R(2), | 638 B(Mov), R(arg0), R(3), |
| 623 B(Mov), R(closure), R(3), | 639 B(Mov), R(closure), R(4), |
| 624 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), | 640 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), |
| 625 B(PushContext), R(0), | 641 B(PushContext), R(0), |
| 626 B(Ldar), R(this), | 642 B(Ldar), R(this), |
| 627 B(StaCurrentContextSlot), U8(4), | 643 B(StaCurrentContextSlot), U8(4), |
| 628 B(LdaTheHole), | 644 B(LdaTheHole), |
| 629 B(StaModuleVariable), U8(1), U8(0), | 645 B(StaModuleVariable), U8(1), U8(0), |
| 630 /* 0 E> */ B(StackCheck), | 646 /* 0 E> */ B(StackCheck), |
| 631 B(LdaCurrentContextSlot), U8(4), | 647 B(LdaCurrentContextSlot), U8(4), |
| 648 B(Star), R(4), |
| 649 B(Mov), R(closure), R(3), |
| 650 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), |
| 651 B(StaCurrentContextSlot), U8(5), |
| 632 B(Star), R(3), | 652 B(Star), R(3), |
| 633 B(Mov), R(closure), R(2), | |
| 634 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), | |
| 635 B(StaCurrentContextSlot), U8(5), | |
| 636 B(Star), R(2), | |
| 637 B(LdaCurrentContextSlot), U8(5), | 653 B(LdaCurrentContextSlot), U8(5), |
| 638 B(Star), R(3), | 654 B(Star), R(4), |
| 639 B(LdaZero), | 655 B(LdaZero), |
| 640 B(SuspendGenerator), R(3), | 656 B(SuspendGenerator), R(4), |
| 641 B(Ldar), R(2), | 657 B(Ldar), R(3), |
| 642 /* 26 S> */ B(Return), | 658 /* 26 S> */ B(Return), |
| 643 B(LdaSmi), U8(-2), | 659 B(LdaSmi), U8(-2), |
| 644 B(Star), R(1), | 660 B(Star), R(1), |
| 645 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3
), U8(1), | 661 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), |
| 646 B(Star), R(4), | |
| 647 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8
(1), | |
| 648 B(Star), R(5), | 662 B(Star), R(5), |
| 663 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), |
| 664 B(Star), R(6), |
| 649 B(LdaZero), | 665 B(LdaZero), |
| 650 B(TestEqualStrict), R(5), U8(0), | 666 B(TestEqualStrict), R(6), U8(0), |
| 651 B(JumpIfTrue), U8(25), | 667 B(JumpIfTrue), U8(25), |
| 652 B(LdaSmi), U8(2), | 668 B(LdaSmi), U8(2), |
| 653 B(TestEqualStrict), R(5), U8(0), | 669 B(TestEqualStrict), R(6), U8(0), |
| 654 B(JumpIfTrue), U8(15), | 670 B(JumpIfTrue), U8(15), |
| 655 B(Jump), U8(2), | 671 B(Jump), U8(2), |
| 656 B(LdaTrue), | 672 B(LdaTrue), |
| 657 B(Star), R(7), | 673 B(Star), R(8), |
| 658 B(Mov), R(4), R(6), | 674 B(Mov), R(5), R(7), |
| 659 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6),
U8(2), | 675 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), |
| 660 /* 26 S> */ B(Return), | 676 /* 26 S> */ B(Return), |
| 661 B(Ldar), R(4), | 677 B(Ldar), R(5), |
| 662 /* 0 E> */ B(Throw), | 678 /* 0 E> */ B(Throw), |
| 663 /* 16 S> */ B(CreateClosure), U8(1), U8(2), U8(0), | 679 /* 16 S> */ B(CreateClosure), U8(1), U8(2), U8(0), |
| 664 B(Star), R(2), | 680 B(Star), R(3), |
| 665 B(LdaTheHole), | 681 B(LdaTheHole), |
| 666 B(Star), R(3), | 682 B(Star), R(4), |
| 667 B(LdaSmi), U8(16), | 683 B(LdaSmi), U8(16), |
| 668 B(Star), R(5), | 684 B(Star), R(6), |
| 669 B(LdaSmi), U8(24), | 685 B(LdaSmi), U8(24), |
| 670 B(Star), R(6), | 686 B(Star), R(7), |
| 671 B(Mov), R(2), R(4), | 687 B(Mov), R(3), R(5), |
| 672 B(CallRuntime), U16(Runtime::kDefineClass), R(3), U8(4), | 688 B(CallRuntime), U16(Runtime::kDefineClass), R(4), U8(4), |
| 673 B(Star), R(3), | 689 B(Star), R(4), |
| 674 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(2), U
8(1), | 690 B(CallRuntime), U16(Runtime::kInstallClassNameAccessor), R(3), U
8(1), |
| 675 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1), | 691 B(CallRuntime), U16(Runtime::kToFastProperties), R(3), U8(1), |
| 676 B(StaCurrentContextSlot), U8(6), | 692 B(StaCurrentContextSlot), U8(6), |
| 677 B(LdaCurrentContextSlot), U8(6), | 693 B(LdaCurrentContextSlot), U8(6), |
| 678 /* 16 E> */ B(StaModuleVariable), U8(1), U8(0), | 694 /* 16 E> */ B(StaModuleVariable), U8(1), U8(0), |
| 679 B(LdaUndefined), | 695 B(LdaUndefined), |
| 680 /* 26 S> */ B(Return), | 696 /* 26 S> */ B(Return), |
| 681 ] | 697 ] |
| 682 constant pool: [ | 698 constant pool: [ |
| 683 FIXED_ARRAY_TYPE, | 699 FIXED_ARRAY_TYPE, |
| 684 SHARED_FUNCTION_INFO_TYPE, | 700 SHARED_FUNCTION_INFO_TYPE, |
| 685 ] | 701 ] |
| 686 handlers: [ | 702 handlers: [ |
| 687 ] | 703 ] |
| 688 | 704 |
| 689 --- | 705 --- |
| 690 snippet: " | 706 snippet: " |
| 691 export {foo as goo} from \"bar\" | 707 export {foo as goo} from \"bar\" |
| 692 " | 708 " |
| 693 frame size: 8 | 709 frame size: 9 |
| 694 parameter count: 2 | 710 parameter count: 2 |
| 695 bytecode array length: 124 | 711 bytecode array length: 131 |
| 696 bytecodes: [ | 712 bytecodes: [ |
| 697 B(Ldar), R(new_target), | 713 B(Ldar), R(new_target), |
| 698 B(JumpIfUndefined), U8(21), | 714 B(JumpIfUndefined), U8(28), |
| 715 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 716 B(PushContext), R(2), |
| 699 B(ResumeGenerator), R(new_target), | 717 B(ResumeGenerator), R(new_target), |
| 700 B(Star), R(1), | 718 B(Star), R(1), |
| 701 B(LdaZero), | 719 B(LdaZero), |
| 702 B(TestEqualStrict), R(1), U8(0), | 720 B(TestEqualStrict), R(1), U8(0), |
| 703 B(JumpIfTrue), U8(63), | 721 B(JumpIfTrue), U8(63), |
| 704 B(LdaSmi), U8(77), | 722 B(LdaSmi), U8(77), |
| 705 B(Star), R(2), | 723 B(Star), R(3), |
| 706 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), | 724 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
| 707 B(LdaSmi), U8(-2), | 725 B(LdaSmi), U8(-2), |
| 708 B(Star), R(1), | 726 B(Star), R(1), |
| 709 B(LdaConstant), U8(0), | 727 B(LdaConstant), U8(0), |
| 710 B(Star), R(4), | 728 B(Star), R(5), |
| 711 B(Mov), R(arg0), R(2), | 729 B(Mov), R(arg0), R(3), |
| 712 B(Mov), R(closure), R(3), | 730 B(Mov), R(closure), R(4), |
| 713 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), | 731 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), |
| 714 B(PushContext), R(0), | 732 B(PushContext), R(0), |
| 715 B(Ldar), R(this), | 733 B(Ldar), R(this), |
| 716 B(StaCurrentContextSlot), U8(4), | 734 B(StaCurrentContextSlot), U8(4), |
| 717 /* 0 E> */ B(StackCheck), | 735 /* 0 E> */ B(StackCheck), |
| 718 B(LdaCurrentContextSlot), U8(4), | 736 B(LdaCurrentContextSlot), U8(4), |
| 737 B(Star), R(4), |
| 738 B(Mov), R(closure), R(3), |
| 739 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), |
| 740 B(StaCurrentContextSlot), U8(5), |
| 719 B(Star), R(3), | 741 B(Star), R(3), |
| 720 B(Mov), R(closure), R(2), | |
| 721 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), | |
| 722 B(StaCurrentContextSlot), U8(5), | |
| 723 B(Star), R(2), | |
| 724 B(LdaCurrentContextSlot), U8(5), | 742 B(LdaCurrentContextSlot), U8(5), |
| 725 B(Star), R(3), | 743 B(Star), R(4), |
| 726 B(LdaZero), | 744 B(LdaZero), |
| 727 B(SuspendGenerator), R(3), | 745 B(SuspendGenerator), R(4), |
| 728 B(Ldar), R(2), | 746 B(Ldar), R(3), |
| 729 /* 30 S> */ B(Return), | 747 /* 30 S> */ B(Return), |
| 730 B(LdaSmi), U8(-2), | 748 B(LdaSmi), U8(-2), |
| 731 B(Star), R(1), | 749 B(Star), R(1), |
| 732 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3
), U8(1), | 750 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), |
| 733 B(Star), R(4), | |
| 734 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8
(1), | |
| 735 B(Star), R(5), | 751 B(Star), R(5), |
| 752 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), |
| 753 B(Star), R(6), |
| 736 B(LdaZero), | 754 B(LdaZero), |
| 737 B(TestEqualStrict), R(5), U8(0), | 755 B(TestEqualStrict), R(6), U8(0), |
| 738 B(JumpIfTrue), U8(25), | 756 B(JumpIfTrue), U8(25), |
| 739 B(LdaSmi), U8(2), | 757 B(LdaSmi), U8(2), |
| 740 B(TestEqualStrict), R(5), U8(0), | 758 B(TestEqualStrict), R(6), U8(0), |
| 741 B(JumpIfTrue), U8(15), | 759 B(JumpIfTrue), U8(15), |
| 742 B(Jump), U8(2), | 760 B(Jump), U8(2), |
| 743 B(LdaTrue), | 761 B(LdaTrue), |
| 744 B(Star), R(7), | 762 B(Star), R(8), |
| 745 B(Mov), R(4), R(6), | 763 B(Mov), R(5), R(7), |
| 746 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6),
U8(2), | 764 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), |
| 747 /* 30 S> */ B(Return), | 765 /* 30 S> */ B(Return), |
| 748 B(Ldar), R(4), | 766 B(Ldar), R(5), |
| 749 /* 0 E> */ B(Throw), | 767 /* 0 E> */ B(Throw), |
| 750 B(LdaUndefined), | 768 B(LdaUndefined), |
| 751 /* 30 S> */ B(Return), | 769 /* 30 S> */ B(Return), |
| 752 ] | 770 ] |
| 753 constant pool: [ | 771 constant pool: [ |
| 754 FIXED_ARRAY_TYPE, | 772 FIXED_ARRAY_TYPE, |
| 755 ] | 773 ] |
| 756 handlers: [ | 774 handlers: [ |
| 757 ] | 775 ] |
| 758 | 776 |
| 759 --- | 777 --- |
| 760 snippet: " | 778 snippet: " |
| 761 export * from \"bar\" | 779 export * from \"bar\" |
| 762 " | 780 " |
| 763 frame size: 8 | 781 frame size: 9 |
| 764 parameter count: 2 | 782 parameter count: 2 |
| 765 bytecode array length: 124 | 783 bytecode array length: 131 |
| 766 bytecodes: [ | 784 bytecodes: [ |
| 767 B(Ldar), R(new_target), | 785 B(Ldar), R(new_target), |
| 768 B(JumpIfUndefined), U8(21), | 786 B(JumpIfUndefined), U8(28), |
| 787 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 788 B(PushContext), R(2), |
| 769 B(ResumeGenerator), R(new_target), | 789 B(ResumeGenerator), R(new_target), |
| 770 B(Star), R(1), | 790 B(Star), R(1), |
| 771 B(LdaZero), | 791 B(LdaZero), |
| 772 B(TestEqualStrict), R(1), U8(0), | 792 B(TestEqualStrict), R(1), U8(0), |
| 773 B(JumpIfTrue), U8(63), | 793 B(JumpIfTrue), U8(63), |
| 774 B(LdaSmi), U8(77), | 794 B(LdaSmi), U8(77), |
| 775 B(Star), R(2), | 795 B(Star), R(3), |
| 776 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), | 796 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
| 777 B(LdaSmi), U8(-2), | 797 B(LdaSmi), U8(-2), |
| 778 B(Star), R(1), | 798 B(Star), R(1), |
| 779 B(LdaConstant), U8(0), | 799 B(LdaConstant), U8(0), |
| 780 B(Star), R(4), | 800 B(Star), R(5), |
| 781 B(Mov), R(arg0), R(2), | 801 B(Mov), R(arg0), R(3), |
| 782 B(Mov), R(closure), R(3), | 802 B(Mov), R(closure), R(4), |
| 783 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), | 803 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), |
| 784 B(PushContext), R(0), | 804 B(PushContext), R(0), |
| 785 B(Ldar), R(this), | 805 B(Ldar), R(this), |
| 786 B(StaCurrentContextSlot), U8(4), | 806 B(StaCurrentContextSlot), U8(4), |
| 787 /* 0 E> */ B(StackCheck), | 807 /* 0 E> */ B(StackCheck), |
| 788 B(LdaCurrentContextSlot), U8(4), | 808 B(LdaCurrentContextSlot), U8(4), |
| 809 B(Star), R(4), |
| 810 B(Mov), R(closure), R(3), |
| 811 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), |
| 812 B(StaCurrentContextSlot), U8(5), |
| 789 B(Star), R(3), | 813 B(Star), R(3), |
| 790 B(Mov), R(closure), R(2), | |
| 791 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), | |
| 792 B(StaCurrentContextSlot), U8(5), | |
| 793 B(Star), R(2), | |
| 794 B(LdaCurrentContextSlot), U8(5), | 814 B(LdaCurrentContextSlot), U8(5), |
| 795 B(Star), R(3), | 815 B(Star), R(4), |
| 796 B(LdaZero), | 816 B(LdaZero), |
| 797 B(SuspendGenerator), R(3), | 817 B(SuspendGenerator), R(4), |
| 798 B(Ldar), R(2), | 818 B(Ldar), R(3), |
| 799 /* 19 S> */ B(Return), | 819 /* 19 S> */ B(Return), |
| 800 B(LdaSmi), U8(-2), | 820 B(LdaSmi), U8(-2), |
| 801 B(Star), R(1), | 821 B(Star), R(1), |
| 802 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3
), U8(1), | 822 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), |
| 803 B(Star), R(4), | |
| 804 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8
(1), | |
| 805 B(Star), R(5), | 823 B(Star), R(5), |
| 824 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), |
| 825 B(Star), R(6), |
| 806 B(LdaZero), | 826 B(LdaZero), |
| 807 B(TestEqualStrict), R(5), U8(0), | 827 B(TestEqualStrict), R(6), U8(0), |
| 808 B(JumpIfTrue), U8(25), | 828 B(JumpIfTrue), U8(25), |
| 809 B(LdaSmi), U8(2), | 829 B(LdaSmi), U8(2), |
| 810 B(TestEqualStrict), R(5), U8(0), | 830 B(TestEqualStrict), R(6), U8(0), |
| 811 B(JumpIfTrue), U8(15), | 831 B(JumpIfTrue), U8(15), |
| 812 B(Jump), U8(2), | 832 B(Jump), U8(2), |
| 813 B(LdaTrue), | 833 B(LdaTrue), |
| 814 B(Star), R(7), | 834 B(Star), R(8), |
| 815 B(Mov), R(4), R(6), | 835 B(Mov), R(5), R(7), |
| 816 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6),
U8(2), | 836 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), |
| 817 /* 19 S> */ B(Return), | 837 /* 19 S> */ B(Return), |
| 818 B(Ldar), R(4), | 838 B(Ldar), R(5), |
| 819 /* 0 E> */ B(Throw), | 839 /* 0 E> */ B(Throw), |
| 820 B(LdaUndefined), | 840 B(LdaUndefined), |
| 821 /* 19 S> */ B(Return), | 841 /* 19 S> */ B(Return), |
| 822 ] | 842 ] |
| 823 constant pool: [ | 843 constant pool: [ |
| 824 FIXED_ARRAY_TYPE, | 844 FIXED_ARRAY_TYPE, |
| 825 ] | 845 ] |
| 826 handlers: [ | 846 handlers: [ |
| 827 ] | 847 ] |
| 828 | 848 |
| 829 --- | 849 --- |
| 830 snippet: " | 850 snippet: " |
| 831 import * as foo from \"bar\" | 851 import * as foo from \"bar\" |
| 832 foo.f(foo, foo.x); | 852 foo.f(foo, foo.x); |
| 833 " | 853 " |
| 834 frame size: 8 | 854 frame size: 9 |
| 835 parameter count: 2 | 855 parameter count: 2 |
| 836 bytecode array length: 163 | 856 bytecode array length: 170 |
| 837 bytecodes: [ | 857 bytecodes: [ |
| 838 B(Ldar), R(new_target), | 858 B(Ldar), R(new_target), |
| 839 B(JumpIfUndefined), U8(21), | 859 B(JumpIfUndefined), U8(28), |
| 860 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 861 B(PushContext), R(2), |
| 840 B(ResumeGenerator), R(new_target), | 862 B(ResumeGenerator), R(new_target), |
| 841 B(Star), R(1), | 863 B(Star), R(1), |
| 842 B(LdaZero), | 864 B(LdaZero), |
| 843 B(TestEqualStrict), R(1), U8(0), | 865 B(TestEqualStrict), R(1), U8(0), |
| 844 B(JumpIfTrue), U8(73), | 866 B(JumpIfTrue), U8(73), |
| 845 B(LdaSmi), U8(77), | 867 B(LdaSmi), U8(77), |
| 846 B(Star), R(2), | 868 B(Star), R(3), |
| 847 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), | 869 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
| 848 B(LdaSmi), U8(-2), | 870 B(LdaSmi), U8(-2), |
| 849 B(Star), R(1), | 871 B(Star), R(1), |
| 850 B(LdaConstant), U8(0), | 872 B(LdaConstant), U8(0), |
| 851 B(Star), R(4), | 873 B(Star), R(5), |
| 852 B(Mov), R(arg0), R(2), | 874 B(Mov), R(arg0), R(3), |
| 853 B(Mov), R(closure), R(3), | 875 B(Mov), R(closure), R(4), |
| 854 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), | 876 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), |
| 855 B(PushContext), R(0), | 877 B(PushContext), R(0), |
| 856 B(Ldar), R(this), | 878 B(Ldar), R(this), |
| 857 B(StaCurrentContextSlot), U8(4), | 879 B(StaCurrentContextSlot), U8(4), |
| 858 B(LdaZero), | 880 B(LdaZero), |
| 859 B(Star), R(2), | 881 B(Star), R(3), |
| 860 B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(2), U8(1), | 882 B(CallRuntime), U16(Runtime::kGetModuleNamespace), R(3), U8(1), |
| 861 B(StaCurrentContextSlot), U8(6), | 883 B(StaCurrentContextSlot), U8(6), |
| 862 /* 0 E> */ B(StackCheck), | 884 /* 0 E> */ B(StackCheck), |
| 863 B(LdaCurrentContextSlot), U8(4), | 885 B(LdaCurrentContextSlot), U8(4), |
| 886 B(Star), R(4), |
| 887 B(Mov), R(closure), R(3), |
| 888 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8
(2), |
| 889 B(StaCurrentContextSlot), U8(5), |
| 864 B(Star), R(3), | 890 B(Star), R(3), |
| 865 B(Mov), R(closure), R(2), | |
| 866 /* 0 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8
(2), | |
| 867 B(StaCurrentContextSlot), U8(5), | |
| 868 B(Star), R(2), | |
| 869 B(LdaCurrentContextSlot), U8(5), | 891 B(LdaCurrentContextSlot), U8(5), |
| 870 B(Star), R(3), | 892 B(Star), R(4), |
| 871 B(LdaZero), | 893 B(LdaZero), |
| 872 B(SuspendGenerator), R(3), | 894 B(SuspendGenerator), R(4), |
| 873 B(Ldar), R(2), | 895 B(Ldar), R(3), |
| 874 /* 45 S> */ B(Return), | 896 /* 45 S> */ B(Return), |
| 875 B(LdaSmi), U8(-2), | 897 B(LdaSmi), U8(-2), |
| 876 B(Star), R(1), | 898 B(Star), R(1), |
| 877 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3
), U8(1), | 899 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4
), U8(1), |
| 878 B(Star), R(4), | |
| 879 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8
(1), | |
| 880 B(Star), R(5), | 900 B(Star), R(5), |
| 901 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8
(1), |
| 902 B(Star), R(6), |
| 881 B(LdaZero), | 903 B(LdaZero), |
| 882 B(TestEqualStrict), R(5), U8(0), | 904 B(TestEqualStrict), R(6), U8(0), |
| 883 B(JumpIfTrue), U8(25), | 905 B(JumpIfTrue), U8(25), |
| 884 B(LdaSmi), U8(2), | 906 B(LdaSmi), U8(2), |
| 885 B(TestEqualStrict), R(5), U8(0), | 907 B(TestEqualStrict), R(6), U8(0), |
| 886 B(JumpIfTrue), U8(15), | 908 B(JumpIfTrue), U8(15), |
| 887 B(Jump), U8(2), | 909 B(Jump), U8(2), |
| 888 B(LdaTrue), | 910 B(LdaTrue), |
| 889 B(Star), R(7), | 911 B(Star), R(8), |
| 890 B(Mov), R(4), R(6), | 912 B(Mov), R(5), R(7), |
| 891 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6),
U8(2), | 913 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7),
U8(2), |
| 892 /* 45 S> */ B(Return), | 914 /* 45 S> */ B(Return), |
| 893 B(Ldar), R(4), | 915 B(Ldar), R(5), |
| 894 /* 0 E> */ B(Throw), | 916 /* 0 E> */ B(Throw), |
| 895 /* 27 S> */ B(LdaCurrentContextSlot), U8(6), | 917 /* 27 S> */ B(LdaCurrentContextSlot), U8(6), |
| 918 B(Star), R(4), |
| 919 /* 30 E> */ B(LdaNamedProperty), R(4), U8(1), U8(4), |
| 896 B(Star), R(3), | 920 B(Star), R(3), |
| 897 /* 30 E> */ B(LdaNamedProperty), R(3), U8(1), U8(4), | |
| 898 B(Star), R(2), | |
| 899 B(LdaCurrentContextSlot), U8(6), | |
| 900 B(Star), R(4), | |
| 901 B(LdaCurrentContextSlot), U8(6), | 921 B(LdaCurrentContextSlot), U8(6), |
| 902 B(Star), R(5), | 922 B(Star), R(5), |
| 903 /* 41 E> */ B(LdaNamedProperty), R(5), U8(2), U8(6), | 923 B(LdaCurrentContextSlot), U8(6), |
| 904 B(Star), R(5), | 924 B(Star), R(6), |
| 905 /* 31 E> */ B(CallProperty), R(2), R(3), U8(3), U8(2), | 925 /* 41 E> */ B(LdaNamedProperty), R(6), U8(2), U8(6), |
| 926 B(Star), R(6), |
| 927 /* 31 E> */ B(CallProperty), R(3), R(4), U8(3), U8(2), |
| 906 B(LdaUndefined), | 928 B(LdaUndefined), |
| 907 /* 45 S> */ B(Return), | 929 /* 45 S> */ B(Return), |
| 908 ] | 930 ] |
| 909 constant pool: [ | 931 constant pool: [ |
| 910 FIXED_ARRAY_TYPE, | 932 FIXED_ARRAY_TYPE, |
| 911 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], | 933 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], |
| 912 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], | 934 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], |
| 913 ] | 935 ] |
| 914 handlers: [ | 936 handlers: [ |
| 915 ] | 937 ] |
| 916 | 938 |
| OLD | NEW |