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