| 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 test function name: f | 7 test function name: f |
| 8 | 8 |
| 9 --- | 9 --- |
| 10 snippet: " | 10 snippet: " |
| 11 function* f() { } | 11 function* f() { } |
| 12 f(); | 12 f(); |
| 13 " | 13 " |
| 14 frame size: 12 | 14 frame size: 12 |
| 15 parameter count: 1 | 15 parameter count: 1 |
| 16 bytecode array length: 199 | 16 bytecode array length: 198 |
| 17 bytecodes: [ | 17 bytecodes: [ |
| 18 B(Ldar), R(new_target), | 18 B(Ldar), R(new_target), |
| 19 B(JumpIfUndefined), U8(27), | 19 B(JumpIfUndefined), U8(27), |
| 20 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 20 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 21 B(PushContext), R(2), | 21 B(PushContext), R(2), |
| 22 B(ResumeGenerator), R(new_target), | 22 B(ResumeGenerator), R(new_target), |
| 23 B(Star), R(1), | 23 B(Star), R(1), |
| 24 B(LdaZero), | 24 B(LdaZero), |
| 25 B(TestEqualStrictNoFeedback), R(1), | 25 B(TestEqualStrictNoFeedback), R(1), |
| 26 B(JumpIfTrue), U8(54), | 26 B(JumpIfTrue), U8(53), |
| 27 B(LdaSmi), I8(79), | 27 B(LdaSmi), I8(79), |
| 28 B(Star), R(3), | 28 B(Star), R(3), |
| 29 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), | 29 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
| 30 B(LdaSmi), I8(-2), | 30 B(LdaSmi), I8(-2), |
| 31 B(Star), R(1), | 31 B(Star), R(1), |
| 32 B(CreateFunctionContext), U8(2), | 32 B(CreateFunctionContext), U8(2), |
| 33 B(PushContext), R(0), | 33 B(PushContext), R(0), |
| 34 B(Ldar), R(this), | 34 B(Ldar), R(this), |
| 35 B(StaCurrentContextSlot), U8(4), | 35 B(StaCurrentContextSlot), U8(4), |
| 36 /* 11 E> */ B(StackCheck), | 36 /* 11 E> */ B(StackCheck), |
| 37 B(Mov), R(context), R(5), | 37 B(Mov), R(context), R(5), |
| 38 B(LdaImmutableCurrentContextSlot), U8(4), | 38 B(LdaImmutableCurrentContextSlot), U8(4), |
| 39 B(Star), R(7), | 39 B(Star), R(7), |
| 40 B(Mov), R(closure), R(6), | 40 B(Mov), R(closure), R(6), |
| 41 /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(6), U8
(2), | 41 /* 11 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(6)
, U8(2), |
| 42 B(StaCurrentContextSlot), U8(5), | 42 B(StaCurrentContextSlot), U8(5), |
| 43 B(Star), R(6), | 43 B(Star), R(6), |
| 44 B(LdaImmutableCurrentContextSlot), U8(5), | 44 B(LdaImmutableCurrentContextSlot), U8(5), |
| 45 B(Star), R(7), | 45 B(Star), R(7), |
| 46 B(LdaZero), | 46 B(LdaZero), |
| 47 B(SuspendGenerator), R(7), U8(0), | 47 B(SuspendGenerator), R(7), U8(0), |
| 48 B(Ldar), R(6), | 48 B(Ldar), R(6), |
| 49 /* 16 S> */ B(Return), | 49 /* 16 S> */ B(Return), |
| 50 B(LdaSmi), I8(-2), | 50 B(LdaSmi), I8(-2), |
| 51 B(Star), R(1), | 51 B(Star), R(1), |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 B(Ldar), R(4), | 108 B(Ldar), R(4), |
| 109 /* 16 S> */ B(Return), | 109 /* 16 S> */ B(Return), |
| 110 B(Ldar), R(4), | 110 B(Ldar), R(4), |
| 111 B(ReThrow), | 111 B(ReThrow), |
| 112 B(LdaUndefined), | 112 B(LdaUndefined), |
| 113 /* 16 S> */ B(Return), | 113 /* 16 S> */ B(Return), |
| 114 ] | 114 ] |
| 115 constant pool: [ | 115 constant pool: [ |
| 116 ] | 116 ] |
| 117 handlers: [ | 117 handlers: [ |
| 118 [45, 141, 147], | 118 [45, 140, 146], |
| 119 ] | 119 ] |
| 120 | 120 |
| 121 --- | 121 --- |
| 122 snippet: " | 122 snippet: " |
| 123 function* f() { yield 42 } | 123 function* f() { yield 42 } |
| 124 f(); | 124 f(); |
| 125 " | 125 " |
| 126 frame size: 12 | 126 frame size: 12 |
| 127 parameter count: 1 | 127 parameter count: 1 |
| 128 bytecode array length: 291 | 128 bytecode array length: 290 |
| 129 bytecodes: [ | 129 bytecodes: [ |
| 130 B(Ldar), R(new_target), | 130 B(Ldar), R(new_target), |
| 131 B(JumpIfUndefined), U8(33), | 131 B(JumpIfUndefined), U8(33), |
| 132 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 132 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 133 B(PushContext), R(2), | 133 B(PushContext), R(2), |
| 134 B(ResumeGenerator), R(new_target), | 134 B(ResumeGenerator), R(new_target), |
| 135 B(Star), R(1), | 135 B(Star), R(1), |
| 136 B(LdaZero), | 136 B(LdaZero), |
| 137 B(TestEqualStrictNoFeedback), R(1), | 137 B(TestEqualStrictNoFeedback), R(1), |
| 138 B(JumpIfTrue), U8(60), | 138 B(JumpIfTrue), U8(59), |
| 139 B(LdaSmi), I8(1), | 139 B(LdaSmi), I8(1), |
| 140 B(TestEqualStrictNoFeedback), R(1), | 140 B(TestEqualStrictNoFeedback), R(1), |
| 141 B(JumpIfTrue), U8(130), | 141 B(JumpIfTrue), U8(129), |
| 142 B(LdaSmi), I8(79), | 142 B(LdaSmi), I8(79), |
| 143 B(Star), R(3), | 143 B(Star), R(3), |
| 144 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), | 144 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), |
| 145 B(LdaSmi), I8(-2), | 145 B(LdaSmi), I8(-2), |
| 146 B(Star), R(1), | 146 B(Star), R(1), |
| 147 B(CreateFunctionContext), U8(2), | 147 B(CreateFunctionContext), U8(2), |
| 148 B(PushContext), R(0), | 148 B(PushContext), R(0), |
| 149 B(Ldar), R(this), | 149 B(Ldar), R(this), |
| 150 B(StaCurrentContextSlot), U8(4), | 150 B(StaCurrentContextSlot), U8(4), |
| 151 /* 11 E> */ B(StackCheck), | 151 /* 11 E> */ B(StackCheck), |
| 152 B(Mov), R(context), R(5), | 152 B(Mov), R(context), R(5), |
| 153 B(LdaImmutableCurrentContextSlot), U8(4), | 153 B(LdaImmutableCurrentContextSlot), U8(4), |
| 154 B(Star), R(7), | 154 B(Star), R(7), |
| 155 B(Mov), R(closure), R(6), | 155 B(Mov), R(closure), R(6), |
| 156 /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(6), U8
(2), | 156 /* 11 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(6)
, U8(2), |
| 157 B(StaCurrentContextSlot), U8(5), | 157 B(StaCurrentContextSlot), U8(5), |
| 158 B(Star), R(6), | 158 B(Star), R(6), |
| 159 B(LdaImmutableCurrentContextSlot), U8(5), | 159 B(LdaImmutableCurrentContextSlot), U8(5), |
| 160 B(Star), R(7), | 160 B(Star), R(7), |
| 161 B(LdaZero), | 161 B(LdaZero), |
| 162 B(SuspendGenerator), R(7), U8(0), | 162 B(SuspendGenerator), R(7), U8(0), |
| 163 B(Ldar), R(6), | 163 B(Ldar), R(6), |
| 164 /* 25 S> */ B(Return), | 164 /* 25 S> */ B(Return), |
| 165 B(LdaSmi), I8(-2), | 165 B(LdaSmi), I8(-2), |
| 166 B(Star), R(1), | 166 B(Star), R(1), |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 B(Ldar), R(4), | 263 B(Ldar), R(4), |
| 264 /* 25 S> */ B(Return), | 264 /* 25 S> */ B(Return), |
| 265 B(Ldar), R(4), | 265 B(Ldar), R(4), |
| 266 B(ReThrow), | 266 B(ReThrow), |
| 267 B(LdaUndefined), | 267 B(LdaUndefined), |
| 268 /* 25 S> */ B(Return), | 268 /* 25 S> */ B(Return), |
| 269 ] | 269 ] |
| 270 constant pool: [ | 270 constant pool: [ |
| 271 ] | 271 ] |
| 272 handlers: [ | 272 handlers: [ |
| 273 [51, 224, 230], | 273 [51, 223, 229], |
| 274 ] | 274 ] |
| 275 | 275 |
| 276 --- | 276 --- |
| 277 snippet: " | 277 snippet: " |
| 278 function* f() { for (let x of [42]) yield x } | 278 function* f() { for (let x of [42]) yield x } |
| 279 f(); | 279 f(); |
| 280 " | 280 " |
| 281 frame size: 18 | 281 frame size: 18 |
| 282 parameter count: 1 | 282 parameter count: 1 |
| 283 bytecode array length: 751 | 283 bytecode array length: 750 |
| 284 bytecodes: [ | 284 bytecodes: [ |
| 285 B(Ldar), R(new_target), | 285 B(Ldar), R(new_target), |
| 286 B(JumpIfUndefined), U8(33), | 286 B(JumpIfUndefined), U8(33), |
| 287 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), | 287 B(CallRuntime), U16(Runtime::k_GeneratorGetContext), R(new_targe
t), U8(1), |
| 288 B(PushContext), R(4), | 288 B(PushContext), R(4), |
| 289 B(ResumeGenerator), R(new_target), | 289 B(ResumeGenerator), R(new_target), |
| 290 B(Star), R(3), | 290 B(Star), R(3), |
| 291 B(LdaZero), | 291 B(LdaZero), |
| 292 B(TestEqualStrictNoFeedback), R(3), | 292 B(TestEqualStrictNoFeedback), R(3), |
| 293 B(JumpIfTrue), U8(60), | 293 B(JumpIfTrue), U8(59), |
| 294 B(LdaSmi), I8(1), | 294 B(LdaSmi), I8(1), |
| 295 B(TestEqualStrictNoFeedback), R(3), | 295 B(TestEqualStrictNoFeedback), R(3), |
| 296 B(JumpIfTrue), U8(152), | 296 B(JumpIfTrue), U8(151), |
| 297 B(LdaSmi), I8(79), | 297 B(LdaSmi), I8(79), |
| 298 B(Star), R(5), | 298 B(Star), R(5), |
| 299 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), | 299 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), |
| 300 B(LdaSmi), I8(-2), | 300 B(LdaSmi), I8(-2), |
| 301 B(Star), R(3), | 301 B(Star), R(3), |
| 302 B(CreateFunctionContext), U8(9), | 302 B(CreateFunctionContext), U8(9), |
| 303 B(PushContext), R(0), | 303 B(PushContext), R(0), |
| 304 B(Ldar), R(this), | 304 B(Ldar), R(this), |
| 305 B(StaCurrentContextSlot), U8(4), | 305 B(StaCurrentContextSlot), U8(4), |
| 306 /* 11 E> */ B(StackCheck), | 306 /* 11 E> */ B(StackCheck), |
| 307 B(Mov), R(context), R(7), | 307 B(Mov), R(context), R(7), |
| 308 B(LdaImmutableCurrentContextSlot), U8(4), | 308 B(LdaImmutableCurrentContextSlot), U8(4), |
| 309 B(Star), R(9), | 309 B(Star), R(9), |
| 310 B(Mov), R(closure), R(8), | 310 B(Mov), R(closure), R(8), |
| 311 /* 11 E> */ B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(8), U8
(2), | 311 /* 11 E> */ B(InvokeIntrinsic), U8(Runtime::k_CreateJSGeneratorObject), R(8)
, U8(2), |
| 312 B(StaCurrentContextSlot), U8(5), | 312 B(StaCurrentContextSlot), U8(5), |
| 313 B(Star), R(8), | 313 B(Star), R(8), |
| 314 B(LdaImmutableCurrentContextSlot), U8(5), | 314 B(LdaImmutableCurrentContextSlot), U8(5), |
| 315 B(Star), R(9), | 315 B(Star), R(9), |
| 316 B(LdaZero), | 316 B(LdaZero), |
| 317 B(SuspendGenerator), R(9), U8(0), | 317 B(SuspendGenerator), R(9), U8(0), |
| 318 B(Ldar), R(8), | 318 B(Ldar), R(8), |
| 319 /* 44 S> */ B(Return), | 319 /* 44 S> */ B(Return), |
| 320 B(LdaSmi), I8(-2), | 320 B(LdaSmi), I8(-2), |
| 321 B(Star), R(3), | 321 B(Star), R(3), |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], | 612 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], |
| 613 FIXED_ARRAY_TYPE, | 613 FIXED_ARRAY_TYPE, |
| 614 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], | 614 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], |
| 615 FIXED_ARRAY_TYPE, | 615 FIXED_ARRAY_TYPE, |
| 616 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], | 616 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], |
| 617 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], | 617 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], |
| 618 FIXED_ARRAY_TYPE, | 618 FIXED_ARRAY_TYPE, |
| 619 Smi [563], | 619 Smi [563], |
| 620 ] | 620 ] |
| 621 handlers: [ | 621 handlers: [ |
| 622 [51, 675, 681], | 622 [51, 674, 680], |
| 623 [146, 437, 443], | 623 [145, 436, 442], |
| 624 [149, 393, 395], | 624 [148, 392, 394], |
| 625 [530, 546, 548], | 625 [529, 545, 547], |
| 626 ] | 626 ] |
| 627 | 627 |
| OLD | NEW |