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: 11 | 14 frame size: 11 |
15 parameter count: 1 | 15 parameter count: 1 |
16 bytecode array length: 174 | 16 bytecode array length: 173 |
17 bytecodes: [ | 17 bytecodes: [ |
18 B(Ldar), R(new_target), | 18 B(Ldar), R(new_target), |
19 B(JumpIfUndefined), U8(25), | 19 B(JumpIfUndefined), U8(25), |
20 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), | 20 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), 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(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), | 24 B(SwitchOnSmiNoFeedback), U8(0), U8(1), I8(0), |
25 B(LdaSmi), I8(79), | 25 B(LdaSmi), I8(79), |
26 B(Star), R(3), | 26 B(Star), R(3), |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 B(Star), R(3), | 78 B(Star), R(3), |
79 B(Jump), U8(8), | 79 B(Jump), U8(8), |
80 B(Star), R(4), | 80 B(Star), R(4), |
81 B(LdaSmi), I8(1), | 81 B(LdaSmi), I8(1), |
82 B(Star), R(3), | 82 B(Star), R(3), |
83 B(LdaTheHole), | 83 B(LdaTheHole), |
84 B(SetPendingMessage), | 84 B(SetPendingMessage), |
85 B(Star), R(5), | 85 B(Star), R(5), |
86 B(LdaImmutableCurrentContextSlot), U8(4), | 86 B(LdaImmutableCurrentContextSlot), U8(4), |
87 B(Star), R(6), | 87 B(Star), R(6), |
88 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(6), U8(1), | 88 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(6), U8(1), |
89 B(Ldar), R(5), | 89 B(Ldar), R(5), |
90 B(SetPendingMessage), | 90 B(SetPendingMessage), |
91 B(Ldar), R(3), | 91 B(Ldar), R(3), |
92 B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0), | 92 B(SwitchOnSmiNoFeedback), U8(1), U8(2), I8(0), |
93 B(Jump), U8(8), | 93 B(Jump), U8(8), |
94 B(Ldar), R(4), | 94 B(Ldar), R(4), |
95 /* 16 S> */ B(Return), | 95 /* 16 S> */ B(Return), |
96 B(Ldar), R(4), | 96 B(Ldar), R(4), |
97 B(ReThrow), | 97 B(ReThrow), |
98 B(LdaUndefined), | 98 B(LdaUndefined), |
99 /* 16 S> */ B(Return), | 99 /* 16 S> */ B(Return), |
100 ] | 100 ] |
101 constant pool: [ | 101 constant pool: [ |
102 Smi [52], | 102 Smi [52], |
103 Smi [6], | 103 Smi [6], |
104 Smi [9], | 104 Smi [9], |
105 ] | 105 ] |
106 handlers: [ | 106 handlers: [ |
107 [51, 130, 136], | 107 [51, 130, 136], |
108 ] | 108 ] |
109 | 109 |
110 --- | 110 --- |
111 snippet: " | 111 snippet: " |
112 function* f() { yield 42 } | 112 function* f() { yield 42 } |
113 f(); | 113 f(); |
114 " | 114 " |
115 frame size: 11 | 115 frame size: 11 |
116 parameter count: 1 | 116 parameter count: 1 |
117 bytecode array length: 246 | 117 bytecode array length: 245 |
118 bytecodes: [ | 118 bytecodes: [ |
119 B(Ldar), R(new_target), | 119 B(Ldar), R(new_target), |
120 B(JumpIfUndefined), U8(25), | 120 B(JumpIfUndefined), U8(25), |
121 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), | 121 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), |
122 B(PushContext), R(2), | 122 B(PushContext), R(2), |
123 B(ResumeGenerator), R(new_target), | 123 B(ResumeGenerator), R(new_target), |
124 B(Star), R(1), | 124 B(Star), R(1), |
125 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), | 125 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), |
126 B(LdaSmi), I8(79), | 126 B(LdaSmi), I8(79), |
127 B(Star), R(3), | 127 B(Star), R(3), |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 B(Star), R(3), | 213 B(Star), R(3), |
214 B(Jump), U8(8), | 214 B(Jump), U8(8), |
215 B(Star), R(4), | 215 B(Star), R(4), |
216 B(LdaSmi), I8(1), | 216 B(LdaSmi), I8(1), |
217 B(Star), R(3), | 217 B(Star), R(3), |
218 B(LdaTheHole), | 218 B(LdaTheHole), |
219 B(SetPendingMessage), | 219 B(SetPendingMessage), |
220 B(Star), R(5), | 220 B(Star), R(5), |
221 B(LdaImmutableCurrentContextSlot), U8(4), | 221 B(LdaImmutableCurrentContextSlot), U8(4), |
222 B(Star), R(6), | 222 B(Star), R(6), |
223 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(6), U8(1), | 223 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(6), U8(1), |
224 B(Ldar), R(5), | 224 B(Ldar), R(5), |
225 B(SetPendingMessage), | 225 B(SetPendingMessage), |
226 B(Ldar), R(3), | 226 B(Ldar), R(3), |
227 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), | 227 B(SwitchOnSmiNoFeedback), U8(2), U8(2), I8(0), |
228 B(Jump), U8(8), | 228 B(Jump), U8(8), |
229 B(Ldar), R(4), | 229 B(Ldar), R(4), |
230 /* 25 S> */ B(Return), | 230 /* 25 S> */ B(Return), |
231 B(Ldar), R(4), | 231 B(Ldar), R(4), |
232 B(ReThrow), | 232 B(ReThrow), |
233 B(LdaUndefined), | 233 B(LdaUndefined), |
234 /* 25 S> */ B(Return), | 234 /* 25 S> */ B(Return), |
235 ] | 235 ] |
236 constant pool: [ | 236 constant pool: [ |
237 Smi [52], | 237 Smi [52], |
238 Smi [124], | 238 Smi [124], |
239 Smi [6], | 239 Smi [6], |
240 Smi [9], | 240 Smi [9], |
241 ] | 241 ] |
242 handlers: [ | 242 handlers: [ |
243 [51, 202, 208], | 243 [51, 202, 208], |
244 ] | 244 ] |
245 | 245 |
246 --- | 246 --- |
247 snippet: " | 247 snippet: " |
248 function* f() { for (let x of [42]) yield x } | 248 function* f() { for (let x of [42]) yield x } |
249 f(); | 249 f(); |
250 " | 250 " |
251 frame size: 17 | 251 frame size: 17 |
252 parameter count: 1 | 252 parameter count: 1 |
253 bytecode array length: 692 | 253 bytecode array length: 691 |
254 bytecodes: [ | 254 bytecodes: [ |
255 B(Ldar), R(new_target), | 255 B(Ldar), R(new_target), |
256 B(JumpIfUndefined), U8(25), | 256 B(JumpIfUndefined), U8(25), |
257 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), | 257 B(InvokeIntrinsic), U8(Runtime::k_GeneratorGetContext), R(new_ta
rget), U8(1), |
258 B(PushContext), R(4), | 258 B(PushContext), R(4), |
259 B(ResumeGenerator), R(new_target), | 259 B(ResumeGenerator), R(new_target), |
260 B(Star), R(3), | 260 B(Star), R(3), |
261 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), | 261 B(SwitchOnSmiNoFeedback), U8(0), U8(2), I8(0), |
262 B(LdaSmi), I8(79), | 262 B(LdaSmi), I8(79), |
263 B(Star), R(5), | 263 B(Star), R(5), |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
520 B(Star), R(5), | 520 B(Star), R(5), |
521 B(Jump), U8(8), | 521 B(Jump), U8(8), |
522 B(Star), R(6), | 522 B(Star), R(6), |
523 B(LdaSmi), I8(1), | 523 B(LdaSmi), I8(1), |
524 B(Star), R(5), | 524 B(Star), R(5), |
525 B(LdaTheHole), | 525 B(LdaTheHole), |
526 B(SetPendingMessage), | 526 B(SetPendingMessage), |
527 B(Star), R(7), | 527 B(Star), R(7), |
528 B(LdaImmutableCurrentContextSlot), U8(4), | 528 B(LdaImmutableCurrentContextSlot), U8(4), |
529 B(Star), R(8), | 529 B(Star), R(8), |
530 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(8), U8(1), | 530 B(InvokeIntrinsic), U8(Runtime::k_GeneratorClose), R(8), U8(1), |
531 B(Ldar), R(7), | 531 B(Ldar), R(7), |
532 B(SetPendingMessage), | 532 B(SetPendingMessage), |
533 B(Ldar), R(5), | 533 B(Ldar), R(5), |
534 B(SwitchOnSmiNoFeedback), U8(18), U8(2), I8(0), | 534 B(SwitchOnSmiNoFeedback), U8(18), U8(2), I8(0), |
535 B(Jump), U8(8), | 535 B(Jump), U8(8), |
536 B(Ldar), R(6), | 536 B(Ldar), R(6), |
537 /* 44 S> */ B(Return), | 537 /* 44 S> */ B(Return), |
538 B(Ldar), R(6), | 538 B(Ldar), R(6), |
539 B(ReThrow), | 539 B(ReThrow), |
540 B(LdaUndefined), | 540 B(LdaUndefined), |
(...skipping 21 matching lines...) Expand all Loading... |
562 Smi [6], | 562 Smi [6], |
563 Smi [9], | 563 Smi [9], |
564 ] | 564 ] |
565 handlers: [ | 565 handlers: [ |
566 [51, 648, 654], | 566 [51, 648, 654], |
567 [130, 417, 423], | 567 [130, 417, 423], |
568 [133, 373, 375], | 568 [133, 373, 375], |
569 [510, 526, 528], | 569 [510, 526, 528], |
570 ] | 570 ] |
571 | 571 |
OLD | NEW |