| Index: test/cctest/interpreter/bytecode_expectations/BasicBlockToBoolean.golden
|
| diff --git a/test/cctest/interpreter/bytecode_expectations/BasicBlockToBoolean.golden b/test/cctest/interpreter/bytecode_expectations/BasicBlockToBoolean.golden
|
| index acb9c36ce3f70553b02baf5189e4f54d74910bb9..a9d0acc4f778f3651b36ebe19629ee184d9a557d 100644
|
| --- a/test/cctest/interpreter/bytecode_expectations/BasicBlockToBoolean.golden
|
| +++ b/test/cctest/interpreter/bytecode_expectations/BasicBlockToBoolean.golden
|
| @@ -9,16 +9,18 @@ wrap: yes
|
| snippet: "
|
| var a = 1; if (a || a < 0) { return 1; }
|
| "
|
| -frame size: 1
|
| +frame size: 2
|
| parameter count: 1
|
| -bytecode array length: 18
|
| +bytecode array length: 22
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| - /* 42 S> */ B(LdaSmi), I8(1),
|
| + /* 42 S> */ B(LdaConstant), U8(0),
|
| + B(Star), R(1),
|
| + B(LdaSmi), I8(1),
|
| B(Star), R(0),
|
| /* 45 S> */ B(JumpIfToBooleanTrue), U8(8),
|
| B(LdaZero),
|
| - /* 56 E> */ B(TestLessThan), R(0), U8(2),
|
| + /* 56 E> */ B(TestLessThan), R(0), U8(4),
|
| B(JumpIfFalse), U8(5),
|
| /* 63 S> */ B(LdaSmi), I8(1),
|
| /* 75 S> */ B(Return),
|
| @@ -26,6 +28,7 @@ bytecodes: [
|
| /* 75 S> */ B(Return),
|
| ]
|
| constant pool: [
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -34,16 +37,18 @@ handlers: [
|
| snippet: "
|
| var a = 1; if (a && a < 0) { return 1; }
|
| "
|
| -frame size: 1
|
| +frame size: 2
|
| parameter count: 1
|
| -bytecode array length: 18
|
| +bytecode array length: 22
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| - /* 42 S> */ B(LdaSmi), I8(1),
|
| + /* 42 S> */ B(LdaConstant), U8(0),
|
| + B(Star), R(1),
|
| + B(LdaSmi), I8(1),
|
| B(Star), R(0),
|
| /* 45 S> */ B(JumpIfToBooleanFalse), U8(11),
|
| B(LdaZero),
|
| - /* 56 E> */ B(TestLessThan), R(0), U8(2),
|
| + /* 56 E> */ B(TestLessThan), R(0), U8(4),
|
| B(JumpIfFalse), U8(5),
|
| /* 63 S> */ B(LdaSmi), I8(1),
|
| /* 75 S> */ B(Return),
|
| @@ -51,6 +56,7 @@ bytecodes: [
|
| /* 75 S> */ B(Return),
|
| ]
|
| constant pool: [
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
| ]
|
| handlers: [
|
| ]
|
| @@ -59,16 +65,21 @@ handlers: [
|
| snippet: "
|
| var a = 1; a = (a || a < 0) ? 2 : 3;
|
| "
|
| -frame size: 1
|
| +frame size: 2
|
| parameter count: 1
|
| -bytecode array length: 23
|
| +bytecode array length: 33
|
| bytecodes: [
|
| /* 30 E> */ B(StackCheck),
|
| - /* 42 S> */ B(LdaSmi), I8(1),
|
| + /* 42 S> */ B(LdaConstant), U8(0),
|
| + B(Star), R(1),
|
| + B(LdaSmi), I8(1),
|
| B(Star), R(0),
|
| - /* 45 S> */ B(JumpIfToBooleanTrue), U8(8),
|
| + /* 45 S> */ B(LdaConstant), U8(0),
|
| + B(Star), R(1),
|
| + B(Ldar), R(0),
|
| + /* 50 E> */ B(JumpIfToBooleanTrue), U8(8),
|
| B(LdaZero),
|
| - /* 57 E> */ B(TestLessThan), R(0), U8(2),
|
| + /* 57 E> */ B(TestLessThan), R(0), U8(4),
|
| B(JumpIfFalse), U8(6),
|
| B(LdaSmi), I8(2),
|
| B(Jump), U8(4),
|
| @@ -78,6 +89,7 @@ bytecodes: [
|
| /* 71 S> */ B(Return),
|
| ]
|
| constant pool: [
|
| + ONE_BYTE_INTERNALIZED_STRING_TYPE ["a"],
|
| ]
|
| handlers: [
|
| ]
|
|
|