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

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

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

Powered by Google App Engine
This is Rietveld 408576698