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

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

Issue 2369873002: [Interpreter] Replace BytecodeRegisterAllocator with a simple bump pointer. (Closed)
Patch Set: Rebase Created 4 years, 2 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 ---
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 B(LdaZero), 174 B(LdaZero),
175 B(Star), R(2), 175 B(Star), R(2),
176 B(Jump), U8(116), 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(5),
185 B(LdrContextSlot), R(context), U8(5), U8(0), R(5), 185 B(LdrContextSlot), R(context), U8(5), U8(0), R(6),
186 B(LdaSmi), U8(1), 186 B(LdaSmi), U8(1),
187 B(SuspendGenerator), R(5), 187 B(SuspendGenerator), R(6),
188 B(Ldar), R(7), 188 B(Ldar), R(5),
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(6 ), U8(1),
193 B(Star), R(6), 193 B(Star), R(7),
194 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(5), U8 (1), 194 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(6), U8 (1),
195 B(Star), R(8), 195 B(Star), R(8),
196 B(LdaZero), 196 B(LdaZero),
197 B(TestEqualStrict), R(8), U8(0), 197 B(TestEqualStrict), R(8), U8(0),
198 B(JumpIfTrue), U8(33), 198 B(JumpIfTrue), U8(33),
199 B(LdaSmi), U8(2), 199 B(LdaSmi), U8(2),
200 B(TestEqualStrict), R(8), U8(0), 200 B(TestEqualStrict), R(8), U8(0),
201 B(JumpIfTrue), U8(23), 201 B(JumpIfTrue), U8(23),
202 B(Jump), U8(2), 202 B(Jump), U8(2),
203 B(LdaTrue), 203 B(LdaTrue),
204 B(Star), R(10), 204 B(Star), R(10),
205 B(Mov), R(6), R(9), 205 B(Mov), R(7), R(9),
206 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(9), U8 (2), 206 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(9), U8 (2),
207 B(Star), R(3), 207 B(Star), R(3),
208 B(LdaSmi), U8(1), 208 B(LdaSmi), U8(1),
209 B(Star), R(2), 209 B(Star), R(2),
210 B(Jump), U8(35), 210 B(Jump), U8(35),
211 B(Ldar), R(6), 211 B(Ldar), R(7),
212 /* 16 E> */ B(Throw), 212 /* 16 E> */ B(Throw),
213 B(LdrUndefined), R(5), 213 B(LdrUndefined), R(5),
214 B(LdaTrue), 214 B(LdaTrue),
215 B(Star), R(6), 215 B(Star), R(6),
216 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8 (2), 216 B(CallRuntime), U16(Runtime::k_CreateIterResultObject), R(5), U8 (2),
217 B(Star), R(3), 217 B(Star), R(3),
218 B(LdaSmi), U8(2), 218 B(LdaSmi), U8(2),
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),
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 [48, 233, 239], 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: 807 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(68), 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),
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
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), U8(0), 376 B(StaContextSlot), R(context), U8(4), U8(0),
377 B(LdaContextSlot), R(1), U8(6), U8(0), 377 B(LdaContextSlot), R(1), U8(6), U8(0),
378 B(StaContextSlot), R(context), U8(4), U8(0), 378 B(StaContextSlot), R(context), U8(4), U8(0),
379 /* 36 S> */ B(LdaContextSlot), R(context), U8(4), U8(0), 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(14),
383 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(13), U8(1) , 383 B(CallRuntime), U16(Runtime::kThrowReferenceError), R(14), 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(12),
389 B(LdrContextSlot), R(1), U8(5), U8(0), R(12), 389 B(LdrContextSlot), R(1), U8(5), U8(0), R(13),
390 B(LdaSmi), U8(1), 390 B(LdaSmi), U8(1),
391 B(SuspendGenerator), R(12), 391 B(SuspendGenerator), R(13),
392 B(Ldar), R(14), 392 B(Ldar), R(12),
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 3), U8(1),
397 B(Star), R(13), 397 B(Star), R(14),
398 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(12), U 8(1), 398 B(CallRuntime), U16(Runtime::k_GeneratorGetResumeMode), R(13), U 8(1),
399 B(Star), R(15), 399 B(Star), R(15),
400 B(LdaZero), 400 B(LdaZero),
401 B(TestEqualStrict), R(15), U8(0), 401 B(TestEqualStrict), R(15), U8(0),
402 B(JumpIfTrue), U8(44), 402 B(JumpIfTrue), U8(44),
403 B(LdaSmi), U8(2), 403 B(LdaSmi), U8(2),
404 B(TestEqualStrict), R(15), U8(0), 404 B(TestEqualStrict), R(15), U8(0),
405 B(JumpIfTrue), U8(34), 405 B(JumpIfTrue), U8(34),
406 B(Jump), U8(2), 406 B(Jump), U8(2),
407 B(LdaTrue), 407 B(LdaTrue),
408 B(Star), R(17), 408 B(Star), R(17),
409 B(Mov), R(13), R(16), 409 B(Mov), R(14), R(16),
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(76), 420 B(Jump), U8(74),
421 B(Ldar), R(13), 421 B(Ldar), R(14),
422 /* 36 E> */ B(Throw), 422 /* 36 E> */ B(Throw),
423 B(Ldar), R(13),
424 B(PopContext), R(2), 423 B(PopContext), R(2),
425 B(LdaZero), 424 B(LdaZero),
426 B(StaContextSlot), R(1), U8(9), U8(0), 425 B(StaContextSlot), R(1), U8(9), U8(0),
427 B(Wide), B(JumpLoop), U16(-234), U16(0), 426 B(Wide), B(JumpLoop), U16(-232), U16(0),
428 B(Jump), U8(44), 427 B(Jump), U8(44),
429 B(Star), R(12), 428 B(Star), R(12),
430 B(Ldar), R(closure), 429 B(Ldar), R(closure),
431 B(CreateCatchContext), R(12), U8(11), U8(12), 430 B(CreateCatchContext), R(12), U8(11), U8(12),
432 B(Star), R(11), 431 B(Star), R(11),
433 B(PushContext), R(2), 432 B(PushContext), R(2),
434 B(LdrContextSlot), R(0), U8(9), U8(0), R(12), 433 B(LdrContextSlot), R(0), U8(9), U8(0), R(12),
435 B(LdaSmi), U8(2), 434 B(LdaSmi), U8(2),
436 B(TestEqualStrict), R(12), U8(14), 435 B(TestEqualStrict), R(12), U8(14),
437 B(JumpIfFalse), U8(8), 436 B(JumpIfFalse), U8(8),
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 FIXED_ARRAY_TYPE, 577 FIXED_ARRAY_TYPE,
579 FIXED_ARRAY_TYPE, 578 FIXED_ARRAY_TYPE,
580 SYMBOL_TYPE, 579 SYMBOL_TYPE,
581 Smi [158], 580 Smi [158],
582 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"], 581 ONE_BYTE_INTERNALIZED_STRING_TYPE ["next"],
583 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"], 582 ONE_BYTE_INTERNALIZED_STRING_TYPE ["done"],
584 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"], 583 ONE_BYTE_INTERNALIZED_STRING_TYPE ["value"],
585 FIXED_ARRAY_TYPE, 584 FIXED_ARRAY_TYPE,
586 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"], 585 ONE_BYTE_INTERNALIZED_STRING_TYPE ["x"],
587 Smi [146], 586 Smi [146],
588 Smi [169], 587 Smi [167],
589 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"], 588 ONE_BYTE_INTERNALIZED_STRING_TYPE [".catch"],
590 FIXED_ARRAY_TYPE, 589 FIXED_ARRAY_TYPE,
591 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"], 590 ONE_BYTE_INTERNALIZED_STRING_TYPE ["return"],
592 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"], 591 ONE_BYTE_INTERNALIZED_STRING_TYPE ["function"],
593 ONE_BYTE_INTERNALIZED_STRING_TYPE [""], 592 ONE_BYTE_INTERNALIZED_STRING_TYPE [""],
594 FIXED_ARRAY_TYPE, 593 FIXED_ARRAY_TYPE,
595 Smi [129], 594 Smi [129],
596 Smi [166], 595 Smi [166],
597 Smi [155], 596 Smi [155],
598 Smi [603], 597 Smi [601],
599 ] 598 ]
600 handlers: [ 599 handlers: [
601 [48, 720, 726], 600 [48, 718, 724],
602 [153, 460, 466], 601 [153, 458, 464],
603 [156, 416, 418], 602 [156, 414, 416],
604 [574, 588, 590], 603 [572, 586, 588],
605 ] 604 ]
606 605
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698