Commit fa2fbcfc authored by oth's avatar oth Committed by Commit bot

[interpreter] Update bytecode expectations for ES6 instanceof.

Fixes updating golden files following instanceof change.

BUG=v8:4280
LOG=N
R=rmcilroy@chromium.org,ssanfilippo@chromium.org

Review URL: https://codereview.chromium.org/1858593002

Cr-Commit-Position: refs/heads/master@{#35406}
parent 71a55b8c
......@@ -3,7 +3,7 @@
#
---
pool type: number
pool type: mixed
execute: yes
wrap: no
test function name: f
......@@ -415,8 +415,8 @@ bytecodes: [
B(Return),
]
constant pool: [
0.01,
265,
InstanceType::HEAP_NUMBER_TYPE,
kInstanceTypeDontCare,
]
handlers: [
]
......@@ -642,7 +642,7 @@ bytecodes: [
B(Return),
]
constant pool: [
265,
kInstanceTypeDontCare,
]
handlers: [
]
......@@ -662,71 +662,127 @@ snippet: "
}
f(1, 1);
"
frame size: 1
frame size: 6
parameter count: 3
bytecode array length: 107
bytecode array length: 226
bytecodes: [
B(StackCheck),
B(Ldar), R(arg0),
B(Star), R(0),
B(Star), R(3),
B(Ldar), R(arg1),
B(TestEqual), R(0),
B(TestEqual), R(3),
B(JumpIfFalse), U8(5),
B(LdaSmi), U8(1),
B(Return),
B(Ldar), R(arg0),
B(Star), R(0),
B(Star), R(3),
B(Ldar), R(arg1),
B(TestEqualStrict), R(0),
B(TestEqualStrict), R(3),
B(JumpIfFalse), U8(5),
B(LdaSmi), U8(1),
B(Return),
B(Ldar), R(arg0),
B(Star), R(0),
B(Star), R(3),
B(Ldar), R(arg1),
B(TestLessThan), R(0),
B(TestLessThan), R(3),
B(JumpIfFalse), U8(5),
B(LdaSmi), U8(1),
B(Return),
B(Ldar), R(arg0),
B(Star), R(0),
B(Star), R(3),
B(Ldar), R(arg1),
B(TestGreaterThan), R(0),
B(TestGreaterThan), R(3),
B(JumpIfFalse), U8(5),
B(LdaSmi), U8(1),
B(Return),
B(Ldar), R(arg0),
B(Star), R(0),
B(Star), R(3),
B(Ldar), R(arg1),
B(TestLessThanOrEqual), R(0),
B(TestLessThanOrEqual), R(3),
B(JumpIfFalse), U8(5),
B(LdaSmi), U8(1),
B(Return),
B(Ldar), R(arg0),
B(Star), R(0),
B(Star), R(3),
B(Ldar), R(arg1),
B(TestGreaterThanOrEqual), R(0),
B(TestGreaterThanOrEqual), R(3),
B(JumpIfFalse), U8(5),
B(LdaSmi), U8(1),
B(Return),
B(Ldar), R(arg0),
B(Star), R(0),
B(Star), R(3),
B(Ldar), R(arg1),
B(TestIn), R(0),
B(TestIn), R(3),
B(JumpIfFalse), U8(5),
B(LdaSmi), U8(1),
B(Return),
B(Ldar), R(arg0),
B(Star), R(0),
B(Ldar), R(arg1),
B(TestInstanceOf), R(0),
B(JumpIfFalse), U8(5),
B(Star), R(1),
B(Star), R(3),
B(InvokeIntrinsic), U16(Runtime::k_IsJSReceiver), R(3), U8(1),
B(JumpIfToBooleanFalse), U8(4),
B(Jump), U8(16),
B(LdaSmi), U8(60),
B(Star), R(3),
B(LdaConstant), U8(0),
B(Star), R(4),
B(CallRuntime), U16(Runtime::kNewTypeError), R(3), U8(2),
B(Throw),
B(Ldar), R(1),
B(Star), R(3),
B(LdaConstant), U8(1),
B(KeyedLoadIC), R(3), U8(1),
B(Star), R(2),
B(Star), R(3),
B(LdaUndefined),
B(TestEqualStrict), R(3),
B(JumpIfFalse), U8(55),
B(Ldar), R(1),
B(TypeOf),
B(Star), R(3),
B(LdaConstant), U8(2),
B(TestEqualStrict), R(3),
B(JumpIfFalse), U8(4),
B(Jump), U8(16),
B(LdaSmi), U8(16),
B(Star), R(3),
B(LdaConstant), U8(0),
B(Star), R(4),
B(CallRuntime), U16(Runtime::kNewTypeError), R(3), U8(2),
B(Throw),
B(CallRuntime), U16(Runtime::k_GetOrdinaryHasInstance), R(0), U8(0),
B(Star), R(2),
B(Star), R(3),
B(Ldar), R(1),
B(Star), R(4),
B(Ldar), R(0),
B(Star), R(5),
B(CallRuntime), U16(Runtime::k_Call), R(3), U8(3),
B(Star), R(2),
B(Jump), U8(23),
B(Ldar), R(2),
B(Star), R(3),
B(Ldar), R(1),
B(Star), R(4),
B(Ldar), R(0),
B(Star), R(5),
B(CallRuntime), U16(Runtime::k_Call), R(3), U8(3),
B(LogicalNot),
B(LogicalNot),
B(Star), R(2),
B(Ldar), R(2),
B(JumpIfToBooleanFalse), U8(5),
B(LdaSmi), U8(1),
B(Return),
B(LdaZero),
B(Return),
]
constant pool: [
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
InstanceType::SYMBOL_TYPE,
InstanceType::ONE_BYTE_INTERNALIZED_STRING_TYPE,
]
handlers: [
]
......
......@@ -560,14 +560,9 @@ TEST(CallRuntime) {
}
TEST(IfConditions) {
if (FLAG_harmony_instanceof) {
// TODO(mvstanton): when ES6 instanceof ships, regenerate the bytecode
// expectations and remove this flag check.
return;
}
InitializedIgnitionHandleScope scope;
BytecodeExpectationsPrinter printer(CcTest::isolate(),
ConstantPoolType::kNumber);
ConstantPoolType::kMixed);
printer.set_wrap(false);
printer.set_test_function_name("f");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment