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

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

Issue 2459513002: [ignition] Add bytecodes for loads/stores in the current context (Closed)
Patch Set: s/LocalContext/CurrentContext/g Created 4 years, 1 month 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: 8 14 frame size: 8
15 parameter count: 2 15 parameter count: 2
16 bytecode array length: 133 16 bytecode array length: 125
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(71), 24 B(JumpIfTrue), U8(63),
25 B(LdaSmi), U8(76), 25 B(LdaSmi), U8(76),
26 B(Star), R(2), 26 B(Star), R(2),
27 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 27 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
28 B(LdaSmi), U8(-2), 28 B(LdaSmi), U8(-2),
29 B(Star), R(1), 29 B(Star), R(1),
30 B(LdaConstant), U8(0), 30 B(LdaConstant), U8(0),
31 B(Star), R(4), 31 B(Star), R(4),
32 B(Mov), R(arg0), R(2), 32 B(Mov), R(arg0), R(2),
33 B(Mov), R(closure), R(3), 33 B(Mov), R(closure), R(3),
34 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 34 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
35 B(PushContext), R(0), 35 B(PushContext), R(0),
36 B(Ldar), R(this), 36 B(Ldar), R(this),
37 B(StaContextSlot), R(context), U8(4), U8(0), 37 B(StaCurrentContextSlot), U8(4),
38 /* 0 E> */ B(StackCheck), 38 /* 0 E> */ B(StackCheck),
39 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3), 39 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3),
40 B(Ldar), R(3), 40 B(Ldar), R(3),
41 B(Mov), R(closure), R(2), 41 B(Mov), R(closure), R(2),
42 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 42 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
43 B(StaContextSlot), R(context), U8(5), U8(0), 43 B(StaCurrentContextSlot), U8(5),
44 B(Star), R(2), 44 B(Star), R(2),
45 B(LdrContextSlot), R(context), U8(5), U8(0), R(3), 45 B(LdrCurrentContextSlot), U8(5), R(3),
46 B(LdaZero), 46 B(LdaZero),
47 B(SuspendGenerator), R(3), 47 B(SuspendGenerator), R(3),
48 B(Ldar), R(2), 48 B(Ldar), R(2),
49 /* 13 S> */ B(Return), 49 /* 13 S> */ B(Return),
50 B(LdaSmi), U8(-2), 50 B(LdaSmi), U8(-2),
51 B(Star), R(1), 51 B(Star), R(1),
52 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 52 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
53 B(Star), R(4), 53 B(Star), R(4),
54 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 54 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
55 B(Star), R(5), 55 B(Star), R(5),
(...skipping 19 matching lines...) Expand all
75 ] 75 ]
76 handlers: [ 76 handlers: [
77 ] 77 ]
78 78
79 --- 79 ---
80 snippet: " 80 snippet: "
81 import {foo} from \"bar\"; 81 import {foo} from \"bar\";
82 " 82 "
83 frame size: 8 83 frame size: 8
84 parameter count: 2 84 parameter count: 2
85 bytecode array length: 133 85 bytecode array length: 125
86 bytecodes: [ 86 bytecodes: [
87 B(Ldar), R(new_target), 87 B(Ldar), R(new_target),
88 B(JumpIfUndefined), U8(21), 88 B(JumpIfUndefined), U8(21),
89 B(ResumeGenerator), R(new_target), 89 B(ResumeGenerator), R(new_target),
90 B(Star), R(1), 90 B(Star), R(1),
91 B(LdaZero), 91 B(LdaZero),
92 B(TestEqualStrict), R(1), U8(0), 92 B(TestEqualStrict), R(1), U8(0),
93 B(JumpIfTrue), U8(71), 93 B(JumpIfTrue), U8(63),
94 B(LdaSmi), U8(76), 94 B(LdaSmi), U8(76),
95 B(Star), R(2), 95 B(Star), R(2),
96 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 96 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
97 B(LdaSmi), U8(-2), 97 B(LdaSmi), U8(-2),
98 B(Star), R(1), 98 B(Star), R(1),
99 B(LdaConstant), U8(0), 99 B(LdaConstant), U8(0),
100 B(Star), R(4), 100 B(Star), R(4),
101 B(Mov), R(arg0), R(2), 101 B(Mov), R(arg0), R(2),
102 B(Mov), R(closure), R(3), 102 B(Mov), R(closure), R(3),
103 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 103 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
104 B(PushContext), R(0), 104 B(PushContext), R(0),
105 B(Ldar), R(this), 105 B(Ldar), R(this),
106 B(StaContextSlot), R(context), U8(4), U8(0), 106 B(StaCurrentContextSlot), U8(4),
107 /* 0 E> */ B(StackCheck), 107 /* 0 E> */ B(StackCheck),
108 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3), 108 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3),
109 B(Ldar), R(3), 109 B(Ldar), R(3),
110 B(Mov), R(closure), R(2), 110 B(Mov), R(closure), R(2),
111 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 111 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
112 B(StaContextSlot), R(context), U8(5), U8(0), 112 B(StaCurrentContextSlot), U8(5),
113 B(Star), R(2), 113 B(Star), R(2),
114 B(LdrContextSlot), R(context), U8(5), U8(0), R(3), 114 B(LdrCurrentContextSlot), U8(5), R(3),
115 B(LdaZero), 115 B(LdaZero),
116 B(SuspendGenerator), R(3), 116 B(SuspendGenerator), R(3),
117 B(Ldar), R(2), 117 B(Ldar), R(2),
118 /* 24 S> */ B(Return), 118 /* 24 S> */ B(Return),
119 B(LdaSmi), U8(-2), 119 B(LdaSmi), U8(-2),
120 B(Star), R(1), 120 B(Star), R(1),
121 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 121 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
122 B(Star), R(4), 122 B(Star), R(4),
123 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 123 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
124 B(Star), R(5), 124 B(Star), R(5),
(...skipping 21 matching lines...) Expand all
146 ] 146 ]
147 147
148 --- 148 ---
149 snippet: " 149 snippet: "
150 import {foo as goo} from \"bar\"; 150 import {foo as goo} from \"bar\";
151 goo(42); 151 goo(42);
152 { let x; { goo(42) } }; 152 { let x; { goo(42) } };
153 " 153 "
154 frame size: 9 154 frame size: 9
155 parameter count: 2 155 parameter count: 2
156 bytecode array length: 223 156 bytecode array length: 211
157 bytecodes: [ 157 bytecodes: [
158 B(Ldar), R(new_target), 158 B(Ldar), R(new_target),
159 B(JumpIfUndefined), U8(21), 159 B(JumpIfUndefined), U8(21),
160 B(ResumeGenerator), R(new_target), 160 B(ResumeGenerator), R(new_target),
161 B(Star), R(2), 161 B(Star), R(2),
162 B(LdaZero), 162 B(LdaZero),
163 B(TestEqualStrict), R(2), U8(0), 163 B(TestEqualStrict), R(2), U8(0),
164 B(JumpIfTrue), U8(71), 164 B(JumpIfTrue), U8(63),
165 B(LdaSmi), U8(76), 165 B(LdaSmi), U8(76),
166 B(Star), R(3), 166 B(Star), R(3),
167 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 167 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
168 B(LdaSmi), U8(-2), 168 B(LdaSmi), U8(-2),
169 B(Star), R(2), 169 B(Star), R(2),
170 B(LdaConstant), U8(0), 170 B(LdaConstant), U8(0),
171 B(Star), R(5), 171 B(Star), R(5),
172 B(Mov), R(arg0), R(3), 172 B(Mov), R(arg0), R(3),
173 B(Mov), R(closure), R(4), 173 B(Mov), R(closure), R(4),
174 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 174 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
175 B(PushContext), R(0), 175 B(PushContext), R(0),
176 B(Ldar), R(this), 176 B(Ldar), R(this),
177 B(StaContextSlot), R(context), U8(4), U8(0), 177 B(StaCurrentContextSlot), U8(4),
178 /* 0 E> */ B(StackCheck), 178 /* 0 E> */ B(StackCheck),
179 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(4), 179 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4),
180 B(Ldar), R(4), 180 B(Ldar), R(4),
181 B(Mov), R(closure), R(3), 181 B(Mov), R(closure), R(3),
182 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 182 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2),
183 B(StaContextSlot), R(context), U8(5), U8(0), 183 B(StaCurrentContextSlot), U8(5),
184 B(Star), R(3), 184 B(Star), R(3),
185 B(LdrContextSlot), R(context), U8(5), U8(0), R(4), 185 B(LdrCurrentContextSlot), U8(5), R(4),
186 B(LdaZero), 186 B(LdaZero),
187 B(SuspendGenerator), R(4), 187 B(SuspendGenerator), R(4),
188 B(Ldar), R(3), 188 B(Ldar), R(3),
189 /* 64 S> */ B(Return), 189 /* 64 S> */ B(Return),
190 B(LdaSmi), U8(-2), 190 B(LdaSmi), U8(-2),
191 B(Star), R(2), 191 B(Star), R(2),
192 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 192 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
193 B(Star), R(5), 193 B(Star), R(5),
194 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 194 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
195 B(Star), R(6), 195 B(Star), R(6),
(...skipping 22 matching lines...) Expand all
218 B(Star), R(8), 218 B(Star), R(8),
219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(8), U8(1), 219 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(8), U8(1),
220 B(Star), R(3), 220 B(Star), R(3),
221 B(LdaSmi), U8(42), 221 B(LdaSmi), U8(42),
222 B(Star), R(5), 222 B(Star), R(5),
223 /* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2), 223 /* 32 E> */ B(Call), R(3), R(4), U8(2), U8(2),
224 B(Ldar), R(closure), 224 B(Ldar), R(closure),
225 B(CreateBlockContext), U8(3), 225 B(CreateBlockContext), U8(3),
226 B(PushContext), R(1), 226 B(PushContext), R(1),
227 B(LdaTheHole), 227 B(LdaTheHole),
228 B(StaContextSlot), R(context), U8(4), U8(0), 228 B(StaCurrentContextSlot), U8(4),
229 /* 47 S> */ B(LdaUndefined), 229 /* 47 S> */ B(LdaUndefined),
230 /* 47 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 230 /* 47 E> */ B(StaCurrentContextSlot), U8(4),
231 /* 52 S> */ B(LdrUndefined), R(4), 231 /* 52 S> */ B(LdrUndefined), R(4),
232 B(LdaConstant), U8(1), 232 B(LdaConstant), U8(1),
233 B(Star), R(6), 233 B(Star), R(6),
234 B(LdaZero), 234 B(LdaZero),
235 B(Star), R(7), 235 B(Star), R(7),
236 /* 52 E> */ B(CallRuntime), U16(Runtime::kLoadModuleImport), R(6), U8(2), 236 /* 52 E> */ B(CallRuntime), U16(Runtime::kLoadModuleImport), R(6), U8(2),
237 B(JumpIfNotHole), U8(11), 237 B(JumpIfNotHole), U8(11),
238 B(LdaConstant), U8(2), 238 B(LdaConstant), U8(2),
239 B(Star), R(8), 239 B(Star), R(8),
240 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(8), U8(1), 240 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(8), U8(1),
(...skipping 15 matching lines...) Expand all
256 ] 256 ]
257 257
258 --- 258 ---
259 snippet: " 259 snippet: "
260 export var foo = 42; 260 export var foo = 42;
261 foo++; 261 foo++;
262 { let x; { foo++ } }; 262 { let x; { foo++ } };
263 " 263 "
264 frame size: 9 264 frame size: 9
265 parameter count: 2 265 parameter count: 2
266 bytecode array length: 208 266 bytecode array length: 196
267 bytecodes: [ 267 bytecodes: [
268 B(Ldar), R(new_target), 268 B(Ldar), R(new_target),
269 B(JumpIfUndefined), U8(21), 269 B(JumpIfUndefined), U8(21),
270 B(ResumeGenerator), R(new_target), 270 B(ResumeGenerator), R(new_target),
271 B(Star), R(2), 271 B(Star), R(2),
272 B(LdaZero), 272 B(LdaZero),
273 B(TestEqualStrict), R(2), U8(0), 273 B(TestEqualStrict), R(2), U8(0),
274 B(JumpIfTrue), U8(71), 274 B(JumpIfTrue), U8(63),
275 B(LdaSmi), U8(76), 275 B(LdaSmi), U8(76),
276 B(Star), R(3), 276 B(Star), R(3),
277 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 277 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
278 B(LdaSmi), U8(-2), 278 B(LdaSmi), U8(-2),
279 B(Star), R(2), 279 B(Star), R(2),
280 B(LdaConstant), U8(0), 280 B(LdaConstant), U8(0),
281 B(Star), R(5), 281 B(Star), R(5),
282 B(Mov), R(arg0), R(3), 282 B(Mov), R(arg0), R(3),
283 B(Mov), R(closure), R(4), 283 B(Mov), R(closure), R(4),
284 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 284 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
285 B(PushContext), R(0), 285 B(PushContext), R(0),
286 B(Ldar), R(this), 286 B(Ldar), R(this),
287 B(StaContextSlot), R(context), U8(4), U8(0), 287 B(StaCurrentContextSlot), U8(4),
288 /* 0 E> */ B(StackCheck), 288 /* 0 E> */ B(StackCheck),
289 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(4), 289 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4),
290 B(Ldar), R(4), 290 B(Ldar), R(4),
291 B(Mov), R(closure), R(3), 291 B(Mov), R(closure), R(3),
292 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 292 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2),
293 B(StaContextSlot), R(context), U8(5), U8(0), 293 B(StaCurrentContextSlot), U8(5),
294 B(Star), R(3), 294 B(Star), R(3),
295 B(LdrContextSlot), R(context), U8(5), U8(0), R(4), 295 B(LdrCurrentContextSlot), U8(5), R(4),
296 B(LdaZero), 296 B(LdaZero),
297 B(SuspendGenerator), R(4), 297 B(SuspendGenerator), R(4),
298 B(Ldar), R(3), 298 B(Ldar), R(3),
299 /* 49 S> */ B(Return), 299 /* 49 S> */ B(Return),
300 B(LdaSmi), U8(-2), 300 B(LdaSmi), U8(-2),
301 B(Star), R(2), 301 B(Star), R(2),
302 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 302 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
303 B(Star), R(5), 303 B(Star), R(5),
304 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 304 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
305 B(Star), R(6), 305 B(Star), R(6),
(...skipping 21 matching lines...) Expand all
327 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 327 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
328 B(Inc), U8(2), 328 B(Inc), U8(2),
329 B(Star), R(4), 329 B(Star), R(4),
330 B(LdaConstant), U8(1), 330 B(LdaConstant), U8(1),
331 B(Star), R(3), 331 B(Star), R(3),
332 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 332 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
333 B(Ldar), R(closure), 333 B(Ldar), R(closure),
334 B(CreateBlockContext), U8(2), 334 B(CreateBlockContext), U8(2),
335 B(PushContext), R(1), 335 B(PushContext), R(1),
336 B(LdaTheHole), 336 B(LdaTheHole),
337 B(StaContextSlot), R(context), U8(4), U8(0), 337 B(StaCurrentContextSlot), U8(4),
338 /* 34 S> */ B(LdaUndefined), 338 /* 34 S> */ B(LdaUndefined),
339 /* 34 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 339 /* 34 E> */ B(StaCurrentContextSlot), U8(4),
340 /* 39 S> */ B(LdaConstant), U8(1), 340 /* 39 S> */ B(LdaConstant), U8(1),
341 B(Star), R(3), 341 B(Star), R(3),
342 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 342 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
343 B(Inc), U8(3), 343 B(Inc), U8(3),
344 B(Star), R(4), 344 B(Star), R(4),
345 B(LdaConstant), U8(1), 345 B(LdaConstant), U8(1),
346 B(Star), R(3), 346 B(Star), R(3),
347 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 347 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
348 B(PopContext), R(1), 348 B(PopContext), R(1),
349 B(LdaUndefined), 349 B(LdaUndefined),
350 /* 49 S> */ B(Return), 350 /* 49 S> */ B(Return),
351 ] 351 ]
352 constant pool: [ 352 constant pool: [
353 FIXED_ARRAY_TYPE, 353 FIXED_ARRAY_TYPE,
354 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], 354 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
355 FIXED_ARRAY_TYPE, 355 FIXED_ARRAY_TYPE,
356 ] 356 ]
357 handlers: [ 357 handlers: [
358 ] 358 ]
359 359
360 --- 360 ---
361 snippet: " 361 snippet: "
362 export let foo = 42; 362 export let foo = 42;
363 foo++; 363 foo++;
364 { let x; { foo++ } }; 364 { let x; { foo++ } };
365 " 365 "
366 frame size: 9 366 frame size: 9
367 parameter count: 2 367 parameter count: 2
368 bytecode array length: 220 368 bytecode array length: 208
369 bytecodes: [ 369 bytecodes: [
370 B(Ldar), R(new_target), 370 B(Ldar), R(new_target),
371 B(JumpIfUndefined), U8(21), 371 B(JumpIfUndefined), U8(21),
372 B(ResumeGenerator), R(new_target), 372 B(ResumeGenerator), R(new_target),
373 B(Star), R(2), 373 B(Star), R(2),
374 B(LdaZero), 374 B(LdaZero),
375 B(TestEqualStrict), R(2), U8(0), 375 B(TestEqualStrict), R(2), U8(0),
376 B(JumpIfTrue), U8(83), 376 B(JumpIfTrue), U8(75),
377 B(LdaSmi), U8(76), 377 B(LdaSmi), U8(76),
378 B(Star), R(3), 378 B(Star), R(3),
379 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 379 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
380 B(LdaSmi), U8(-2), 380 B(LdaSmi), U8(-2),
381 B(Star), R(2), 381 B(Star), R(2),
382 B(LdaConstant), U8(0), 382 B(LdaConstant), U8(0),
383 B(Star), R(5), 383 B(Star), R(5),
384 B(Mov), R(arg0), R(3), 384 B(Mov), R(arg0), R(3),
385 B(Mov), R(closure), R(4), 385 B(Mov), R(closure), R(4),
386 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 386 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
387 B(PushContext), R(0), 387 B(PushContext), R(0),
388 B(Ldar), R(this), 388 B(Ldar), R(this),
389 B(StaContextSlot), R(context), U8(4), U8(0), 389 B(StaCurrentContextSlot), U8(4),
390 B(LdaTheHole), 390 B(LdaTheHole),
391 B(Star), R(4), 391 B(Star), R(4),
392 B(LdaConstant), U8(1), 392 B(LdaConstant), U8(1),
393 B(Star), R(3), 393 B(Star), R(3),
394 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 394 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
395 /* 0 E> */ B(StackCheck), 395 /* 0 E> */ B(StackCheck),
396 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(4), 396 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4),
397 B(Ldar), R(4), 397 B(Ldar), R(4),
398 B(Mov), R(closure), R(3), 398 B(Mov), R(closure), R(3),
399 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 399 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2),
400 B(StaContextSlot), R(context), U8(5), U8(0), 400 B(StaCurrentContextSlot), U8(5),
401 B(Star), R(3), 401 B(Star), R(3),
402 B(LdrContextSlot), R(context), U8(5), U8(0), R(4), 402 B(LdrCurrentContextSlot), U8(5), R(4),
403 B(LdaZero), 403 B(LdaZero),
404 B(SuspendGenerator), R(4), 404 B(SuspendGenerator), R(4),
405 B(Ldar), R(3), 405 B(Ldar), R(3),
406 /* 49 S> */ B(Return), 406 /* 49 S> */ B(Return),
407 B(LdaSmi), U8(-2), 407 B(LdaSmi), U8(-2),
408 B(Star), R(2), 408 B(Star), R(2),
409 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 409 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
410 B(Star), R(5), 410 B(Star), R(5),
411 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 411 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
412 B(Star), R(6), 412 B(Star), R(6),
(...skipping 21 matching lines...) Expand all
434 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 434 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
435 B(Inc), U8(2), 435 B(Inc), U8(2),
436 B(Star), R(4), 436 B(Star), R(4),
437 B(LdaConstant), U8(1), 437 B(LdaConstant), U8(1),
438 B(Star), R(3), 438 B(Star), R(3),
439 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 439 /* 24 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
440 B(Ldar), R(closure), 440 B(Ldar), R(closure),
441 B(CreateBlockContext), U8(2), 441 B(CreateBlockContext), U8(2),
442 B(PushContext), R(1), 442 B(PushContext), R(1),
443 B(LdaTheHole), 443 B(LdaTheHole),
444 B(StaContextSlot), R(context), U8(4), U8(0), 444 B(StaCurrentContextSlot), U8(4),
445 /* 34 S> */ B(LdaUndefined), 445 /* 34 S> */ B(LdaUndefined),
446 /* 34 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 446 /* 34 E> */ B(StaCurrentContextSlot), U8(4),
447 /* 39 S> */ B(LdaConstant), U8(1), 447 /* 39 S> */ B(LdaConstant), U8(1),
448 B(Star), R(3), 448 B(Star), R(3),
449 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 449 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
450 B(Inc), U8(3), 450 B(Inc), U8(3),
451 B(Star), R(4), 451 B(Star), R(4),
452 B(LdaConstant), U8(1), 452 B(LdaConstant), U8(1),
453 B(Star), R(3), 453 B(Star), R(3),
454 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 454 /* 42 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
455 B(PopContext), R(1), 455 B(PopContext), R(1),
456 B(LdaUndefined), 456 B(LdaUndefined),
457 /* 49 S> */ B(Return), 457 /* 49 S> */ B(Return),
458 ] 458 ]
459 constant pool: [ 459 constant pool: [
460 FIXED_ARRAY_TYPE, 460 FIXED_ARRAY_TYPE,
461 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], 461 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
462 FIXED_ARRAY_TYPE, 462 FIXED_ARRAY_TYPE,
463 ] 463 ]
464 handlers: [ 464 handlers: [
465 ] 465 ]
466 466
467 --- 467 ---
468 snippet: " 468 snippet: "
469 export const foo = 42; 469 export const foo = 42;
470 foo++; 470 foo++;
471 { let x; { foo++ } }; 471 { let x; { foo++ } };
472 " 472 "
473 frame size: 9 473 frame size: 9
474 parameter count: 2 474 parameter count: 2
475 bytecode array length: 208 475 bytecode array length: 196
476 bytecodes: [ 476 bytecodes: [
477 B(Ldar), R(new_target), 477 B(Ldar), R(new_target),
478 B(JumpIfUndefined), U8(21), 478 B(JumpIfUndefined), U8(21),
479 B(ResumeGenerator), R(new_target), 479 B(ResumeGenerator), R(new_target),
480 B(Star), R(2), 480 B(Star), R(2),
481 B(LdaZero), 481 B(LdaZero),
482 B(TestEqualStrict), R(2), U8(0), 482 B(TestEqualStrict), R(2), U8(0),
483 B(JumpIfTrue), U8(83), 483 B(JumpIfTrue), U8(75),
484 B(LdaSmi), U8(76), 484 B(LdaSmi), U8(76),
485 B(Star), R(3), 485 B(Star), R(3),
486 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1), 486 B(CallRuntime), U16(Runtime::kAbort), R(3), U8(1),
487 B(LdaSmi), U8(-2), 487 B(LdaSmi), U8(-2),
488 B(Star), R(2), 488 B(Star), R(2),
489 B(LdaConstant), U8(0), 489 B(LdaConstant), U8(0),
490 B(Star), R(5), 490 B(Star), R(5),
491 B(Mov), R(arg0), R(3), 491 B(Mov), R(arg0), R(3),
492 B(Mov), R(closure), R(4), 492 B(Mov), R(closure), R(4),
493 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3), 493 B(CallRuntime), U16(Runtime::kPushModuleContext), R(3), U8(3),
494 B(PushContext), R(0), 494 B(PushContext), R(0),
495 B(Ldar), R(this), 495 B(Ldar), R(this),
496 B(StaContextSlot), R(context), U8(4), U8(0), 496 B(StaCurrentContextSlot), U8(4),
497 B(LdaTheHole), 497 B(LdaTheHole),
498 B(Star), R(4), 498 B(Star), R(4),
499 B(LdaConstant), U8(1), 499 B(LdaConstant), U8(1),
500 B(Star), R(3), 500 B(Star), R(3),
501 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 501 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
502 /* 0 E> */ B(StackCheck), 502 /* 0 E> */ B(StackCheck),
503 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(4), 503 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(4),
504 B(Ldar), R(4), 504 B(Ldar), R(4),
505 B(Mov), R(closure), R(3), 505 B(Mov), R(closure), R(3),
506 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2), 506 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(3), U8 (2),
507 B(StaContextSlot), R(context), U8(5), U8(0), 507 B(StaCurrentContextSlot), U8(5),
508 B(Star), R(3), 508 B(Star), R(3),
509 B(LdrContextSlot), R(context), U8(5), U8(0), R(4), 509 B(LdrCurrentContextSlot), U8(5), R(4),
510 B(LdaZero), 510 B(LdaZero),
511 B(SuspendGenerator), R(4), 511 B(SuspendGenerator), R(4),
512 B(Ldar), R(3), 512 B(Ldar), R(3),
513 /* 51 S> */ B(Return), 513 /* 51 S> */ B(Return),
514 B(LdaSmi), U8(-2), 514 B(LdaSmi), U8(-2),
515 B(Star), R(2), 515 B(Star), R(2),
516 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1), 516 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(4 ), U8(1),
517 B(Star), R(5), 517 B(Star), R(5),
518 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1), 518 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(4), U8 (1),
519 B(Star), R(6), 519 B(Star), R(6),
(...skipping 18 matching lines...) Expand all
538 /* 19 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2), 538 /* 19 E> */ B(CallRuntime), U16(Runtime::kStoreModuleExport), R(3), U8(2),
539 /* 23 S> */ B(LdaConstant), U8(1), 539 /* 23 S> */ B(LdaConstant), U8(1),
540 B(Star), R(3), 540 B(Star), R(3),
541 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 541 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
542 B(Inc), U8(2), 542 B(Inc), U8(2),
543 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 543 /* 26 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
544 B(Ldar), R(closure), 544 B(Ldar), R(closure),
545 B(CreateBlockContext), U8(2), 545 B(CreateBlockContext), U8(2),
546 B(PushContext), R(1), 546 B(PushContext), R(1),
547 B(LdaTheHole), 547 B(LdaTheHole),
548 B(StaContextSlot), R(context), U8(4), U8(0), 548 B(StaCurrentContextSlot), U8(4),
549 /* 36 S> */ B(LdaUndefined), 549 /* 36 S> */ B(LdaUndefined),
550 /* 36 E> */ B(StaContextSlot), R(context), U8(4), U8(0), 550 /* 36 E> */ B(StaCurrentContextSlot), U8(4),
551 /* 41 S> */ B(LdaConstant), U8(1), 551 /* 41 S> */ B(LdaConstant), U8(1),
552 B(Star), R(3), 552 B(Star), R(3),
553 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1), 553 B(CallRuntime), U16(Runtime::kLoadModuleExport), R(3), U8(1),
554 B(Inc), U8(3), 554 B(Inc), U8(3),
555 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ), 555 /* 44 E> */ B(CallRuntime), U16(Runtime::kThrowConstAssignError), R(0), U8(0 ),
556 B(PopContext), R(1), 556 B(PopContext), R(1),
557 B(LdaUndefined), 557 B(LdaUndefined),
558 /* 51 S> */ B(Return), 558 /* 51 S> */ B(Return),
559 ] 559 ]
560 constant pool: [ 560 constant pool: [
561 FIXED_ARRAY_TYPE, 561 FIXED_ARRAY_TYPE,
562 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"], 562 ONE_BYTE_INTERNALIZED_STRING_TYPE ["foo"],
563 FIXED_ARRAY_TYPE, 563 FIXED_ARRAY_TYPE,
564 ] 564 ]
565 handlers: [ 565 handlers: [
566 ] 566 ]
567 567
568 --- 568 ---
569 snippet: " 569 snippet: "
570 export default (function () {}); 570 export default (function () {});
571 " 571 "
572 frame size: 8 572 frame size: 8
573 parameter count: 2 573 parameter count: 2
574 bytecode array length: 159 574 bytecode array length: 151
575 bytecodes: [ 575 bytecodes: [
576 B(Ldar), R(new_target), 576 B(Ldar), R(new_target),
577 B(JumpIfUndefined), U8(21), 577 B(JumpIfUndefined), U8(21),
578 B(ResumeGenerator), R(new_target), 578 B(ResumeGenerator), R(new_target),
579 B(Star), R(1), 579 B(Star), R(1),
580 B(LdaZero), 580 B(LdaZero),
581 B(TestEqualStrict), R(1), U8(0), 581 B(TestEqualStrict), R(1), U8(0),
582 B(JumpIfTrue), U8(83), 582 B(JumpIfTrue), U8(75),
583 B(LdaSmi), U8(76), 583 B(LdaSmi), U8(76),
584 B(Star), R(2), 584 B(Star), R(2),
585 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 585 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
586 B(LdaSmi), U8(-2), 586 B(LdaSmi), U8(-2),
587 B(Star), R(1), 587 B(Star), R(1),
588 B(LdaConstant), U8(0), 588 B(LdaConstant), U8(0),
589 B(Star), R(4), 589 B(Star), R(4),
590 B(Mov), R(arg0), R(2), 590 B(Mov), R(arg0), R(2),
591 B(Mov), R(closure), R(3), 591 B(Mov), R(closure), R(3),
592 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 592 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
593 B(PushContext), R(0), 593 B(PushContext), R(0),
594 B(Ldar), R(this), 594 B(Ldar), R(this),
595 B(StaContextSlot), R(context), U8(4), U8(0), 595 B(StaCurrentContextSlot), U8(4),
596 B(LdaTheHole), 596 B(LdaTheHole),
597 B(Star), R(3), 597 B(Star), R(3),
598 B(LdaConstant), U8(1), 598 B(LdaConstant), U8(1),
599 B(Star), R(2), 599 B(Star), R(2),
600 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2), 600 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2),
601 /* 0 E> */ B(StackCheck), 601 /* 0 E> */ B(StackCheck),
602 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3), 602 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3),
603 B(Ldar), R(3), 603 B(Ldar), R(3),
604 B(Mov), R(closure), R(2), 604 B(Mov), R(closure), R(2),
605 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 605 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
606 B(StaContextSlot), R(context), U8(5), U8(0), 606 B(StaCurrentContextSlot), U8(5),
607 B(Star), R(2), 607 B(Star), R(2),
608 B(LdrContextSlot), R(context), U8(5), U8(0), R(3), 608 B(LdrCurrentContextSlot), U8(5), R(3),
609 B(LdaZero), 609 B(LdaZero),
610 B(SuspendGenerator), R(3), 610 B(SuspendGenerator), R(3),
611 B(Ldar), R(2), 611 B(Ldar), R(2),
612 /* 32 S> */ B(Return), 612 /* 32 S> */ B(Return),
613 B(LdaSmi), U8(-2), 613 B(LdaSmi), U8(-2),
614 B(Star), R(1), 614 B(Star), R(1),
615 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 615 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
616 B(Star), R(4), 616 B(Star), R(4),
617 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 617 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
618 B(Star), R(5), 618 B(Star), R(5),
(...skipping 26 matching lines...) Expand all
645 ] 645 ]
646 handlers: [ 646 handlers: [
647 ] 647 ]
648 648
649 --- 649 ---
650 snippet: " 650 snippet: "
651 export default (class {}); 651 export default (class {});
652 " 652 "
653 frame size: 8 653 frame size: 8
654 parameter count: 2 654 parameter count: 2
655 bytecode array length: 196 655 bytecode array length: 184
656 bytecodes: [ 656 bytecodes: [
657 B(Ldar), R(new_target), 657 B(Ldar), R(new_target),
658 B(JumpIfUndefined), U8(21), 658 B(JumpIfUndefined), U8(21),
659 B(ResumeGenerator), R(new_target), 659 B(ResumeGenerator), R(new_target),
660 B(Star), R(1), 660 B(Star), R(1),
661 B(LdaZero), 661 B(LdaZero),
662 B(TestEqualStrict), R(1), U8(0), 662 B(TestEqualStrict), R(1), U8(0),
663 B(JumpIfTrue), U8(83), 663 B(JumpIfTrue), U8(75),
664 B(LdaSmi), U8(76), 664 B(LdaSmi), U8(76),
665 B(Star), R(2), 665 B(Star), R(2),
666 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 666 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
667 B(LdaSmi), U8(-2), 667 B(LdaSmi), U8(-2),
668 B(Star), R(1), 668 B(Star), R(1),
669 B(LdaConstant), U8(0), 669 B(LdaConstant), U8(0),
670 B(Star), R(4), 670 B(Star), R(4),
671 B(Mov), R(arg0), R(2), 671 B(Mov), R(arg0), R(2),
672 B(Mov), R(closure), R(3), 672 B(Mov), R(closure), R(3),
673 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 673 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
674 B(PushContext), R(0), 674 B(PushContext), R(0),
675 B(Ldar), R(this), 675 B(Ldar), R(this),
676 B(StaContextSlot), R(context), U8(4), U8(0), 676 B(StaCurrentContextSlot), U8(4),
677 B(LdaTheHole), 677 B(LdaTheHole),
678 B(Star), R(3), 678 B(Star), R(3),
679 B(LdaConstant), U8(1), 679 B(LdaConstant), U8(1),
680 B(Star), R(2), 680 B(Star), R(2),
681 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2), 681 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2),
682 /* 0 E> */ B(StackCheck), 682 /* 0 E> */ B(StackCheck),
683 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3), 683 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3),
684 B(Ldar), R(3), 684 B(Ldar), R(3),
685 B(Mov), R(closure), R(2), 685 B(Mov), R(closure), R(2),
686 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 686 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
687 B(StaContextSlot), R(context), U8(5), U8(0), 687 B(StaCurrentContextSlot), U8(5),
688 B(Star), R(2), 688 B(Star), R(2),
689 B(LdrContextSlot), R(context), U8(5), U8(0), R(3), 689 B(LdrCurrentContextSlot), U8(5), R(3),
690 B(LdaZero), 690 B(LdaZero),
691 B(SuspendGenerator), R(3), 691 B(SuspendGenerator), R(3),
692 B(Ldar), R(2), 692 B(Ldar), R(2),
693 /* 26 S> */ B(Return), 693 /* 26 S> */ B(Return),
694 B(LdaSmi), U8(-2), 694 B(LdaSmi), U8(-2),
695 B(Star), R(1), 695 B(Star), R(1),
696 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 696 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
697 B(Star), R(4), 697 B(Star), R(4),
698 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 698 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
699 B(Star), R(5), 699 B(Star), R(5),
(...skipping 16 matching lines...) Expand all
716 B(CreateClosure), U8(2), U8(0), 716 B(CreateClosure), U8(2), U8(0),
717 B(Star), R(3), 717 B(Star), R(3),
718 B(LdaSmi), U8(16), 718 B(LdaSmi), U8(16),
719 B(Star), R(4), 719 B(Star), R(4),
720 B(LdaSmi), U8(24), 720 B(LdaSmi), U8(24),
721 B(Star), R(5), 721 B(Star), R(5),
722 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4), 722 B(CallRuntime), U16(Runtime::kDefineClass), R(2), U8(4),
723 B(Star), R(2), 723 B(Star), R(2),
724 B(LdrNamedProperty), R(2), U8(3), U8(2), R(3), 724 B(LdrNamedProperty), R(2), U8(3), U8(2), R(3),
725 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1), 725 B(CallRuntime), U16(Runtime::kToFastProperties), R(2), U8(1),
726 B(StaContextSlot), R(context), U8(6), U8(0), 726 B(StaCurrentContextSlot), U8(6),
727 /* 16 E> */ B(LdrContextSlot), R(context), U8(6), U8(0), R(3), 727 /* 16 E> */ B(LdrCurrentContextSlot), U8(6), R(3),
728 B(LdaConstant), U8(1), 728 B(LdaConstant), U8(1),
729 B(Star), R(2), 729 B(Star), R(2),
730 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2), 730 B(CallRuntime), U16(Runtime::kStoreModuleExport), R(2), U8(2),
731 B(LdaUndefined), 731 B(LdaUndefined),
732 /* 26 S> */ B(Return), 732 /* 26 S> */ B(Return),
733 ] 733 ]
734 constant pool: [ 734 constant pool: [
735 FIXED_ARRAY_TYPE, 735 FIXED_ARRAY_TYPE,
736 ONE_BYTE_INTERNALIZED_STRING_TYPE ["default"], 736 ONE_BYTE_INTERNALIZED_STRING_TYPE ["default"],
737 SHARED_FUNCTION_INFO_TYPE, 737 SHARED_FUNCTION_INFO_TYPE,
738 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"], 738 ONE_BYTE_INTERNALIZED_STRING_TYPE ["prototype"],
739 ] 739 ]
740 handlers: [ 740 handlers: [
741 ] 741 ]
742 742
743 --- 743 ---
744 snippet: " 744 snippet: "
745 export {foo as goo} from \"bar\" 745 export {foo as goo} from \"bar\"
746 " 746 "
747 frame size: 8 747 frame size: 8
748 parameter count: 2 748 parameter count: 2
749 bytecode array length: 133 749 bytecode array length: 125
750 bytecodes: [ 750 bytecodes: [
751 B(Ldar), R(new_target), 751 B(Ldar), R(new_target),
752 B(JumpIfUndefined), U8(21), 752 B(JumpIfUndefined), U8(21),
753 B(ResumeGenerator), R(new_target), 753 B(ResumeGenerator), R(new_target),
754 B(Star), R(1), 754 B(Star), R(1),
755 B(LdaZero), 755 B(LdaZero),
756 B(TestEqualStrict), R(1), U8(0), 756 B(TestEqualStrict), R(1), U8(0),
757 B(JumpIfTrue), U8(71), 757 B(JumpIfTrue), U8(63),
758 B(LdaSmi), U8(76), 758 B(LdaSmi), U8(76),
759 B(Star), R(2), 759 B(Star), R(2),
760 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 760 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
761 B(LdaSmi), U8(-2), 761 B(LdaSmi), U8(-2),
762 B(Star), R(1), 762 B(Star), R(1),
763 B(LdaConstant), U8(0), 763 B(LdaConstant), U8(0),
764 B(Star), R(4), 764 B(Star), R(4),
765 B(Mov), R(arg0), R(2), 765 B(Mov), R(arg0), R(2),
766 B(Mov), R(closure), R(3), 766 B(Mov), R(closure), R(3),
767 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 767 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
768 B(PushContext), R(0), 768 B(PushContext), R(0),
769 B(Ldar), R(this), 769 B(Ldar), R(this),
770 B(StaContextSlot), R(context), U8(4), U8(0), 770 B(StaCurrentContextSlot), U8(4),
771 /* 0 E> */ B(StackCheck), 771 /* 0 E> */ B(StackCheck),
772 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3), 772 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3),
773 B(Ldar), R(3), 773 B(Ldar), R(3),
774 B(Mov), R(closure), R(2), 774 B(Mov), R(closure), R(2),
775 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 775 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
776 B(StaContextSlot), R(context), U8(5), U8(0), 776 B(StaCurrentContextSlot), U8(5),
777 B(Star), R(2), 777 B(Star), R(2),
778 B(LdrContextSlot), R(context), U8(5), U8(0), R(3), 778 B(LdrCurrentContextSlot), U8(5), R(3),
779 B(LdaZero), 779 B(LdaZero),
780 B(SuspendGenerator), R(3), 780 B(SuspendGenerator), R(3),
781 B(Ldar), R(2), 781 B(Ldar), R(2),
782 /* 30 S> */ B(Return), 782 /* 30 S> */ B(Return),
783 B(LdaSmi), U8(-2), 783 B(LdaSmi), U8(-2),
784 B(Star), R(1), 784 B(Star), R(1),
785 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 785 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
786 B(Star), R(4), 786 B(Star), R(4),
787 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 787 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
788 B(Star), R(5), 788 B(Star), R(5),
(...skipping 19 matching lines...) Expand all
808 ] 808 ]
809 handlers: [ 809 handlers: [
810 ] 810 ]
811 811
812 --- 812 ---
813 snippet: " 813 snippet: "
814 export * from \"bar\" 814 export * from \"bar\"
815 " 815 "
816 frame size: 8 816 frame size: 8
817 parameter count: 2 817 parameter count: 2
818 bytecode array length: 133 818 bytecode array length: 125
819 bytecodes: [ 819 bytecodes: [
820 B(Ldar), R(new_target), 820 B(Ldar), R(new_target),
821 B(JumpIfUndefined), U8(21), 821 B(JumpIfUndefined), U8(21),
822 B(ResumeGenerator), R(new_target), 822 B(ResumeGenerator), R(new_target),
823 B(Star), R(1), 823 B(Star), R(1),
824 B(LdaZero), 824 B(LdaZero),
825 B(TestEqualStrict), R(1), U8(0), 825 B(TestEqualStrict), R(1), U8(0),
826 B(JumpIfTrue), U8(71), 826 B(JumpIfTrue), U8(63),
827 B(LdaSmi), U8(76), 827 B(LdaSmi), U8(76),
828 B(Star), R(2), 828 B(Star), R(2),
829 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 829 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
830 B(LdaSmi), U8(-2), 830 B(LdaSmi), U8(-2),
831 B(Star), R(1), 831 B(Star), R(1),
832 B(LdaConstant), U8(0), 832 B(LdaConstant), U8(0),
833 B(Star), R(4), 833 B(Star), R(4),
834 B(Mov), R(arg0), R(2), 834 B(Mov), R(arg0), R(2),
835 B(Mov), R(closure), R(3), 835 B(Mov), R(closure), R(3),
836 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3), 836 B(CallRuntime), U16(Runtime::kPushModuleContext), R(2), U8(3),
837 B(PushContext), R(0), 837 B(PushContext), R(0),
838 B(Ldar), R(this), 838 B(Ldar), R(this),
839 B(StaContextSlot), R(context), U8(4), U8(0), 839 B(StaCurrentContextSlot), U8(4),
840 /* 0 E> */ B(StackCheck), 840 /* 0 E> */ B(StackCheck),
841 /* 0 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(3), 841 /* 0 E> */ B(LdrCurrentContextSlot), U8(4), R(3),
842 B(Ldar), R(3), 842 B(Ldar), R(3),
843 B(Mov), R(closure), R(2), 843 B(Mov), R(closure), R(2),
844 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2), 844 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(2), U8 (2),
845 B(StaContextSlot), R(context), U8(5), U8(0), 845 B(StaCurrentContextSlot), U8(5),
846 B(Star), R(2), 846 B(Star), R(2),
847 B(LdrContextSlot), R(context), U8(5), U8(0), R(3), 847 B(LdrCurrentContextSlot), U8(5), R(3),
848 B(LdaZero), 848 B(LdaZero),
849 B(SuspendGenerator), R(3), 849 B(SuspendGenerator), R(3),
850 B(Ldar), R(2), 850 B(Ldar), R(2),
851 /* 19 S> */ B(Return), 851 /* 19 S> */ B(Return),
852 B(LdaSmi), U8(-2), 852 B(LdaSmi), U8(-2),
853 B(Star), R(1), 853 B(Star), R(1),
854 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1), 854 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(3 ), U8(1),
855 B(Star), R(4), 855 B(Star), R(4),
856 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1), 856 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(3), U8 (1),
857 B(Star), R(5), 857 B(Star), R(5),
(...skipping 13 matching lines...) Expand all
871 /* 0 E> */ B(Throw), 871 /* 0 E> */ B(Throw),
872 B(LdaUndefined), 872 B(LdaUndefined),
873 /* 19 S> */ B(Return), 873 /* 19 S> */ B(Return),
874 ] 874 ]
875 constant pool: [ 875 constant pool: [
876 FIXED_ARRAY_TYPE, 876 FIXED_ARRAY_TYPE,
877 ] 877 ]
878 handlers: [ 878 handlers: [
879 ] 879 ]
880 880
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698