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

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

Issue 2336643002: [Interpreter] Move context chain search loop to handler (Closed)
Patch Set: Fix documentation nits Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # 1 #
2 # Autogenerated by generate-bytecode-expectations. 2 # Autogenerated by generate-bytecode-expectations.
3 # 3 #
4 4
5 --- 5 ---
6 execute: yes 6 execute: yes
7 wrap: no 7 wrap: no
8 test function name: f 8 test function name: f
9 9
10 --- 10 ---
11 snippet: " 11 snippet: "
12 function* f() { } 12 function* f() { }
13 f(); 13 f();
14 " 14 "
15 frame size: 11 15 frame size: 11
16 parameter count: 1 16 parameter count: 1
17 bytecode array length: 207 17 bytecode array length: 212
18 bytecodes: [ 18 bytecodes: [
19 B(Ldar), R(new_target), 19 B(Ldar), R(new_target),
20 B(JumpIfUndefined), U8(21), 20 B(JumpIfUndefined), U8(21),
21 B(ResumeGenerator), R(new_target), 21 B(ResumeGenerator), R(new_target),
22 B(Star), R(1), 22 B(Star), R(1),
23 B(LdaZero), 23 B(LdaZero),
24 B(TestEqualStrict), R(1), U8(0), 24 B(TestEqualStrict), R(1), U8(0),
25 B(JumpIfTrue), U8(57), 25 B(JumpIfTrue), U8(61),
26 B(LdaSmi), U8(76), 26 B(LdaSmi), U8(76),
27 B(Star), R(2), 27 B(Star), R(2),
28 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 28 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
29 B(LdaSmi), U8(-2), 29 B(LdaSmi), U8(-2),
30 B(Star), R(1), 30 B(Star), R(1),
31 B(CreateFunctionContext), U8(2), 31 B(CreateFunctionContext), U8(2),
32 B(PushContext), R(0), 32 B(PushContext), R(0),
33 B(Ldar), R(this), 33 B(Ldar), R(this),
34 B(StaContextSlot), R(context), U8(4), 34 B(StaContextSlot), R(context), U8(4), U8(0),
35 /* 11 E> */ B(StackCheck), 35 /* 11 E> */ B(StackCheck),
36 B(Mov), R(context), R(4), 36 B(Mov), R(context), R(4),
37 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), R(6), 37 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(6),
38 B(Ldar), R(6), 38 B(Ldar), R(6),
39 B(Mov), R(closure), R(5), 39 B(Mov), R(closure), R(5),
40 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8 (2), 40 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8 (2),
41 B(StaContextSlot), R(context), U8(5), 41 B(StaContextSlot), R(context), U8(5), U8(0),
42 B(Star), R(5), 42 B(Star), R(5),
43 B(LdrContextSlot), R(context), U8(5), R(6), 43 B(LdrContextSlot), R(context), U8(5), U8(0), R(6),
44 B(LdaZero), 44 B(LdaZero),
45 B(SuspendGenerator), R(6), 45 B(SuspendGenerator), R(6),
46 B(Ldar), R(5), 46 B(Ldar), R(5),
47 /* 16 S> */ B(Return), 47 /* 16 S> */ B(Return),
48 B(LdaSmi), U8(-2), 48 B(LdaSmi), U8(-2),
49 B(Star), R(1), 49 B(Star), R(1),
50 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(6 ), U8(1), 50 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(6 ), U8(1),
51 B(Star), R(7), 51 B(Star), R(7),
52 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(6), U8 (1), 52 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(6), U8 (1),
53 B(Star), R(8), 53 B(Star), R(8),
(...skipping 23 matching lines...) Expand all
77 B(Star), R(2), 77 B(Star), R(2),
78 B(Jump), U8(14), 78 B(Jump), U8(14),
79 B(LdaSmi), U8(-1), 79 B(LdaSmi), U8(-1),
80 B(Star), R(2), 80 B(Star), R(2),
81 B(Jump), U8(8), 81 B(Jump), U8(8),
82 B(Star), R(3), 82 B(Star), R(3),
83 B(LdaSmi), U8(2), 83 B(LdaSmi), U8(2),
84 B(Star), R(2), 84 B(Star), R(2),
85 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 85 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
86 B(Star), R(4), 86 B(Star), R(4),
87 B(LdrContextSlot), R(context), U8(5), R(5), 87 B(LdrContextSlot), R(context), U8(5), U8(0), R(5),
88 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(5), U8(1), 88 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(5), U8(1),
89 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(4 ), U8(1), 89 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(4 ), U8(1),
90 B(LdaZero), 90 B(LdaZero),
91 B(TestEqualStrict), R(2), U8(0), 91 B(TestEqualStrict), R(2), U8(0),
92 B(JumpIfTrue), U8(18), 92 B(JumpIfTrue), U8(18),
93 B(LdaSmi), U8(1), 93 B(LdaSmi), U8(1),
94 B(TestEqualStrict), R(2), U8(0), 94 B(TestEqualStrict), R(2), U8(0),
95 B(JumpIfTrue), U8(14), 95 B(JumpIfTrue), U8(14),
96 B(LdaSmi), U8(2), 96 B(LdaSmi), U8(2),
97 B(TestEqualStrict), R(2), U8(0), 97 B(TestEqualStrict), R(2), U8(0),
98 B(JumpIfTrue), U8(10), 98 B(JumpIfTrue), U8(10),
99 B(Jump), U8(11), 99 B(Jump), U8(11),
100 B(Ldar), R(3), 100 B(Ldar), R(3),
101 /* 16 S> */ B(Return), 101 /* 16 S> */ B(Return),
102 B(Ldar), R(3), 102 B(Ldar), R(3),
103 /* 16 S> */ B(Return), 103 /* 16 S> */ B(Return),
104 B(Ldar), R(3), 104 B(Ldar), R(3),
105 B(ReThrow), 105 B(ReThrow),
106 B(LdaUndefined), 106 B(LdaUndefined),
107 /* 16 S> */ B(Return), 107 /* 16 S> */ B(Return),
108 ] 108 ]
109 constant pool: [ 109 constant pool: [
110 ] 110 ]
111 handlers: [ 111 handlers: [
112 [40, 141, 147], 112 [41, 145, 151],
113 ] 113 ]
114 114
115 --- 115 ---
116 snippet: " 116 snippet: "
117 function* f() { yield 42 } 117 function* f() { yield 42 }
118 f(); 118 f();
119 " 119 "
120 frame size: 11 120 frame size: 11
121 parameter count: 1 121 parameter count: 1
122 bytecode array length: 304 122 bytecode array length: 310
123 bytecodes: [ 123 bytecodes: [
124 B(Ldar), R(new_target), 124 B(Ldar), R(new_target),
125 B(JumpIfUndefined), U8(28), 125 B(JumpIfUndefined), U8(28),
126 B(ResumeGenerator), R(new_target), 126 B(ResumeGenerator), R(new_target),
127 B(Star), R(1), 127 B(Star), R(1),
128 B(LdaZero), 128 B(LdaZero),
129 B(TestEqualStrict), R(1), U8(0), 129 B(TestEqualStrict), R(1), U8(0),
130 B(JumpIfTrue), U8(64), 130 B(JumpIfTrue), U8(68),
131 B(LdaSmi), U8(1), 131 B(LdaSmi), U8(1),
132 B(TestEqualStrict), R(1), U8(0), 132 B(TestEqualStrict), R(1), U8(0),
133 B(JumpIfTrueConstant), U8(0), 133 B(JumpIfTrueConstant), U8(0),
134 B(LdaSmi), U8(76), 134 B(LdaSmi), U8(76),
135 B(Star), R(2), 135 B(Star), R(2),
136 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1), 136 B(CallRuntime), U16(Runtime::kAbort), R(2), U8(1),
137 B(LdaSmi), U8(-2), 137 B(LdaSmi), U8(-2),
138 B(Star), R(1), 138 B(Star), R(1),
139 B(CreateFunctionContext), U8(2), 139 B(CreateFunctionContext), U8(2),
140 B(PushContext), R(0), 140 B(PushContext), R(0),
141 B(Ldar), R(this), 141 B(Ldar), R(this),
142 B(StaContextSlot), R(context), U8(4), 142 B(StaContextSlot), R(context), U8(4), U8(0),
143 /* 11 E> */ B(StackCheck), 143 /* 11 E> */ B(StackCheck),
144 B(Mov), R(context), R(4), 144 B(Mov), R(context), R(4),
145 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), R(6), 145 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(6),
146 B(Ldar), R(6), 146 B(Ldar), R(6),
147 B(Mov), R(closure), R(5), 147 B(Mov), R(closure), R(5),
148 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8 (2), 148 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(5), U8 (2),
149 B(StaContextSlot), R(context), U8(5), 149 B(StaContextSlot), R(context), U8(5), U8(0),
150 B(Star), R(5), 150 B(Star), R(5),
151 B(LdrContextSlot), R(context), U8(5), R(6), 151 B(LdrContextSlot), R(context), U8(5), U8(0), R(6),
152 B(LdaZero), 152 B(LdaZero),
153 B(SuspendGenerator), R(6), 153 B(SuspendGenerator), R(6),
154 B(Ldar), R(5), 154 B(Ldar), R(5),
155 /* 25 S> */ B(Return), 155 /* 25 S> */ B(Return),
156 B(LdaSmi), U8(-2), 156 B(LdaSmi), U8(-2),
157 B(Star), R(1), 157 B(Star), R(1),
158 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(6 ), U8(1), 158 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(6 ), U8(1),
159 B(Star), R(7), 159 B(Star), R(7),
160 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(6), U8 (1), 160 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(6), U8 (1),
161 B(Star), R(8), 161 B(Star), R(8),
162 B(LdaZero), 162 B(LdaZero),
163 B(TestEqualStrict), R(8), U8(0), 163 B(TestEqualStrict), R(8), U8(0),
164 B(JumpIfTrue), U8(32), 164 B(JumpIfTrue), U8(32),
165 B(LdaSmi), U8(2), 165 B(LdaSmi), U8(2),
166 B(TestEqualStrict), R(8), U8(0), 166 B(TestEqualStrict), R(8), U8(0),
167 B(JumpIfTrue), U8(22), 167 B(JumpIfTrue), U8(22),
168 B(Jump), U8(2), 168 B(Jump), U8(2),
169 B(LdaTrue), 169 B(LdaTrue),
170 B(Star), R(10), 170 B(Star), R(10),
171 B(Mov), R(7), R(9), 171 B(Mov), R(7), R(9),
172 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(9), U8 (2), 172 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(9), U8 (2),
173 B(Star), R(3), 173 B(Star), R(3),
174 B(LdaZero), 174 B(LdaZero),
175 B(Star), R(2), 175 B(Star), R(2),
176 B(Jump), U8(115), 176 B(Jump), U8(116),
177 B(Ldar), R(7), 177 B(Ldar), R(7),
178 /* 11 E> */ B(Throw), 178 /* 11 E> */ B(Throw),
179 /* 16 S> */ B(LdaSmi), U8(42), 179 /* 16 S> */ B(LdaSmi), U8(42),
180 B(Star), R(5), 180 B(Star), R(5),
181 B(LdaFalse), 181 B(LdaFalse),
182 B(Star), R(6), 182 B(Star), R(6),
183 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8 (2), 183 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8 (2),
184 B(Star), R(7), 184 B(Star), R(7),
185 B(LdrContextSlot), R(context), U8(5), R(5), 185 B(LdrContextSlot), R(context), U8(5), U8(0), R(5),
186 B(LdaSmi), U8(1), 186 B(LdaSmi), U8(1),
187 B(SuspendGenerator), R(5), 187 B(SuspendGenerator), R(5),
188 B(Ldar), R(7), 188 B(Ldar), R(7),
189 /* 25 S> */ B(Return), 189 /* 25 S> */ B(Return),
190 B(LdaSmi), U8(-2), 190 B(LdaSmi), U8(-2),
191 B(Star), R(1), 191 B(Star), R(1),
192 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(5 ), U8(1), 192 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(5 ), U8(1),
193 B(Star), R(6), 193 B(Star), R(6),
194 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(5), U8 (1), 194 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(5), U8 (1),
195 B(Star), R(8), 195 B(Star), R(8),
(...skipping 23 matching lines...) Expand all
219 B(Star), R(2), 219 B(Star), R(2),
220 B(Jump), U8(14), 220 B(Jump), U8(14),
221 B(LdaSmi), U8(-1), 221 B(LdaSmi), U8(-1),
222 B(Star), R(2), 222 B(Star), R(2),
223 B(Jump), U8(8), 223 B(Jump), U8(8),
224 B(Star), R(3), 224 B(Star), R(3),
225 B(LdaSmi), U8(3), 225 B(LdaSmi), U8(3),
226 B(Star), R(2), 226 B(Star), R(2),
227 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 227 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
228 B(Star), R(4), 228 B(Star), R(4),
229 B(LdrContextSlot), R(context), U8(5), R(5), 229 B(LdrContextSlot), R(context), U8(5), U8(0), R(5),
230 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(5), U8(1), 230 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(5), U8(1),
231 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(4 ), U8(1), 231 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(4 ), U8(1),
232 B(LdaZero), 232 B(LdaZero),
233 B(TestEqualStrict), R(2), U8(0), 233 B(TestEqualStrict), R(2), U8(0),
234 B(JumpIfTrue), U8(25), 234 B(JumpIfTrue), U8(25),
235 B(LdaSmi), U8(1), 235 B(LdaSmi), U8(1),
236 B(TestEqualStrict), R(2), U8(0), 236 B(TestEqualStrict), R(2), U8(0),
237 B(JumpIfTrue), U8(21), 237 B(JumpIfTrue), U8(21),
238 B(LdaSmi), U8(2), 238 B(LdaSmi), U8(2),
239 B(TestEqualStrict), R(2), U8(0), 239 B(TestEqualStrict), R(2), U8(0),
240 B(JumpIfTrue), U8(17), 240 B(JumpIfTrue), U8(17),
241 B(LdaSmi), U8(3), 241 B(LdaSmi), U8(3),
242 B(TestEqualStrict), R(2), U8(0), 242 B(TestEqualStrict), R(2), U8(0),
243 B(JumpIfTrue), U8(13), 243 B(JumpIfTrue), U8(13),
244 B(Jump), U8(14), 244 B(Jump), U8(14),
245 B(Ldar), R(3), 245 B(Ldar), R(3),
246 /* 25 S> */ B(Return), 246 /* 25 S> */ B(Return),
247 B(Ldar), R(3), 247 B(Ldar), R(3),
248 /* 25 S> */ B(Return), 248 /* 25 S> */ B(Return),
249 B(Ldar), R(3), 249 B(Ldar), R(3),
250 /* 25 S> */ B(Return), 250 /* 25 S> */ B(Return),
251 B(Ldar), R(3), 251 B(Ldar), R(3),
252 B(ReThrow), 252 B(ReThrow),
253 B(LdaUndefined), 253 B(LdaUndefined),
254 /* 25 S> */ B(Return), 254 /* 25 S> */ B(Return),
255 ] 255 ]
256 constant pool: [ 256 constant pool: [
257 Smi [136], 257 Smi [141],
258 ] 258 ]
259 handlers: [ 259 handlers: [
260 [47, 228, 234], 260 [48, 233, 239],
261 ] 261 ]
262 262
263 --- 263 ---
264 snippet: " 264 snippet: "
265 function* f() { for (let x of [42]) yield x } 265 function* f() { for (let x of [42]) yield x }
266 f(); 266 f();
267 " 267 "
268 frame size: 18 268 frame size: 18
269 parameter count: 1 269 parameter count: 1
270 bytecode array length: 765 270 bytecode array length: 805
271 bytecodes: [ 271 bytecodes: [
272 B(Ldar), R(new_target), 272 B(Ldar), R(new_target),
273 B(JumpIfUndefined), U8(28), 273 B(JumpIfUndefined), U8(28),
274 B(ResumeGenerator), R(new_target), 274 B(ResumeGenerator), R(new_target),
275 B(Star), R(4), 275 B(Star), R(4),
276 B(LdaZero), 276 B(LdaZero),
277 B(TestEqualStrict), R(4), U8(0), 277 B(TestEqualStrict), R(4), U8(0),
278 B(JumpIfTrue), U8(64), 278 B(JumpIfTrue), U8(68),
279 B(LdaSmi), U8(1), 279 B(LdaSmi), U8(1),
280 B(TestEqualStrict), R(4), U8(0), 280 B(TestEqualStrict), R(4), U8(0),
281 B(JumpIfTrueConstant), U8(3), 281 B(JumpIfTrueConstant), U8(3),
282 B(LdaSmi), U8(76), 282 B(LdaSmi), U8(76),
283 B(Star), R(5), 283 B(Star), R(5),
284 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1), 284 B(CallRuntime), U16(Runtime::kAbort), R(5), U8(1),
285 B(LdaSmi), U8(-2), 285 B(LdaSmi), U8(-2),
286 B(Star), R(4), 286 B(Star), R(4),
287 B(CreateFunctionContext), U8(9), 287 B(CreateFunctionContext), U8(9),
288 B(PushContext), R(0), 288 B(PushContext), R(0),
289 B(Ldar), R(this), 289 B(Ldar), R(this),
290 B(StaContextSlot), R(context), U8(4), 290 B(StaContextSlot), R(context), U8(4), U8(0),
291 /* 11 E> */ B(StackCheck), 291 /* 11 E> */ B(StackCheck),
292 B(Mov), R(context), R(7), 292 B(Mov), R(context), R(7),
293 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), R(9), 293 /* 11 E> */ B(LdrContextSlot), R(context), U8(4), U8(0), R(9),
294 B(Ldar), R(9), 294 B(Ldar), R(9),
295 B(Mov), R(closure), R(8), 295 B(Mov), R(closure), R(8),
296 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(8), U8 (2), 296 B(CallRuntime), U16(Runtime::kCreateJSGeneratorObject), R(8), U8 (2),
297 B(StaContextSlot), R(context), U8(5), 297 B(StaContextSlot), R(context), U8(5), U8(0),
298 B(Star), R(8), 298 B(Star), R(8),
299 B(LdrContextSlot), R(context), U8(5), R(9), 299 B(LdrContextSlot), R(context), U8(5), U8(0), R(9),
300 B(LdaZero), 300 B(LdaZero),
301 B(SuspendGenerator), R(9), 301 B(SuspendGenerator), R(9),
302 B(Ldar), R(8), 302 B(Ldar), R(8),
303 /* 44 S> */ B(Return), 303 /* 44 S> */ B(Return),
304 B(LdaSmi), U8(-2), 304 B(LdaSmi), U8(-2),
305 B(Star), R(4), 305 B(Star), R(4),
306 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(9 ), U8(1), 306 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(9 ), U8(1),
307 B(Star), R(10), 307 B(Star), R(10),
308 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(9), U8 (1), 308 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(9), U8 (1),
309 B(Star), R(11), 309 B(Star), R(11),
310 B(LdaZero), 310 B(LdaZero),
311 B(TestEqualStrict), R(11), U8(0), 311 B(TestEqualStrict), R(11), U8(0),
312 B(JumpIfTrue), U8(32), 312 B(JumpIfTrue), U8(32),
313 B(LdaSmi), U8(2), 313 B(LdaSmi), U8(2),
314 B(TestEqualStrict), R(11), U8(0), 314 B(TestEqualStrict), R(11), U8(0),
315 B(JumpIfTrue), U8(22), 315 B(JumpIfTrue), U8(22),
316 B(Jump), U8(2), 316 B(Jump), U8(2),
317 B(LdaTrue), 317 B(LdaTrue),
318 B(Star), R(13), 318 B(Star), R(13),
319 B(Mov), R(10), R(12), 319 B(Mov), R(10), R(12),
320 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U 8(2), 320 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U 8(2),
321 B(Star), R(6), 321 B(Star), R(6),
322 B(LdaZero), 322 B(LdaZero),
323 B(Star), R(5), 323 B(Star), R(5),
324 B(JumpConstant), U8(19), 324 B(JumpConstant), U8(20),
325 B(Ldar), R(10), 325 B(Ldar), R(10),
326 /* 11 E> */ B(Throw), 326 /* 11 E> */ B(Throw),
327 B(Ldar), R(closure), 327 B(Ldar), R(closure),
328 B(CreateBlockContext), U8(0), 328 B(CreateBlockContext), U8(0),
329 B(PushContext), R(1), 329 B(PushContext), R(1),
330 B(LdaTheHole), 330 B(LdaTheHole),
331 B(StaContextSlot), R(context), U8(4), 331 B(StaContextSlot), R(context), U8(4), U8(0),
332 B(LdaZero), 332 B(LdaZero),
333 B(StaContextSlot), R(1), U8(9), 333 B(StaContextSlot), R(1), U8(9), U8(0),
334 B(Mov), R(context), R(10), 334 B(Mov), R(context), R(10),
335 B(Mov), R(context), R(11), 335 B(Mov), R(context), R(11),
336 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(0), U8(1), 336 /* 30 S> */ B(CreateArrayLiteral), U8(1), U8(0), U8(1),
337 B(Star), R(13), 337 B(Star), R(13),
338 B(LdaConstant), U8(2), 338 B(LdaConstant), U8(2),
339 /* 30 E> */ B(LdrKeyedProperty), R(13), U8(3), R(12), 339 /* 30 E> */ B(LdrKeyedProperty), R(13), U8(3), R(12),
340 /* 30 E> */ B(Call), R(12), R(13), U8(1), U8(1), 340 /* 30 E> */ B(Call), R(12), R(13), U8(1), U8(1),
341 /* 30 E> */ B(StaContextSlot), R(1), U8(7), 341 /* 30 E> */ B(StaContextSlot), R(1), U8(7), U8(0),
342 B(LdaSmi), U8(-2), 342 B(LdaSmi), U8(-2),
343 B(TestEqual), R(4), U8(0), 343 B(TestEqual), R(4), U8(0),
344 B(JumpIfTrue), U8(18), 344 B(JumpIfTrue), U8(18),
345 B(LdaSmi), U8(1), 345 B(LdaSmi), U8(1),
346 B(TestEqualStrict), R(4), U8(0), 346 B(TestEqualStrict), R(4), U8(0),
347 B(JumpIfTrueConstant), U8(9), 347 B(JumpIfTrueConstant), U8(9),
348 B(LdaSmi), U8(76), 348 B(LdaSmi), U8(76),
349 B(Star), R(12), 349 B(Star), R(12),
350 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1), 350 B(CallRuntime), U16(Runtime::kAbort), R(12), U8(1),
351 /* 27 S> */ B(LdrContextSlot), R(1), U8(7), R(14), 351 /* 27 S> */ B(LdrContextSlot), R(1), U8(7), U8(0), R(14),
352 B(LdrNamedProperty), R(14), U8(4), U8(7), R(13), 352 B(LdrNamedProperty), R(14), U8(4), U8(7), R(13),
353 /* 27 E> */ B(Call), R(13), R(14), U8(1), U8(5), 353 /* 27 E> */ B(Call), R(13), R(14), U8(1), U8(5),
354 /* 27 E> */ B(StaContextSlot), R(1), U8(8), 354 /* 27 E> */ B(StaContextSlot), R(1), U8(8), U8(0),
355 B(Star), R(12), 355 B(Star), R(12),
356 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1), 356 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(12), U8(1),
357 B(ToBooleanLogicalNot), 357 B(ToBooleanLogicalNot),
358 B(JumpIfFalse), U8(11), 358 B(JumpIfFalse), U8(12),
359 B(LdrContextSlot), R(1), U8(8), R(12), 359 B(LdrContextSlot), R(1), U8(8), U8(0), R(12),
360 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (12), U8(1), 360 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (12), U8(1),
361 B(LdrContextSlot), R(1), U8(8), R(12), 361 B(LdrContextSlot), R(1), U8(8), U8(0), R(12),
362 B(LdaNamedProperty), R(12), U8(5), U8(9), 362 B(LdaNamedProperty), R(12), U8(5), U8(9),
363 B(JumpIfToBooleanTrueConstant), U8(10), 363 B(JumpIfToBooleanTrueConstant), U8(10),
364 B(LdrContextSlot), R(1), U8(8), R(12), 364 B(LdrContextSlot), R(1), U8(8), U8(0), R(12),
365 B(LdaNamedProperty), R(12), U8(6), U8(11), 365 B(LdaNamedProperty), R(12), U8(6), U8(11),
366 B(StaContextSlot), R(1), U8(10), 366 B(StaContextSlot), R(1), U8(10), U8(0),
367 B(LdaSmi), U8(2), 367 B(LdaSmi), U8(2),
368 B(StaContextSlot), R(1), U8(9), 368 B(StaContextSlot), R(1), U8(9), U8(0),
369 B(LdaContextSlot), R(1), U8(10), 369 B(LdaContextSlot), R(1), U8(10), U8(0),
370 B(StaContextSlot), R(1), U8(6), 370 B(StaContextSlot), R(1), U8(6), U8(0),
371 /* 16 E> */ B(StackCheck), 371 /* 16 E> */ B(StackCheck),
372 B(Ldar), R(closure), 372 B(Ldar), R(closure),
373 B(CreateBlockContext), U8(7), 373 B(CreateBlockContext), U8(7),
374 B(PushContext), R(2), 374 B(PushContext), R(2),
375 B(LdaTheHole), 375 B(LdaTheHole),
376 B(StaContextSlot), R(context), U8(4), 376 B(StaContextSlot), R(context), U8(4), U8(0),
377 B(LdaContextSlot), R(1), U8(6), 377 B(LdaContextSlot), R(1), U8(6), U8(0),
378 B(StaContextSlot), R(context), U8(4), 378 B(StaContextSlot), R(context), U8(4), U8(0),
379 /* 36 S> */ B(LdaContextSlot), R(context), U8(4), 379 /* 36 S> */ B(LdaContextSlot), R(context), U8(4), U8(0),
380 B(JumpIfNotHole), U8(11), 380 B(JumpIfNotHole), U8(11),
381 B(LdaConstant), U8(8), 381 B(LdaConstant), U8(8),
382 B(Star), R(13), 382 B(Star), R(13),
383 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(13), U8(1) , 383 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(13), U8(1) ,
384 B(Star), R(12), 384 B(Star), R(12),
385 B(LdaFalse), 385 B(LdaFalse),
386 B(Star), R(13), 386 B(Star), R(13),
387 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U 8(2), 387 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(12), U 8(2),
388 B(Star), R(14), 388 B(Star), R(14),
389 B(LdrContextSlot), R(1), U8(5), R(12), 389 B(LdrContextSlot), R(1), U8(5), U8(0), R(12),
390 B(LdaSmi), U8(1), 390 B(LdaSmi), U8(1),
391 B(SuspendGenerator), R(12), 391 B(SuspendGenerator), R(12),
392 B(Ldar), R(14), 392 B(Ldar), R(14),
393 /* 44 S> */ B(Return), 393 /* 44 S> */ B(Return),
394 B(LdaSmi), U8(-2), 394 B(LdaSmi), U8(-2),
395 B(Star), R(4), 395 B(Star), R(4),
396 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(1 2), U8(1), 396 B(CallRuntime), U16(Runtime::k_GeneratorGetInputOrDebugPos), R(1 2), U8(1),
397 B(Star), R(13), 397 B(Star), R(13),
398 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(12), U 8(1), 398 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(12), U 8(1),
399 B(Star), R(15), 399 B(Star), R(15),
(...skipping 10 matching lines...) Expand all
410 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(16), U 8(2), 410 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(16), U 8(2),
411 B(PopContext), R(2), 411 B(PopContext), R(2),
412 B(PopContext), R(2), 412 B(PopContext), R(2),
413 B(PopContext), R(2), 413 B(PopContext), R(2),
414 B(PopContext), R(2), 414 B(PopContext), R(2),
415 B(PopContext), R(2), 415 B(PopContext), R(2),
416 B(PopContext), R(2), 416 B(PopContext), R(2),
417 B(Star), R(9), 417 B(Star), R(9),
418 B(LdaZero), 418 B(LdaZero),
419 B(Star), R(8), 419 B(Star), R(8),
420 B(Jump), U8(70), 420 B(Jump), U8(74),
421 B(Ldar), R(13), 421 B(Ldar), R(13),
422 /* 36 E> */ B(Throw), 422 /* 36 E> */ B(Throw),
423 B(Ldar), R(13), 423 B(Ldar), R(13),
424 B(PopContext), R(2), 424 B(PopContext), R(2),
425 B(LdaZero), 425 B(LdaZero),
426 B(StaContextSlot), R(1), U8(9), 426 B(StaContextSlot), R(1), U8(9), U8(0),
427 B(Wide), B(Jump), U16(-219), 427 B(Wide), B(Jump), U16(-234),
428 B(Jump), U8(41), 428 B(Jump), U8(44),
429 B(Star), R(12), 429 B(Star), R(12),
430 B(Ldar), R(closure), 430 B(Ldar), R(closure),
431 B(CreateCatchContext), R(12), U8(11), U8(12), 431 B(CreateCatchContext), R(12), U8(11), U8(12),
432 B(Star), R(11), 432 B(Star), R(11),
433 B(PushContext), R(2), 433 B(PushContext), R(2),
434 B(LdrContextSlot), R(0), U8(9), R(12), 434 B(LdrContextSlot), R(0), U8(9), U8(0), R(12),
435 B(LdaSmi), U8(2), 435 B(LdaSmi), U8(2),
436 B(TestEqualStrict), R(12), U8(13), 436 B(TestEqualStrict), R(12), U8(13),
437 B(JumpIfFalse), U8(7), 437 B(JumpIfFalse), U8(8),
438 B(LdaSmi), U8(1), 438 B(LdaSmi), U8(1),
439 B(StaContextSlot), R(0), U8(9), 439 B(StaContextSlot), R(0), U8(9), U8(0),
440 B(LdrContextSlot), R(context), U8(4), R(12), 440 B(LdrContextSlot), R(context), U8(4), U8(0), R(12),
441 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1), 441 B(CallRuntime), U16(Runtime::kReThrow), R(12), U8(1),
442 B(PopContext), R(2), 442 B(PopContext), R(2),
443 B(LdaSmi), U8(-1), 443 B(LdaSmi), U8(-1),
444 B(Star), R(8), 444 B(Star), R(8),
445 B(Jump), U8(8), 445 B(Jump), U8(8),
446 B(Star), R(9), 446 B(Star), R(9),
447 B(LdaSmi), U8(1), 447 B(LdaSmi), U8(1),
448 B(Star), R(8), 448 B(Star), R(8),
449 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 449 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
450 B(Star), R(10), 450 B(Star), R(10),
451 B(LdrContextSlot), R(1), U8(9), R(11), 451 B(LdrContextSlot), R(1), U8(9), U8(0), R(11),
452 B(LdaZero), 452 B(LdaZero),
453 B(TestEqualStrict), R(11), U8(14), 453 B(TestEqualStrict), R(11), U8(14),
454 B(JumpIfTrueConstant), U8(17), 454 B(JumpIfTrueConstant), U8(18),
455 B(LdrContextSlot), R(1), U8(7), R(11), 455 B(LdrContextSlot), R(1), U8(7), U8(0), R(11),
456 B(LdaUndefined), 456 B(LdaUndefined),
457 B(TestEqualStrict), R(11), U8(15), 457 B(TestEqualStrict), R(11), U8(15),
458 B(JumpIfTrueConstant), U8(18), 458 B(JumpIfTrueConstant), U8(19),
459 B(LdrContextSlot), R(1), U8(7), R(11), 459 B(LdrContextSlot), R(1), U8(7), U8(0), R(11),
460 B(LdaNamedProperty), R(11), U8(13), U8(16), 460 B(LdaNamedProperty), R(11), U8(13), U8(16),
461 B(StaContextSlot), R(1), U8(11), 461 B(StaContextSlot), R(1), U8(11), U8(0),
462 B(LdrContextSlot), R(1), U8(11), R(11), 462 B(LdrContextSlot), R(1), U8(11), U8(0), R(11),
463 B(LdaNull), 463 B(LdaNull),
464 B(TestEqual), R(11), U8(18), 464 B(TestEqual), R(11), U8(18),
465 B(JumpIfFalse), U8(4), 465 B(JumpIfFalse), U8(4),
466 B(Jump), U8(120), 466 B(JumpConstant), U8(17),
467 B(LdrContextSlot), R(1), U8(9), R(11), 467 B(LdrContextSlot), R(1), U8(9), U8(0), R(11),
468 B(LdaSmi), U8(1), 468 B(LdaSmi), U8(1),
469 B(TestEqualStrict), R(11), U8(19), 469 B(TestEqualStrict), R(11), U8(19),
470 B(JumpIfFalse), U8(73), 470 B(JumpIfFalse), U8(76),
471 B(LdaContextSlot), R(1), U8(11), 471 B(LdaContextSlot), R(1), U8(11), U8(0),
472 B(TypeOf), 472 B(TypeOf),
473 B(Star), R(11), 473 B(Star), R(11),
474 B(LdaConstant), U8(14), 474 B(LdaConstant), U8(14),
475 B(TestEqualStrict), R(11), U8(20), 475 B(TestEqualStrict), R(11), U8(20),
476 B(JumpIfFalse), U8(4), 476 B(JumpIfFalse), U8(4),
477 B(Jump), U8(18), 477 B(Jump), U8(18),
478 B(Wide), B(LdaSmi), U16(129), 478 B(Wide), B(LdaSmi), U16(129),
479 B(Star), R(11), 479 B(Star), R(11),
480 B(LdaConstant), U8(15), 480 B(LdaConstant), U8(15),
481 B(Star), R(12), 481 B(Star), R(12),
482 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2), 482 B(CallRuntime), U16(Runtime::kNewTypeError), R(11), U8(2),
483 B(Throw), 483 B(Throw),
484 B(Mov), R(context), R(11), 484 B(Mov), R(context), R(11),
485 B(LdrContextSlot), R(1), U8(11), R(12), 485 B(LdrContextSlot), R(1), U8(11), U8(0), R(12),
486 B(LdrContextSlot), R(1), U8(7), R(13), 486 B(LdrContextSlot), R(1), U8(7), U8(0), R(13),
487 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2), 487 B(InvokeIntrinsic), U8(Runtime::k_Call), R(12), U8(2),
488 B(Jump), U8(23), 488 B(Jump), U8(23),
489 B(Star), R(12), 489 B(Star), R(12),
490 B(Ldar), R(closure), 490 B(Ldar), R(closure),
491 B(CreateCatchContext), R(12), U8(11), U8(16), 491 B(CreateCatchContext), R(12), U8(11), U8(16),
492 B(Star), R(11), 492 B(Star), R(11),
493 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 493 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
494 B(Ldar), R(11), 494 B(Ldar), R(11),
495 B(PushContext), R(2), 495 B(PushContext), R(2),
496 B(PopContext), R(2), 496 B(PopContext), R(2),
497 B(Jump), U8(38), 497 B(Jump), U8(43),
498 B(LdrContextSlot), R(1), U8(11), R(11), 498 B(LdrContextSlot), R(1), U8(11), U8(0), R(11),
499 B(LdrContextSlot), R(1), U8(7), R(12), 499 B(LdrContextSlot), R(1), U8(7), U8(0), R(12),
500 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2), 500 B(InvokeIntrinsic), U8(Runtime::k_Call), R(11), U8(2),
501 B(StaContextSlot), R(1), U8(12), 501 B(StaContextSlot), R(1), U8(12), U8(0),
502 B(LdrContextSlot), R(1), U8(12), R(11), 502 B(LdrContextSlot), R(1), U8(12), U8(0), R(11),
503 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1), 503 B(InvokeIntrinsic), U8(Runtime::k_IsJSReceiver), R(11), U8(1),
504 B(JumpIfToBooleanFalse), U8(4), 504 B(JumpIfToBooleanFalse), U8(4),
505 B(Jump), U8(11), 505 B(Jump), U8(12),
506 B(LdrContextSlot), R(1), U8(12), R(11), 506 B(LdrContextSlot), R(1), U8(12), U8(0), R(11),
507 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (11), U8(1), 507 B(CallRuntime), U16(Runtime::kThrowIteratorResultNotAnObject), R (11), U8(1),
508 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 0), U8(1), 508 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(1 0), U8(1),
509 B(LdaZero), 509 B(LdaZero),
510 B(TestEqualStrict), R(8), U8(0), 510 B(TestEqualStrict), R(8), U8(0),
511 B(JumpIfTrue), U8(11), 511 B(JumpIfTrue), U8(11),
512 B(LdaSmi), U8(1), 512 B(LdaSmi), U8(1),
513 B(TestEqualStrict), R(8), U8(0), 513 B(TestEqualStrict), R(8), U8(0),
514 B(JumpIfTrue), U8(17), 514 B(JumpIfTrue), U8(17),
515 B(Jump), U8(28), 515 B(Jump), U8(28),
516 B(PopContext), R(1), 516 B(PopContext), R(1),
(...skipping 18 matching lines...) Expand all
535 B(Star), R(5), 535 B(Star), R(5),
536 B(Jump), U8(14), 536 B(Jump), U8(14),
537 B(LdaSmi), U8(-1), 537 B(LdaSmi), U8(-1),
538 B(Star), R(5), 538 B(Star), R(5),
539 B(Jump), U8(8), 539 B(Jump), U8(8),
540 B(Star), R(6), 540 B(Star), R(6),
541 B(LdaSmi), U8(4), 541 B(LdaSmi), U8(4),
542 B(Star), R(5), 542 B(Star), R(5),
543 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0), 543 B(CallRuntime), U16(Runtime::kInterpreterClearPendingMessage), R (0), U8(0),
544 B(Star), R(7), 544 B(Star), R(7),
545 B(LdrContextSlot), R(context), U8(5), R(8), 545 B(LdrContextSlot), R(context), U8(5), U8(0), R(8),
546 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(8), U8(1), 546 B(CallRuntime), U16(Runtime::k_GeneratorClose), R(8), U8(1),
547 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(7 ), U8(1), 547 B(CallRuntime), U16(Runtime::kInterpreterSetPendingMessage), R(7 ), U8(1),
548 B(LdaZero), 548 B(LdaZero),
549 B(TestEqualStrict), R(5), U8(0), 549 B(TestEqualStrict), R(5), U8(0),
550 B(JumpIfTrue), U8(32), 550 B(JumpIfTrue), U8(32),
551 B(LdaSmi), U8(1), 551 B(LdaSmi), U8(1),
552 B(TestEqualStrict), R(5), U8(0), 552 B(TestEqualStrict), R(5), U8(0),
553 B(JumpIfTrue), U8(28), 553 B(JumpIfTrue), U8(28),
554 B(LdaSmi), U8(2), 554 B(LdaSmi), U8(2),
555 B(TestEqualStrict), R(5), U8(0), 555 B(TestEqualStrict), R(5), U8(0),
(...skipping 15 matching lines...) Expand all
571 /* 44 S> */ B(Return), 571 /* 44 S> */ B(Return),
572 B(Ldar), R(6), 572 B(Ldar), R(6),
573 B(ReThrow), 573 B(ReThrow),
574 B(LdaUndefined), 574 B(LdaUndefined),
575 /* 44 S> */ B(Return), 575 /* 44 S> */ B(Return),
576 ] 576 ]
577 constant pool: [ 577 constant pool: [
578 FIXED_ARRAY_TYPE, 578 FIXED_ARRAY_TYPE,
579 FIXED_ARRAY_TYPE, 579 FIXED_ARRAY_TYPE,
580 SYMBOL_TYPE, 580 SYMBOL_TYPE,
581 Smi [151], 581 Smi [158],
582 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], 582 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
583 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 583 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
584 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 584 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
585 FIXED_ARRAY_TYPE, 585 FIXED_ARRAY_TYPE,
586 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 586 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
587 Smi [132], 587 Smi [146],
588 Smi [156], 588 Smi [167],
589 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 589 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
590 FIXED_ARRAY_TYPE, 590 FIXED_ARRAY_TYPE,
591 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 591 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
592 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 592 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
593 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 593 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
594 FIXED_ARRAY_TYPE, 594 FIXED_ARRAY_TYPE,
595 Smi [153], 595 Smi [129],
596 Smi [143], 596 Smi [166],
597 Smi [566], 597 Smi [155],
598 Smi [601],
598 ] 599 ]
599 handlers: [ 600 handlers: [
600 [47, 679, 685], 601 [48, 718, 724],
601 [147, 433, 439], 602 [153, 458, 464],
602 [150, 392, 394], 603 [156, 414, 416],
603 [540, 552, 554], 604 [572, 586, 588],
604 ] 605 ]
605 606
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698