| Index: src/a64/code-stubs-a64.cc
|
| diff --git a/src/a64/code-stubs-a64.cc b/src/a64/code-stubs-a64.cc
|
| index 007566c8b67b77a9331e36d8087dea53b124d5c7..c78501186fbb91409a4eb6a3a75bcf55dee2cc54 100644
|
| --- a/src/a64/code-stubs-a64.cc
|
| +++ b/src/a64/code-stubs-a64.cc
|
| @@ -3338,13 +3338,15 @@ void InstanceofStub::Generate(MacroAssembler* masm) {
|
| // Slow-case. Tail call builtin.
|
| __ Bind(&slow);
|
| if (!ReturnTrueFalseObject()) {
|
| + FrameScope scope(masm, StackFrame::INTERNAL);
|
| // Arguments have either been passed into registers or have been previously
|
| // popped. We need to push them before calling builtin.
|
| __ Push(object, function);
|
| - __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION);
|
| + __ InvokeBuiltin(Builtins::INSTANCE_OF, CALL_FUNCTION);
|
| } else {
|
| ASM_UNIMPLEMENTED("InstanceofStub call builtin and return object");
|
| }
|
| + __ Ret();
|
| }
|
|
|
|
|
|
|