OLD | NEW |
1 # | 1 # |
2 # Autogenerated by generate-bytecode-expectations. | 2 # Autogenerated by generate-bytecode-expectations. |
3 # | 3 # |
4 | 4 |
5 --- | 5 --- |
6 pool type: mixed | 6 pool type: mixed |
7 execute: yes | 7 execute: yes |
8 wrap: no | 8 wrap: no |
9 test function name: f | 9 test function name: f |
10 ignition generators: yes | 10 ignition generators: yes |
11 | 11 |
12 --- | 12 --- |
13 snippet: " | 13 snippet: " |
14 function* f() { } | 14 function* f() { } |
15 " | 15 " |
16 frame size: 11 | 16 frame size: 11 |
17 parameter count: 1 | 17 parameter count: 1 |
18 bytecode array length: 197 | 18 bytecode array length: 195 |
19 bytecodes: [ | 19 bytecodes: [ |
20 B(Ldar), R(new_target), | 20 B(Ldar), R(new_target), |
21 B(JumpIfUndefined), U8(12), | 21 B(JumpIfUndefined), U8(12), |
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(TestEqualStrict), R(1), | 25 B(TestEqualStrict), R(1), |
26 B(JumpIfTrue), U8(49), | 26 B(JumpIfTrue), U8(49), |
27 B(Illegal), | 27 B(Illegal), |
28 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 28 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
(...skipping 28 matching lines...) Expand all Loading... |
57 B(TestEqualStrict), R(8), | 57 B(TestEqualStrict), R(8), |
58 B(JumpIfTrue), U8(22), | 58 B(JumpIfTrue), U8(22), |
59 B(Jump), U8(2), | 59 B(Jump), U8(2), |
60 B(Mov), R(7), R(9), | 60 B(Mov), R(7), R(9), |
61 B(LdaTrue), | 61 B(LdaTrue), |
62 B(Star), R(10), | 62 B(Star), R(10), |
63 B(CallRuntime), U16(Runtime::kCreateIterResultObject), R(9), U8(2), | 63 B(CallRuntime), U16(Runtime::kCreateIterResultObject), R(9), U8(2), |
64 B(Star), R(3), | 64 B(Star), R(3), |
65 B(LdaZero), | 65 B(LdaZero), |
66 B(Star), R(2), | 66 B(Star), R(2), |
67 B(Jump), U8(38), | 67 B(Jump), U8(36), |
68 B(Ldar), R(7), | 68 B(Ldar), R(7), |
69 B(Throw), | 69 B(Throw), |
70 B(Ldar), R(7), | |
71 B(LdaUndefined), | 70 B(LdaUndefined), |
72 B(Star), R(5), | 71 B(Star), R(5), |
73 B(LdaTrue), | 72 B(LdaTrue), |
74 B(Star), R(6), | 73 B(Star), R(6), |
75 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8(2), | 74 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8(2), |
76 B(Star), R(3), | 75 B(Star), R(3), |
77 B(LdaSmi), U8(1), | 76 B(LdaSmi), U8(1), |
78 B(Star), R(2), | 77 B(Star), R(2), |
79 B(Jump), U8(14), | 78 B(Jump), U8(14), |
80 B(LdaSmi), U8(-1), | 79 B(LdaSmi), U8(-1), |
(...skipping 23 matching lines...) Expand all Loading... |
104 B(Ldar), R(3), | 103 B(Ldar), R(3), |
105 B(Return), | 104 B(Return), |
106 B(Ldar), R(3), | 105 B(Ldar), R(3), |
107 B(ReThrow), | 106 B(ReThrow), |
108 B(LdaUndefined), | 107 B(LdaUndefined), |
109 B(Return), | 108 B(Return), |
110 ] | 109 ] |
111 constant pool: [ | 110 constant pool: [ |
112 ] | 111 ] |
113 handlers: [ | 112 handlers: [ |
114 [30, 133, 139], | 113 [30, 131, 137], |
115 ] | 114 ] |
116 | 115 |
117 --- | 116 --- |
118 snippet: " | 117 snippet: " |
119 function* f() { yield 42 } | 118 function* f() { yield 42 } |
120 " | 119 " |
121 frame size: 11 | 120 frame size: 11 |
122 parameter count: 1 | 121 parameter count: 1 |
123 bytecode array length: 293 | 122 bytecode array length: 289 |
124 bytecodes: [ | 123 bytecodes: [ |
125 B(Ldar), R(new_target), | 124 B(Ldar), R(new_target), |
126 B(JumpIfUndefined), U8(18), | 125 B(JumpIfUndefined), U8(18), |
127 B(ResumeGenerator), R(new_target), | 126 B(ResumeGenerator), R(new_target), |
128 B(Star), R(1), | 127 B(Star), R(1), |
129 B(LdaZero), | 128 B(LdaZero), |
130 B(TestEqualStrict), R(1), | 129 B(TestEqualStrict), R(1), |
131 B(JumpIfTrue), U8(55), | 130 B(JumpIfTrue), U8(55), |
132 B(LdaSmi), U8(1), | 131 B(LdaSmi), U8(1), |
133 B(TestEqualStrict), R(1), | 132 B(TestEqualStrict), R(1), |
134 B(JumpIfTrueConstant), U8(0), | 133 B(JumpIfTrue), U8(127), |
135 B(Illegal), | 134 B(Illegal), |
136 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), | 135 B(CallRuntime), U16(Runtime::kNewFunctionContext), R(closure), U8(1), |
137 B(PushContext), R(0), | 136 B(PushContext), R(0), |
138 B(Ldar), R(this), | 137 B(Ldar), R(this), |
139 B(StaContextSlot), R(context), U8(4), | 138 B(StaContextSlot), R(context), U8(4), |
140 B(StackCheck), | 139 B(StackCheck), |
141 B(Mov), R(context), R(4), | 140 B(Mov), R(context), R(4), |
142 B(Ldar), R(closure), | 141 B(Ldar), R(closure), |
143 B(Star), R(5), | 142 B(Star), R(5), |
144 B(LdaContextSlot), R(context), U8(4), | 143 B(LdaContextSlot), R(context), U8(4), |
(...skipping 20 matching lines...) Expand all Loading... |
165 B(TestEqualStrict), R(8), | 164 B(TestEqualStrict), R(8), |
166 B(JumpIfTrue), U8(22), | 165 B(JumpIfTrue), U8(22), |
167 B(Jump), U8(2), | 166 B(Jump), U8(2), |
168 B(Mov), R(7), R(9), | 167 B(Mov), R(7), R(9), |
169 B(LdaTrue), | 168 B(LdaTrue), |
170 B(Star), R(10), | 169 B(Star), R(10), |
171 B(CallRuntime), U16(Runtime::kCreateIterResultObject), R(9), U8(2), | 170 B(CallRuntime), U16(Runtime::kCreateIterResultObject), R(9), U8(2), |
172 B(Star), R(3), | 171 B(Star), R(3), |
173 B(LdaZero), | 172 B(LdaZero), |
174 B(Star), R(2), | 173 B(Star), R(2), |
175 B(Jump), U8(119), | 174 B(Jump), U8(115), |
176 B(Ldar), R(7), | 175 B(Ldar), R(7), |
177 B(Throw), | 176 B(Throw), |
178 B(Ldar), R(7), | |
179 B(LdaSmi), U8(42), | 177 B(LdaSmi), U8(42), |
180 B(Star), R(5), | 178 B(Star), R(5), |
181 B(LdaFalse), | 179 B(LdaFalse), |
182 B(Star), R(6), | 180 B(Star), R(6), |
183 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8(2), | 181 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8(2), |
184 B(Star), R(7), | 182 B(Star), R(7), |
185 B(LdaContextSlot), R(context), U8(5), | 183 B(LdaContextSlot), R(context), U8(5), |
186 B(Star), R(5), | 184 B(Star), R(5), |
187 B(LdaSmi), U8(1), | 185 B(LdaSmi), U8(1), |
188 B(SuspendGenerator), R(5), | 186 B(SuspendGenerator), R(5), |
(...skipping 12 matching lines...) Expand all Loading... |
201 B(TestEqualStrict), R(8), | 199 B(TestEqualStrict), R(8), |
202 B(JumpIfTrue), U8(23), | 200 B(JumpIfTrue), U8(23), |
203 B(Jump), U8(2), | 201 B(Jump), U8(2), |
204 B(Mov), R(6), R(9), | 202 B(Mov), R(6), R(9), |
205 B(LdaTrue), | 203 B(LdaTrue), |
206 B(Star), R(10), | 204 B(Star), R(10), |
207 B(CallRuntime), U16(Runtime::kCreateIterResultObject), R(9), U8(2), | 205 B(CallRuntime), U16(Runtime::kCreateIterResultObject), R(9), U8(2), |
208 B(Star), R(3), | 206 B(Star), R(3), |
209 B(LdaSmi), U8(1), | 207 B(LdaSmi), U8(1), |
210 B(Star), R(2), | 208 B(Star), R(2), |
211 B(Jump), U8(38), | 209 B(Jump), U8(36), |
212 B(Ldar), R(6), | 210 B(Ldar), R(6), |
213 B(Throw), | 211 B(Throw), |
214 B(Ldar), R(6), | |
215 B(LdaUndefined), | 212 B(LdaUndefined), |
216 B(Star), R(5), | 213 B(Star), R(5), |
217 B(LdaTrue), | 214 B(LdaTrue), |
218 B(Star), R(6), | 215 B(Star), R(6), |
219 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8(2), | 216 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8(2), |
220 B(Star), R(3), | 217 B(Star), R(3), |
221 B(LdaSmi), U8(2), | 218 B(LdaSmi), U8(2), |
222 B(Star), R(2), | 219 B(Star), R(2), |
223 B(Jump), U8(14), | 220 B(Jump), U8(14), |
224 B(LdaSmi), U8(-1), | 221 B(LdaSmi), U8(-1), |
(...skipping 26 matching lines...) Expand all Loading... |
251 B(Ldar), R(3), | 248 B(Ldar), R(3), |
252 B(Return), | 249 B(Return), |
253 B(Ldar), R(3), | 250 B(Ldar), R(3), |
254 B(Return), | 251 B(Return), |
255 B(Ldar), R(3), | 252 B(Ldar), R(3), |
256 B(ReThrow), | 253 B(ReThrow), |
257 B(LdaUndefined), | 254 B(LdaUndefined), |
258 B(Return), | 255 B(Return), |
259 ] | 256 ] |
260 constant pool: [ | 257 constant pool: [ |
261 kInstanceTypeDontCare, | |
262 ] | 258 ] |
263 handlers: [ | 259 handlers: [ |
264 [36, 220, 226], | 260 [36, 216, 222], |
265 ] | 261 ] |
266 | 262 |
267 --- | 263 --- |
268 snippet: " | 264 snippet: " |
269 function* f() { for (let x of [42]) yield x } | 265 function* f() { for (let x of [42]) yield x } |
270 " | 266 " |
271 frame size: 17 | 267 frame size: 17 |
272 parameter count: 1 | 268 parameter count: 1 |
273 bytecode array length: 794 | 269 bytecode array length: 792 |
274 bytecodes: [ | 270 bytecodes: [ |
275 B(Ldar), R(new_target), | 271 B(Ldar), R(new_target), |
276 B(JumpIfUndefined), U8(18), | 272 B(JumpIfUndefined), U8(18), |
277 B(ResumeGenerator), R(new_target), | 273 B(ResumeGenerator), R(new_target), |
278 B(Star), R(3), | 274 B(Star), R(3), |
279 B(LdaZero), | 275 B(LdaZero), |
280 B(TestEqualStrict), R(3), | 276 B(TestEqualStrict), R(3), |
281 B(JumpIfTrue), U8(55), | 277 B(JumpIfTrue), U8(55), |
282 B(LdaSmi), U8(1), | 278 B(LdaSmi), U8(1), |
283 B(TestEqualStrict), R(3), | 279 B(TestEqualStrict), R(3), |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 B(Mov), R(9), R(11), | 314 B(Mov), R(9), R(11), |
319 B(LdaTrue), | 315 B(LdaTrue), |
320 B(Star), R(12), | 316 B(Star), R(12), |
321 B(CallRuntime), U16(Runtime::kCreateIterResultObject), R(11), U8(2), | 317 B(CallRuntime), U16(Runtime::kCreateIterResultObject), R(11), U8(2), |
322 B(Star), R(5), | 318 B(Star), R(5), |
323 B(LdaZero), | 319 B(LdaZero), |
324 B(Star), R(4), | 320 B(Star), R(4), |
325 B(JumpConstant), U8(17), | 321 B(JumpConstant), U8(17), |
326 B(Ldar), R(9), | 322 B(Ldar), R(9), |
327 B(Throw), | 323 B(Throw), |
328 B(Ldar), R(9), | |
329 B(LdaConstant), U8(0), | 324 B(LdaConstant), U8(0), |
330 B(Star), R(7), | 325 B(Star), R(7), |
331 B(Ldar), R(closure), | 326 B(Ldar), R(closure), |
332 B(Star), R(8), | 327 B(Star), R(8), |
333 B(CallRuntime), U16(Runtime::kPushBlockContext), R(7), U8(2), | 328 B(CallRuntime), U16(Runtime::kPushBlockContext), R(7), U8(2), |
334 B(PushContext), R(1), | 329 B(PushContext), R(1), |
335 B(LdaTheHole), | 330 B(LdaTheHole), |
336 B(StaContextSlot), R(context), U8(4), | 331 B(StaContextSlot), R(context), U8(4), |
337 B(LdaUndefined), | 332 B(LdaUndefined), |
338 B(StaContextSlot), R(1), U8(10), | 333 B(StaContextSlot), R(1), U8(10), |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 kInstanceTypeDontCare, | 622 kInstanceTypeDontCare, |
628 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 623 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
629 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 624 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
630 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 625 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
631 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, | 626 InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE, |
632 kInstanceTypeDontCare, | 627 kInstanceTypeDontCare, |
633 kInstanceTypeDontCare, | 628 kInstanceTypeDontCare, |
634 kInstanceTypeDontCare, | 629 kInstanceTypeDontCare, |
635 ] | 630 ] |
636 handlers: [ | 631 handlers: [ |
637 [36, 712, 718], | 632 [36, 710, 716], |
638 [150, 448, 454], | 633 [148, 446, 452], |
639 [153, 399, 401], | 634 [151, 397, 399], |
640 [556, 571, 573], | 635 [554, 569, 571], |
641 ] | 636 ] |
642 | 637 |
OLD | NEW |