Index: test/cctest/interpreter/bytecode_expectations/Switch.golden |
diff --git a/test/cctest/interpreter/bytecode_expectations/Switch.golden b/test/cctest/interpreter/bytecode_expectations/Switch.golden |
index bc16a7b964941e3691bb22255afeafcd6b262861..16de860fb2a6772cde8353e8877ea47cea5d2b92 100644 |
--- a/test/cctest/interpreter/bytecode_expectations/Switch.golden |
+++ b/test/cctest/interpreter/bytecode_expectations/Switch.golden |
@@ -21,10 +21,10 @@ bytecode array length: 32 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
B(Star), R(0), |
+ B(Star), R(1), |
/* 45 S> */ B(LdaSmi), U8(1), |
- B(TestEqualStrict), R(0), |
+ B(TestEqualStrict), R(1), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(10), |
B(LdaSmi), U8(2), |
@@ -57,10 +57,10 @@ bytecode array length: 38 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
B(Star), R(0), |
+ B(Star), R(1), |
/* 45 S> */ B(LdaSmi), U8(1), |
- B(TestEqualStrict), R(0), |
+ B(TestEqualStrict), R(1), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(10), |
B(LdaSmi), U8(2), |
@@ -68,10 +68,10 @@ bytecodes: [ |
B(JumpIfTrue), U8(10), |
B(Jump), U8(14), |
/* 66 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 73 S> */ B(Jump), U8(8), |
/* 89 S> */ B(LdaSmi), U8(3), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 96 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 105 S> */ B(Return), |
@@ -95,10 +95,10 @@ bytecode array length: 36 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
B(Star), R(0), |
+ B(Star), R(1), |
/* 45 S> */ B(LdaSmi), U8(1), |
- B(TestEqualStrict), R(0), |
+ B(TestEqualStrict), R(1), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(10), |
B(LdaSmi), U8(2), |
@@ -106,9 +106,9 @@ bytecodes: [ |
B(JumpIfTrue), U8(8), |
B(Jump), U8(12), |
/* 66 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 98 S> */ B(LdaSmi), U8(3), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 105 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 114 S> */ B(Return), |
@@ -133,10 +133,10 @@ bytecode array length: 36 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
B(Star), R(0), |
+ B(Star), R(1), |
/* 45 S> */ B(LdaSmi), U8(2), |
- B(TestEqualStrict), R(0), |
+ B(TestEqualStrict), R(1), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(10), |
B(LdaSmi), U8(3), |
@@ -146,7 +146,7 @@ bytecodes: [ |
/* 66 S> */ B(Jump), U8(10), |
/* 82 S> */ B(Jump), U8(8), |
/* 99 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 106 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 115 S> */ B(Return), |
@@ -171,25 +171,25 @@ bytecode array length: 45 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
- /* 42 E> */ B(TypeOf), |
B(Star), R(0), |
+ /* 42 E> */ B(TypeOf), |
+ B(Star), R(1), |
/* 45 S> */ B(LdaSmi), U8(2), |
- B(TestEqualStrict), R(0), |
- B(Mov), R(0), R(2), |
+ B(TestEqualStrict), R(1), |
+ B(Mov), R(1), R(2), |
B(JumpIfToBooleanTrue), U8(10), |
B(LdaSmi), U8(3), |
B(TestEqualStrict), R(2), |
B(JumpIfTrue), U8(10), |
B(Jump), U8(14), |
/* 74 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 81 S> */ B(Jump), U8(14), |
/* 97 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 104 S> */ B(Jump), U8(8), |
/* 121 S> */ B(LdaSmi), U8(3), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 128 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 137 S> */ B(Return), |
@@ -213,18 +213,18 @@ bytecode array length: 31 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
B(Star), R(0), |
+ B(Star), R(1), |
/* 45 S> */ B(TypeOf), |
- B(TestEqualStrict), R(0), |
+ B(TestEqualStrict), R(1), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(4), |
B(Jump), U8(8), |
/* 74 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 81 S> */ B(Jump), U8(8), |
/* 98 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 105 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 114 S> */ B(Return), |
@@ -315,10 +315,10 @@ bytecode array length: 290 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(1), |
- B(Star), R(1), |
B(Star), R(0), |
+ B(Star), R(1), |
/* 45 S> */ B(LdaSmi), U8(1), |
- B(TestEqualStrict), R(0), |
+ B(TestEqualStrict), R(1), |
B(Mov), R(0), R(2), |
B(JumpIfToBooleanTrue), U8(10), |
B(LdaSmi), U8(2), |
@@ -326,136 +326,136 @@ bytecodes: [ |
B(JumpIfTrueConstant), U8(0), |
B(JumpConstant), U8(1), |
/* 68 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 77 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 86 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 95 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 104 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 113 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 122 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 131 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 140 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 149 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 158 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 167 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 176 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 185 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 194 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 203 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 212 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 221 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 230 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 239 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 248 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 257 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 266 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 275 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 284 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 293 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 302 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 311 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 320 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 329 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 338 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 347 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 356 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 365 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 374 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 383 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 392 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 401 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 410 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 419 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 428 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 437 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 446 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 455 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 464 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 473 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 482 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 491 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 500 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 509 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 518 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 527 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 536 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 545 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 554 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 563 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 572 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 581 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 590 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 599 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 608 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 617 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 626 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 635 S> */ B(LdaSmi), U8(2), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 644 S> */ B(Jump), U8(8), |
/* 662 S> */ B(LdaSmi), U8(3), |
- B(Star), R(1), |
+ B(Star), R(0), |
/* 671 S> */ B(Jump), U8(2), |
B(LdaUndefined), |
/* 680 S> */ B(Return), |
@@ -485,31 +485,31 @@ bytecode array length: 59 |
bytecodes: [ |
/* 30 E> */ B(StackCheck), |
/* 42 S> */ B(LdaSmi), U8(1), |
- B(Star), R(2), |
B(Star), R(0), |
+ B(Star), R(1), |
/* 45 S> */ B(LdaSmi), U8(1), |
- B(TestEqualStrict), R(0), |
+ B(TestEqualStrict), R(1), |
B(Mov), R(0), R(3), |
B(JumpIfToBooleanTrue), U8(10), |
B(LdaSmi), U8(2), |
B(TestEqualStrict), R(3), |
B(JumpIfTrue), U8(33), |
B(Jump), U8(35), |
- /* 77 E> */ B(AddSmi), U8(1), R(2), U8(1), |
- B(Star), R(1), |
+ /* 77 E> */ B(AddSmi), U8(1), R(0), U8(1), |
+ B(Star), R(2), |
/* 70 S> */ B(LdaSmi), U8(2), |
- B(TestEqualStrict), R(1), |
- B(Mov), R(1), R(4), |
+ B(TestEqualStrict), R(2), |
+ B(Mov), R(2), R(4), |
B(JumpIfToBooleanTrue), U8(4), |
B(Jump), U8(8), |
/* 101 S> */ B(LdaSmi), U8(1), |
- B(Star), R(2), |
+ B(Star), R(0), |
/* 108 S> */ B(Jump), U8(8), |
/* 131 S> */ B(LdaSmi), U8(2), |
- B(Star), R(2), |
+ B(Star), R(0), |
/* 138 S> */ B(Jump), U8(2), |
/* 176 S> */ B(LdaSmi), U8(3), |
- B(Star), R(2), |
+ B(Star), R(0), |
B(LdaUndefined), |
/* 185 S> */ B(Return), |
] |