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