Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index 620f84c6b3ac14f0d3e9f29ed52da9d41f50e7f1..392fcbb77ff7b636400f78241d7b89016c5aefc4 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -2165,7 +2165,8 @@ void InstanceOfStub::Generate(MacroAssembler* masm) { |
__ Push(object); |
__ Push(function); |
__ PushReturnAddressFrom(kScratchRegister); |
- __ TailCallRuntime(Runtime::kInstanceOf); |
+ __ TailCallRuntime(is_es6_instanceof() ? Runtime::kOrdinaryHasInstance |
+ : Runtime::kInstanceOf); |
} |