Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index ff634efa1b99478fcdbcc9ce065ea736609717d6..f735adab5eb7b02bda1372b6e7ed1d87ad2eb8c2 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -2213,7 +2213,8 @@ void InstanceOfStub::Generate(MacroAssembler* masm) { |
__ Push(object); |
__ Push(function); |
__ PushReturnAddressFrom(scratch); |
- __ TailCallRuntime(Runtime::kInstanceOf); |
+ __ TailCallRuntime(is_es6_instanceof() ? Runtime::kOrdinaryHasInstance |
+ : Runtime::kInstanceOf); |
} |