Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index bd83cd1ae8cdfdfc4f15e02292025f115366e1a7..e33e8b366051f21b7f12917d3ae0782623417ea8 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -1444,7 +1444,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); |
} |