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

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

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

Powered by Google App Engine
This is Rietveld 408576698