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