Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 62ec4857257741c148412f01b93ad9606592ec2f..74dd03247ec2a12c35ef8aef603e448cc02aad29 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -1628,7 +1628,8 @@ void InstanceOfStub::Generate(MacroAssembler* masm) { |
// Slow-case: Call the %InstanceOf runtime function. |
__ bind(&slow_case); |
__ Push(object, function); |
- __ TailCallRuntime(Runtime::kInstanceOf); |
+ __ TailCallRuntime(is_es6_instanceof() ? Runtime::kOrdinaryHasInstance |
+ : Runtime::kInstanceOf); |
} |