| Index: src/s390/code-stubs-s390.cc
|
| diff --git a/src/s390/code-stubs-s390.cc b/src/s390/code-stubs-s390.cc
|
| index 177505fb16b83bbbaa7e5f94d978a998820c109a..535cc695049e9c442e90eed632904f82fc82ded3 100644
|
| --- a/src/s390/code-stubs-s390.cc
|
| +++ b/src/s390/code-stubs-s390.cc
|
| @@ -1487,7 +1487,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);
|
| }
|
|
|
| void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
|
|
|