Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index a740e434c183f647c55326cbcbd477b255f1de4d..bff853934f31ff72425a55d201a7ab7abf9ecd3d 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -1578,7 +1578,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); |
} |