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

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

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

Powered by Google App Engine
This is Rietveld 408576698