Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: test/cctest/interpreter/bytecode_expectations/Modules.golden

Issue 2619163004: [stubs] Add CreateIterResultObject stub (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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: 8
15 parameter count: 2 15 parameter count: 2
16 bytecode array length: 125 16 bytecode array length: 124
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(21),
20 B(ResumeGenerator), R(new_target), 20 B(ResumeGenerator), R(new_target),
21 B(Star), R(1), 21 B(Star), R(1),
22 B(LdaZero), 22 B(LdaZero),
23 B(TestEqualStrict), R(1), U8(0), 23 B(TestEqualStrict), R(1), U8(0),
24 B(JumpIfTrue), U8(63), 24 B(JumpIfTrue), U8(63),
25 B(LdaSmi), U8(78), 25 B(LdaSmi), U8(78),
26 B(Star), R(2), 26 B(Star), R(2),
(...skipping 22 matching lines...) Expand all
49 B(Ldar), R(2), 49 B(Ldar), R(2),
50 /* 13 S> */ B(Return), 50 /* 13 S> */ B(Return),
51 B(LdaSmi), U8(-2), 51 B(LdaSmi), U8(-2),
52 B(Star), R(1), 52 B(Star), R(1),
53 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 53 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
54 B(Star), R(4), 54 B(Star), R(4),
55 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 55 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
56 B(Star), R(5), 56 B(Star), R(5),
57 B(LdaZero), 57 B(LdaZero),
58 B(TestEqualStrict), R(5), U8(0), 58 B(TestEqualStrict), R(5), U8(0),
59 B(JumpIfTrue), U8(26), 59 B(JumpIfTrue), U8(25),
60 B(LdaSmi), U8(2), 60 B(LdaSmi), U8(2),
61 B(TestEqualStrict), R(5), U8(0), 61 B(TestEqualStrict), R(5), U8(0),
62 B(JumpIfTrue), U8(16), 62 B(JumpIfTrue), U8(15),
63 B(Jump), U8(2), 63 B(Jump), U8(2),
64 B(LdaTrue), 64 B(LdaTrue),
65 B(Star), R(7), 65 B(Star), R(7),
66 B(Mov), R(4), R(6), 66 B(Mov), R(4), R(6),
67 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8 (2), 67 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
68 /* 13 S> */ B(Return), 68 /* 13 S> */ B(Return),
69 B(Ldar), R(4), 69 B(Ldar), R(4),
70 /* 0 E> */ B(Throw), 70 /* 0 E> */ B(Throw),
71 B(LdaUndefined), 71 B(LdaUndefined),
72 /* 13 S> */ B(Return), 72 /* 13 S> */ B(Return),
73 ] 73 ]
74 constant pool: [ 74 constant pool: [
75 FIXED_ARRAY_TYPE, 75 FIXED_ARRAY_TYPE,
76 ] 76 ]
77 handlers: [ 77 handlers: [
78 ] 78 ]
79 79
80 --- 80 ---
81 snippet: " 81 snippet: "
82 import {foo} from \"bar\"; 82 import {foo} from \"bar\";
83 " 83 "
84 frame size: 8 84 frame size: 8
85 parameter count: 2 85 parameter count: 2
86 bytecode array length: 125 86 bytecode array length: 124
87 bytecodes: [ 87 bytecodes: [
88 B(Ldar), R(new_target), 88 B(Ldar), R(new_target),
89 B(JumpIfUndefined), U8(21), 89 B(JumpIfUndefined), U8(21),
90 B(ResumeGenerator), R(new_target), 90 B(ResumeGenerator), R(new_target),
91 B(Star), R(1), 91 B(Star), R(1),
92 B(LdaZero), 92 B(LdaZero),
93 B(TestEqualStrict), R(1), U8(0), 93 B(TestEqualStrict), R(1), U8(0),
94 B(JumpIfTrue), U8(63), 94 B(JumpIfTrue), U8(63),
95 B(LdaSmi), U8(78), 95 B(LdaSmi), U8(78),
96 B(Star), R(2), 96 B(Star), R(2),
(...skipping 22 matching lines...) Expand all
119 B(Ldar), R(2), 119 B(Ldar), R(2),
120 /* 24 S> */ B(Return), 120 /* 24 S> */ B(Return),
121 B(LdaSmi), U8(-2), 121 B(LdaSmi), U8(-2),
122 B(Star), R(1), 122 B(Star), R(1),
123 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 123 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
124 B(Star), R(4), 124 B(Star), R(4),
125 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 125 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
126 B(Star), R(5), 126 B(Star), R(5),
127 B(LdaZero), 127 B(LdaZero),
128 B(TestEqualStrict), R(5), U8(0), 128 B(TestEqualStrict), R(5), U8(0),
129 B(JumpIfTrue), U8(26), 129 B(JumpIfTrue), U8(25),
130 B(LdaSmi), U8(2), 130 B(LdaSmi), U8(2),
131 B(TestEqualStrict), R(5), U8(0), 131 B(TestEqualStrict), R(5), U8(0),
132 B(JumpIfTrue), U8(16), 132 B(JumpIfTrue), U8(15),
133 B(Jump), U8(2), 133 B(Jump), U8(2),
134 B(LdaTrue), 134 B(LdaTrue),
135 B(Star), R(7), 135 B(Star), R(7),
136 B(Mov), R(4), R(6), 136 B(Mov), R(4), R(6),
137 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8 (2), 137 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
138 /* 24 S> */ B(Return), 138 /* 24 S> */ B(Return),
139 B(Ldar), R(4), 139 B(Ldar), R(4),
140 /* 0 E> */ B(Throw), 140 /* 0 E> */ B(Throw),
141 B(LdaUndefined), 141 B(LdaUndefined),
142 /* 24 S> */ B(Return), 142 /* 24 S> */ B(Return),
143 ] 143 ]
144 constant pool: [ 144 constant pool: [
145 FIXED_ARRAY_TYPE, 145 FIXED_ARRAY_TYPE,
146 ] 146 ]
147 handlers: [ 147 handlers: [
148 ] 148 ]
149 149
150 --- 150 ---
151 snippet: " 151 snippet: "
152 import {foo as goo} from \"bar\"; 152 import {foo as goo} from \"bar\";
153 goo(42); 153 goo(42);
154 { let x; { goo(42) } }; 154 { let x; { goo(42) } };
155 " 155 "
156 frame size: 9 156 frame size: 9
157 parameter count: 2 157 parameter count: 2
158 bytecode array length: 195 158 bytecode array length: 194
159 bytecodes: [ 159 bytecodes: [
160 B(Ldar), R(new_target), 160 B(Ldar), R(new_target),
161 B(JumpIfUndefined), U8(21), 161 B(JumpIfUndefined), U8(21),
162 B(ResumeGenerator), R(new_target), 162 B(ResumeGenerator), R(new_target),
163 B(Star), R(2), 163 B(Star), R(2),
164 B(LdaZero), 164 B(LdaZero),
165 B(TestEqualStrict), R(2), U8(0), 165 B(TestEqualStrict), R(2), U8(0),
166 B(JumpIfTrue), U8(63), 166 B(JumpIfTrue), U8(63),
167 B(LdaSmi), U8(78), 167 B(LdaSmi), U8(78),
168 B(Star), R(3), 168 B(Star), R(3),
(...skipping 22 matching lines...) Expand all
191 B(Ldar), R(3), 191 B(Ldar), R(3),
192 /* 64 S> */ B(Return), 192 /* 64 S> */ B(Return),
193 B(LdaSmi), U8(-2), 193 B(LdaSmi), U8(-2),
194 B(Star), R(2), 194 B(Star), R(2),
195 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 195 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
196 B(Star), R(5), 196 B(Star), R(5),
197 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 197 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
198 B(Star), R(6), 198 B(Star), R(6),
199 B(LdaZero), 199 B(LdaZero),
200 B(TestEqualStrict), R(6), U8(0), 200 B(TestEqualStrict), R(6), U8(0),
201 B(JumpIfTrue), U8(26), 201 B(JumpIfTrue), U8(25),
202 B(LdaSmi), U8(2), 202 B(LdaSmi), U8(2),
203 B(TestEqualStrict), R(6), U8(0), 203 B(TestEqualStrict), R(6), U8(0),
204 B(JumpIfTrue), U8(16), 204 B(JumpIfTrue), U8(15),
205 B(Jump), U8(2), 205 B(Jump), U8(2),
206 B(LdaTrue), 206 B(LdaTrue),
207 B(Star), R(8), 207 B(Star), R(8),
208 B(Mov), R(5), R(7), 208 B(Mov), R(5), R(7),
209 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8 (2), 209 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
210 /* 64 S> */ B(Return), 210 /* 64 S> */ B(Return),
211 B(Ldar), R(5), 211 B(Ldar), R(5),
212 /* 0 E> */ B(Throw), 212 /* 0 E> */ B(Throw),
213 /* 32 S> */ B(LdaUndefined), 213 /* 32 S> */ B(LdaUndefined),
214 B(Star), R(4), 214 B(Star), R(4),
215 /* 32 E> */ B(LdaModuleVariable), U8(-1), U8(0), 215 /* 32 E> */ B(LdaModuleVariable), U8(-1), U8(0),
216 B(JumpIfNotHole), U8(11), 216 B(JumpIfNotHole), U8(11),
217 B(LdaConstant), U8(1), 217 B(LdaConstant), U8(1),
218 B(Star), R(5), 218 B(Star), R(5),
219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1), 219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(5), U8(1),
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 ] 252 ]
253 253
254 --- 254 ---
255 snippet: " 255 snippet: "
256 export var foo = 42; 256 export var foo = 42;
257 foo++; 257 foo++;
258 { let x; { foo++ } }; 258 { let x; { foo++ } };
259 " 259 "
260 frame size: 9 260 frame size: 9
261 parameter count: 2 261 parameter count: 2
262 bytecode array length: 160 262 bytecode array length: 159
263 bytecodes: [ 263 bytecodes: [
264 B(Ldar), R(new_target), 264 B(Ldar), R(new_target),
265 B(JumpIfUndefined), U8(21), 265 B(JumpIfUndefined), U8(21),
266 B(ResumeGenerator), R(new_target), 266 B(ResumeGenerator), R(new_target),
267 B(Star), R(2), 267 B(Star), R(2),
268 B(LdaZero), 268 B(LdaZero),
269 B(TestEqualStrict), R(2), U8(0), 269 B(TestEqualStrict), R(2), U8(0),
270 B(JumpIfTrue), U8(63), 270 B(JumpIfTrue), U8(63),
271 B(LdaSmi), U8(78), 271 B(LdaSmi), U8(78),
272 B(Star), R(3), 272 B(Star), R(3),
(...skipping 22 matching lines...) Expand all
295 B(Ldar), R(3), 295 B(Ldar), R(3),
296 /* 49 S> */ B(Return), 296 /* 49 S> */ B(Return),
297 B(LdaSmi), U8(-2), 297 B(LdaSmi), U8(-2),
298 B(Star), R(2), 298 B(Star), R(2),
299 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 299 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
300 B(Star), R(5), 300 B(Star), R(5),
301 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 301 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
302 B(Star), R(6), 302 B(Star), R(6),
303 B(LdaZero), 303 B(LdaZero),
304 B(TestEqualStrict), R(6), U8(0), 304 B(TestEqualStrict), R(6), U8(0),
305 B(JumpIfTrue), U8(26), 305 B(JumpIfTrue), U8(25),
306 B(LdaSmi), U8(2), 306 B(LdaSmi), U8(2),
307 B(TestEqualStrict), R(6), U8(0), 307 B(TestEqualStrict), R(6), U8(0),
308 B(JumpIfTrue), U8(16), 308 B(JumpIfTrue), U8(15),
309 B(Jump), U8(2), 309 B(Jump), U8(2),
310 B(LdaTrue), 310 B(LdaTrue),
311 B(Star), R(8), 311 B(Star), R(8),
312 B(Mov), R(5), R(7), 312 B(Mov), R(5), R(7),
313 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8 (2), 313 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
314 /* 49 S> */ B(Return), 314 /* 49 S> */ B(Return),
315 B(Ldar), R(5), 315 B(Ldar), R(5),
316 /* 0 E> */ B(Throw), 316 /* 0 E> */ B(Throw),
317 /* 17 S> */ B(LdaSmi), U8(42), 317 /* 17 S> */ B(LdaSmi), U8(42),
318 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0), 318 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0),
319 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0), 319 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0),
320 B(Inc), U8(2), 320 B(Inc), U8(2),
321 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0), 321 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0),
322 B(Ldar), R(closure), 322 B(Ldar), R(closure),
323 B(CreateBlockContext), U8(1), 323 B(CreateBlockContext), U8(1),
(...skipping 17 matching lines...) Expand all
341 ] 341 ]
342 342
343 --- 343 ---
344 snippet: " 344 snippet: "
345 export let foo = 42; 345 export let foo = 42;
346 foo++; 346 foo++;
347 { let x; { foo++ } }; 347 { let x; { foo++ } };
348 " 348 "
349 frame size: 9 349 frame size: 9
350 parameter count: 2 350 parameter count: 2
351 bytecode array length: 164 351 bytecode array length: 163
352 bytecodes: [ 352 bytecodes: [
353 B(Ldar), R(new_target), 353 B(Ldar), R(new_target),
354 B(JumpIfUndefined), U8(21), 354 B(JumpIfUndefined), U8(21),
355 B(ResumeGenerator), R(new_target), 355 B(ResumeGenerator), R(new_target),
356 B(Star), R(2), 356 B(Star), R(2),
357 B(LdaZero), 357 B(LdaZero),
358 B(TestEqualStrict), R(2), U8(0), 358 B(TestEqualStrict), R(2), U8(0),
359 B(JumpIfTrue), U8(67), 359 B(JumpIfTrue), U8(67),
360 B(LdaSmi), U8(78), 360 B(LdaSmi), U8(78),
361 B(Star), R(3), 361 B(Star), R(3),
(...skipping 24 matching lines...) Expand all
386 B(Ldar), R(3), 386 B(Ldar), R(3),
387 /* 49 S> */ B(Return), 387 /* 49 S> */ B(Return),
388 B(LdaSmi), U8(-2), 388 B(LdaSmi), U8(-2),
389 B(Star), R(2), 389 B(Star), R(2),
390 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 390 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
391 B(Star), R(5), 391 B(Star), R(5),
392 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 392 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
393 B(Star), R(6), 393 B(Star), R(6),
394 B(LdaZero), 394 B(LdaZero),
395 B(TestEqualStrict), R(6), U8(0), 395 B(TestEqualStrict), R(6), U8(0),
396 B(JumpIfTrue), U8(26), 396 B(JumpIfTrue), U8(25),
397 B(LdaSmi), U8(2), 397 B(LdaSmi), U8(2),
398 B(TestEqualStrict), R(6), U8(0), 398 B(TestEqualStrict), R(6), U8(0),
399 B(JumpIfTrue), U8(16), 399 B(JumpIfTrue), U8(15),
400 B(Jump), U8(2), 400 B(Jump), U8(2),
401 B(LdaTrue), 401 B(LdaTrue),
402 B(Star), R(8), 402 B(Star), R(8),
403 B(Mov), R(5), R(7), 403 B(Mov), R(5), R(7),
404 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8 (2), 404 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
405 /* 49 S> */ B(Return), 405 /* 49 S> */ B(Return),
406 B(Ldar), R(5), 406 B(Ldar), R(5),
407 /* 0 E> */ B(Throw), 407 /* 0 E> */ B(Throw),
408 /* 17 S> */ B(LdaSmi), U8(42), 408 /* 17 S> */ B(LdaSmi), U8(42),
409 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0), 409 /* 17 E> */ B(StaModuleVariable), U8(1), U8(0),
410 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0), 410 /* 21 S> */ B(LdaModuleVariable), U8(1), U8(0),
411 B(Inc), U8(2), 411 B(Inc), U8(2),
412 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0), 412 /* 24 E> */ B(StaModuleVariable), U8(1), U8(0),
413 B(Ldar), R(closure), 413 B(Ldar), R(closure),
414 B(CreateBlockContext), U8(1), 414 B(CreateBlockContext), U8(1),
(...skipping 17 matching lines...) Expand all
432 ] 432 ]
433 433
434 --- 434 ---
435 snippet: " 435 snippet: "
436 export const foo = 42; 436 export const foo = 42;
437 foo++; 437 foo++;
438 { let x; { foo++ } }; 438 { let x; { foo++ } };
439 " 439 "
440 frame size: 9 440 frame size: 9
441 parameter count: 2 441 parameter count: 2
442 bytecode array length: 168 442 bytecode array length: 167
443 bytecodes: [ 443 bytecodes: [
444 B(Ldar), R(new_target), 444 B(Ldar), R(new_target),
445 B(JumpIfUndefined), U8(21), 445 B(JumpIfUndefined), U8(21),
446 B(ResumeGenerator), R(new_target), 446 B(ResumeGenerator), R(new_target),
447 B(Star), R(2), 447 B(Star), R(2),
448 B(LdaZero), 448 B(LdaZero),
449 B(TestEqualStrict), R(2), U8(0), 449 B(TestEqualStrict), R(2), U8(0),
450 B(JumpIfTrue), U8(67), 450 B(JumpIfTrue), U8(67),
451 B(LdaSmi), U8(78), 451 B(LdaSmi), U8(78),
452 B(Star), R(3), 452 B(Star), R(3),
(...skipping 24 matching lines...) Expand all
477 B(Ldar), R(3), 477 B(Ldar), R(3),
478 /* 51 S> */ B(Return), 478 /* 51 S> */ B(Return),
479 B(LdaSmi), U8(-2), 479 B(LdaSmi), U8(-2),
480 B(Star), R(2), 480 B(Star), R(2),
481 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 481 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
482 B(Star), R(5), 482 B(Star), R(5),
483 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 483 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
484 B(Star), R(6), 484 B(Star), R(6),
485 B(LdaZero), 485 B(LdaZero),
486 B(TestEqualStrict), R(6), U8(0), 486 B(TestEqualStrict), R(6), U8(0),
487 B(JumpIfTrue), U8(26), 487 B(JumpIfTrue), U8(25),
488 B(LdaSmi), U8(2), 488 B(LdaSmi), U8(2),
489 B(TestEqualStrict), R(6), U8(0), 489 B(TestEqualStrict), R(6), U8(0),
490 B(JumpIfTrue), U8(16), 490 B(JumpIfTrue), U8(15),
491 B(Jump), U8(2), 491 B(Jump), U8(2),
492 B(LdaTrue), 492 B(LdaTrue),
493 B(Star), R(8), 493 B(Star), R(8),
494 B(Mov), R(5), R(7), 494 B(Mov), R(5), R(7),
495 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(7), U8 (2), 495 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(7), U8(2),
496 /* 51 S> */ B(Return), 496 /* 51 S> */ B(Return),
497 B(Ldar), R(5), 497 B(Ldar), R(5),
498 /* 0 E> */ B(Throw), 498 /* 0 E> */ B(Throw),
499 /* 19 S> */ B(LdaSmi), U8(42), 499 /* 19 S> */ B(LdaSmi), U8(42),
500 /* 19 E> */ B(StaModuleVariable), U8(1), U8(0), 500 /* 19 E> */ B(StaModuleVariable), U8(1), U8(0),
501 /* 23 S> */ B(LdaModuleVariable), U8(1), U8(0), 501 /* 23 S> */ B(LdaModuleVariable), U8(1), U8(0),
502 B(Inc), U8(2), 502 B(Inc), U8(2),
503 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 503 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
504 B(Ldar), R(closure), 504 B(Ldar), R(closure),
505 B(CreateBlockContext), U8(1), 505 B(CreateBlockContext), U8(1),
(...skipping 15 matching lines...) Expand all
521 ] 521 ]
522 handlers: [ 522 handlers: [
523 ] 523 ]
524 524
525 --- 525 ---
526 snippet: " 526 snippet: "
527 export default (function () {}); 527 export default (function () {});
528 " 528 "
529 frame size: 8 529 frame size: 8
530 parameter count: 2 530 parameter count: 2
531 bytecode array length: 136 531 bytecode array length: 135
532 bytecodes: [ 532 bytecodes: [
533 B(Ldar), R(new_target), 533 B(Ldar), R(new_target),
534 B(JumpIfUndefined), U8(21), 534 B(JumpIfUndefined), U8(21),
535 B(ResumeGenerator), R(new_target), 535 B(ResumeGenerator), R(new_target),
536 B(Star), R(1), 536 B(Star), R(1),
537 B(LdaZero), 537 B(LdaZero),
538 B(TestEqualStrict), R(1), U8(0), 538 B(TestEqualStrict), R(1), U8(0),
539 B(JumpIfTrue), U8(67), 539 B(JumpIfTrue), U8(67),
540 B(LdaSmi), U8(78), 540 B(LdaSmi), U8(78),
541 B(Star), R(2), 541 B(Star), R(2),
(...skipping 24 matching lines...) Expand all
566 B(Ldar), R(2), 566 B(Ldar), R(2),
567 /* 32 S> */ B(Return), 567 /* 32 S> */ B(Return),
568 B(LdaSmi), U8(-2), 568 B(LdaSmi), U8(-2),
569 B(Star), R(1), 569 B(Star), R(1),
570 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 570 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
571 B(Star), R(4), 571 B(Star), R(4),
572 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 572 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
573 B(Star), R(5), 573 B(Star), R(5),
574 B(LdaZero), 574 B(LdaZero),
575 B(TestEqualStrict), R(5), U8(0), 575 B(TestEqualStrict), R(5), U8(0),
576 B(JumpIfTrue), U8(26), 576 B(JumpIfTrue), U8(25),
577 B(LdaSmi), U8(2), 577 B(LdaSmi), U8(2),
578 B(TestEqualStrict), R(5), U8(0), 578 B(TestEqualStrict), R(5), U8(0),
579 B(JumpIfTrue), U8(16), 579 B(JumpIfTrue), U8(15),
580 B(Jump), U8(2), 580 B(Jump), U8(2),
581 B(LdaTrue), 581 B(LdaTrue),
582 B(Star), R(7), 582 B(Star), R(7),
583 B(Mov), R(4), R(6), 583 B(Mov), R(4), R(6),
584 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8 (2), 584 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
585 /* 32 S> */ B(Return), 585 /* 32 S> */ B(Return),
586 B(Ldar), R(4), 586 B(Ldar), R(4),
587 /* 0 E> */ B(Throw), 587 /* 0 E> */ B(Throw),
588 B(CreateClosure), U8(1), U8(2), U8(0), 588 B(CreateClosure), U8(1), U8(2), U8(0),
589 B(StaModuleVariable), U8(1), U8(0), 589 B(StaModuleVariable), U8(1), U8(0),
590 B(LdaUndefined), 590 B(LdaUndefined),
591 /* 32 S> */ B(Return), 591 /* 32 S> */ B(Return),
592 ] 592 ]
593 constant pool: [ 593 constant pool: [
594 FIXED_ARRAY_TYPE, 594 FIXED_ARRAY_TYPE,
595 SHARED_FUNCTION_INFO_TYPE, 595 SHARED_FUNCTION_INFO_TYPE,
596 ] 596 ]
597 handlers: [ 597 handlers: [
598 ] 598 ]
599 599
600 --- 600 ---
601 snippet: " 601 snippet: "
602 export default (class {}); 602 export default (class {});
603 " 603 "
604 frame size: 8 604 frame size: 8
605 parameter count: 2 605 parameter count: 2
606 bytecode array length: 173 606 bytecode array length: 172
607 bytecodes: [ 607 bytecodes: [
608 B(Ldar), R(new_target), 608 B(Ldar), R(new_target),
609 B(JumpIfUndefined), U8(21), 609 B(JumpIfUndefined), U8(21),
610 B(ResumeGenerator), R(new_target), 610 B(ResumeGenerator), R(new_target),
611 B(Star), R(1), 611 B(Star), R(1),
612 B(LdaZero), 612 B(LdaZero),
613 B(TestEqualStrict), R(1), U8(0), 613 B(TestEqualStrict), R(1), U8(0),
614 B(JumpIfTrue), U8(67), 614 B(JumpIfTrue), U8(67),
615 B(LdaSmi), U8(78), 615 B(LdaSmi), U8(78),
616 B(Star), R(2), 616 B(Star), R(2),
(...skipping 24 matching lines...) Expand all
641 B(Ldar), R(2), 641 B(Ldar), R(2),
642 /* 26 S> */ B(Return), 642 /* 26 S> */ B(Return),
643 B(LdaSmi), U8(-2), 643 B(LdaSmi), U8(-2),
644 B(Star), R(1), 644 B(Star), R(1),
645 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 645 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
646 B(Star), R(4), 646 B(Star), R(4),
647 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 647 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
648 B(Star), R(5), 648 B(Star), R(5),
649 B(LdaZero), 649 B(LdaZero),
650 B(TestEqualStrict), R(5), U8(0), 650 B(TestEqualStrict), R(5), U8(0),
651 B(JumpIfTrue), U8(26), 651 B(JumpIfTrue), U8(25),
652 B(LdaSmi), U8(2), 652 B(LdaSmi), U8(2),
653 B(TestEqualStrict), R(5), U8(0), 653 B(TestEqualStrict), R(5), U8(0),
654 B(JumpIfTrue), U8(16), 654 B(JumpIfTrue), U8(15),
655 B(Jump), U8(2), 655 B(Jump), U8(2),
656 B(LdaTrue), 656 B(LdaTrue),
657 B(Star), R(7), 657 B(Star), R(7),
658 B(Mov), R(4), R(6), 658 B(Mov), R(4), R(6),
659 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8 (2), 659 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
660 /* 26 S> */ B(Return), 660 /* 26 S> */ B(Return),
661 B(Ldar), R(4), 661 B(Ldar), R(4),
662 /* 0 E> */ B(Throw), 662 /* 0 E> */ B(Throw),
663 /* 16 S> */ B(CreateClosure), U8(1), U8(2), U8(0), 663 /* 16 S> */ B(CreateClosure), U8(1), U8(2), U8(0),
664 B(Star), R(2), 664 B(Star), R(2),
665 B(LdaTheHole), 665 B(LdaTheHole),
666 B(Star), R(3), 666 B(Star), R(3),
667 B(LdaSmi), U8(16), 667 B(LdaSmi), U8(16),
668 B(Star), R(5), 668 B(Star), R(5),
669 B(LdaSmi), U8(24), 669 B(LdaSmi), U8(24),
(...skipping 15 matching lines...) Expand all
685 ] 685 ]
686 handlers: [ 686 handlers: [
687 ] 687 ]
688 688
689 --- 689 ---
690 snippet: " 690 snippet: "
691 export {foo as goo} from \"bar\" 691 export {foo as goo} from \"bar\"
692 " 692 "
693 frame size: 8 693 frame size: 8
694 parameter count: 2 694 parameter count: 2
695 bytecode array length: 125 695 bytecode array length: 124
696 bytecodes: [ 696 bytecodes: [
697 B(Ldar), R(new_target), 697 B(Ldar), R(new_target),
698 B(JumpIfUndefined), U8(21), 698 B(JumpIfUndefined), U8(21),
699 B(ResumeGenerator), R(new_target), 699 B(ResumeGenerator), R(new_target),
700 B(Star), R(1), 700 B(Star), R(1),
701 B(LdaZero), 701 B(LdaZero),
702 B(TestEqualStrict), R(1), U8(0), 702 B(TestEqualStrict), R(1), U8(0),
703 B(JumpIfTrue), U8(63), 703 B(JumpIfTrue), U8(63),
704 B(LdaSmi), U8(78), 704 B(LdaSmi), U8(78),
705 B(Star), R(2), 705 B(Star), R(2),
(...skipping 22 matching lines...) Expand all
728 B(Ldar), R(2), 728 B(Ldar), R(2),
729 /* 30 S> */ B(Return), 729 /* 30 S> */ B(Return),
730 B(LdaSmi), U8(-2), 730 B(LdaSmi), U8(-2),
731 B(Star), R(1), 731 B(Star), R(1),
732 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 732 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
733 B(Star), R(4), 733 B(Star), R(4),
734 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 734 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
735 B(Star), R(5), 735 B(Star), R(5),
736 B(LdaZero), 736 B(LdaZero),
737 B(TestEqualStrict), R(5), U8(0), 737 B(TestEqualStrict), R(5), U8(0),
738 B(JumpIfTrue), U8(26), 738 B(JumpIfTrue), U8(25),
739 B(LdaSmi), U8(2), 739 B(LdaSmi), U8(2),
740 B(TestEqualStrict), R(5), U8(0), 740 B(TestEqualStrict), R(5), U8(0),
741 B(JumpIfTrue), U8(16), 741 B(JumpIfTrue), U8(15),
742 B(Jump), U8(2), 742 B(Jump), U8(2),
743 B(LdaTrue), 743 B(LdaTrue),
744 B(Star), R(7), 744 B(Star), R(7),
745 B(Mov), R(4), R(6), 745 B(Mov), R(4), R(6),
746 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8 (2), 746 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
747 /* 30 S> */ B(Return), 747 /* 30 S> */ B(Return),
748 B(Ldar), R(4), 748 B(Ldar), R(4),
749 /* 0 E> */ B(Throw), 749 /* 0 E> */ B(Throw),
750 B(LdaUndefined), 750 B(LdaUndefined),
751 /* 30 S> */ B(Return), 751 /* 30 S> */ B(Return),
752 ] 752 ]
753 constant pool: [ 753 constant pool: [
754 FIXED_ARRAY_TYPE, 754 FIXED_ARRAY_TYPE,
755 ] 755 ]
756 handlers: [ 756 handlers: [
757 ] 757 ]
758 758
759 --- 759 ---
760 snippet: " 760 snippet: "
761 export * from \"bar\" 761 export * from \"bar\"
762 " 762 "
763 frame size: 8 763 frame size: 8
764 parameter count: 2 764 parameter count: 2
765 bytecode array length: 125 765 bytecode array length: 124
766 bytecodes: [ 766 bytecodes: [
767 B(Ldar), R(new_target), 767 B(Ldar), R(new_target),
768 B(JumpIfUndefined), U8(21), 768 B(JumpIfUndefined), U8(21),
769 B(ResumeGenerator), R(new_target), 769 B(ResumeGenerator), R(new_target),
770 B(Star), R(1), 770 B(Star), R(1),
771 B(LdaZero), 771 B(LdaZero),
772 B(TestEqualStrict), R(1), U8(0), 772 B(TestEqualStrict), R(1), U8(0),
773 B(JumpIfTrue), U8(63), 773 B(JumpIfTrue), U8(63),
774 B(LdaSmi), U8(78), 774 B(LdaSmi), U8(78),
775 B(Star), R(2), 775 B(Star), R(2),
(...skipping 22 matching lines...) Expand all
798 B(Ldar), R(2), 798 B(Ldar), R(2),
799 /* 19 S> */ B(Return), 799 /* 19 S> */ B(Return),
800 B(LdaSmi), U8(-2), 800 B(LdaSmi), U8(-2),
801 B(Star), R(1), 801 B(Star), R(1),
802 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 802 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
803 B(Star), R(4), 803 B(Star), R(4),
804 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 804 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
805 B(Star), R(5), 805 B(Star), R(5),
806 B(LdaZero), 806 B(LdaZero),
807 B(TestEqualStrict), R(5), U8(0), 807 B(TestEqualStrict), R(5), U8(0),
808 B(JumpIfTrue), U8(26), 808 B(JumpIfTrue), U8(25),
809 B(LdaSmi), U8(2), 809 B(LdaSmi), U8(2),
810 B(TestEqualStrict), R(5), U8(0), 810 B(TestEqualStrict), R(5), U8(0),
811 B(JumpIfTrue), U8(16), 811 B(JumpIfTrue), U8(15),
812 B(Jump), U8(2), 812 B(Jump), U8(2),
813 B(LdaTrue), 813 B(LdaTrue),
814 B(Star), R(7), 814 B(Star), R(7),
815 B(Mov), R(4), R(6), 815 B(Mov), R(4), R(6),
816 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8 (2), 816 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
817 /* 19 S> */ B(Return), 817 /* 19 S> */ B(Return),
818 B(Ldar), R(4), 818 B(Ldar), R(4),
819 /* 0 E> */ B(Throw), 819 /* 0 E> */ B(Throw),
820 B(LdaUndefined), 820 B(LdaUndefined),
821 /* 19 S> */ B(Return), 821 /* 19 S> */ B(Return),
822 ] 822 ]
823 constant pool: [ 823 constant pool: [
824 FIXED_ARRAY_TYPE, 824 FIXED_ARRAY_TYPE,
825 ] 825 ]
826 handlers: [ 826 handlers: [
827 ] 827 ]
828 828
829 --- 829 ---
830 snippet: " 830 snippet: "
831 import * as foo from \"bar\" 831 import * as foo from \"bar\"
832 foo.f(foo, foo.x); 832 foo.f(foo, foo.x);
833 " 833 "
834 frame size: 8 834 frame size: 8
835 parameter count: 2 835 parameter count: 2
836 bytecode array length: 164 836 bytecode array length: 163
837 bytecodes: [ 837 bytecodes: [
838 B(Ldar), R(new_target), 838 B(Ldar), R(new_target),
839 B(JumpIfUndefined), U8(21), 839 B(JumpIfUndefined), U8(21),
840 B(ResumeGenerator), R(new_target), 840 B(ResumeGenerator), R(new_target),
841 B(Star), R(1), 841 B(Star), R(1),
842 B(LdaZero), 842 B(LdaZero),
843 B(TestEqualStrict), R(1), U8(0), 843 B(TestEqualStrict), R(1), U8(0),
844 B(JumpIfTrue), U8(73), 844 B(JumpIfTrue), U8(73),
845 B(LdaSmi), U8(78), 845 B(LdaSmi), U8(78),
846 B(Star), R(2), 846 B(Star), R(2),
(...skipping 26 matching lines...) Expand all
873 B(Ldar), R(2), 873 B(Ldar), R(2),
874 /* 45 S> */ B(Return), 874 /* 45 S> */ B(Return),
875 B(LdaSmi), U8(-2), 875 B(LdaSmi), U8(-2),
876 B(Star), R(1), 876 B(Star), R(1),
877 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 877 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
878 B(Star), R(4), 878 B(Star), R(4),
879 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 879 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
880 B(Star), R(5), 880 B(Star), R(5),
881 B(LdaZero), 881 B(LdaZero),
882 B(TestEqualStrict), R(5), U8(0), 882 B(TestEqualStrict), R(5), U8(0),
883 B(JumpIfTrue), U8(26), 883 B(JumpIfTrue), U8(25),
884 B(LdaSmi), U8(2), 884 B(LdaSmi), U8(2),
885 B(TestEqualStrict), R(5), U8(0), 885 B(TestEqualStrict), R(5), U8(0),
886 B(JumpIfTrue), U8(16), 886 B(JumpIfTrue), U8(15),
887 B(Jump), U8(2), 887 B(Jump), U8(2),
888 B(LdaTrue), 888 B(LdaTrue),
889 B(Star), R(7), 889 B(Star), R(7),
890 B(Mov), R(4), R(6), 890 B(Mov), R(4), R(6),
891 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(6), U8 (2), 891 B(InvokeIntrinsic), U8(Runtime::k_CreateIterResultObject), R(6), U8(2),
892 /* 45 S> */ B(Return), 892 /* 45 S> */ B(Return),
893 B(Ldar), R(4), 893 B(Ldar), R(4),
894 /* 0 E> */ B(Throw), 894 /* 0 E> */ B(Throw),
895 /* 27 S> */ B(LdaCurrentContextSlot), U8(6), 895 /* 27 S> */ B(LdaCurrentContextSlot), U8(6),
896 B(Star), R(3), 896 B(Star), R(3),
897 /* 30 E> */ B(LdaNamedProperty), R(3), U8(1), U8(4), 897 /* 30 E> */ B(LdaNamedProperty), R(3), U8(1), U8(4),
898 B(Star), R(2), 898 B(Star), R(2),
899 B(LdaCurrentContextSlot), U8(6), 899 B(LdaCurrentContextSlot), U8(6),
900 B(Star), R(4), 900 B(Star), R(4),
901 B(LdaCurrentContextSlot), U8(6), 901 B(LdaCurrentContextSlot), U8(6),
902 B(Star), R(5), 902 B(Star), R(5),
903 /* 41 E> */ B(LdaNamedProperty), R(5), U8(2), U8(6), 903 /* 41 E> */ B(LdaNamedProperty), R(5), U8(2), U8(6),
904 B(Star), R(5), 904 B(Star), R(5),
905 /* 31 E> */ B(CallProperty), R(2), R(3), U8(3), U8(2), 905 /* 31 E> */ B(CallProperty), R(2), R(3), U8(3), U8(2),
906 B(LdaUndefined), 906 B(LdaUndefined),
907 /* 45 S> */ B(Return), 907 /* 45 S> */ B(Return),
908 ] 908 ]
909 constant pool: [ 909 constant pool: [
910 FIXED_ARRAY_TYPE, 910 FIXED_ARRAY_TYPE,
911 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"], 911 ONE_BYTE_INTERNALIZED_STRING_TYPE ["f"],
912 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 912 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
913 ] 913 ]
914 handlers: [ 914 handlers: [
915 ] 915 ]
916 916
OLDNEW
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/Generators.golden ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698