Index: src/mips64/builtins-mips64.cc |
diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc |
index e998ecd78886d16ebf3908dd5120776d41f4852d..10feb65b43bc4ae8979b0011777ee66f800ec401 100644 |
--- a/src/mips64/builtins-mips64.cc |
+++ b/src/mips64/builtins-mips64.cc |
@@ -1470,6 +1470,27 @@ void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
__ TailCallRuntime(Runtime::kThrowNotDateError); |
} |
+// static |
+void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) { |
+ // ----------- S t a t e ------------- |
+ // -- a0 : argc |
+ // -- sp[0] : first argument (left-hand side) |
+ // -- sp[8] : receiver (right-hand side) |
+ // ----------------------------------- |
+ |
+ { |
+ FrameScope scope(masm, StackFrame::INTERNAL); |
+ __ lw(InstanceOfDescriptor::LeftRegister(), |
+ MemOperand(fp, 2 * kPointerSize)); // Load left-hand side. |
+ __ lw(InstanceOfDescriptor::RightRegister(), |
+ MemOperand(fp, 3 * kPointerSize)); // Load right-hand side. |
+ InstanceOfStub stub(masm->isolate(), true); |
+ __ CallStub(&stub); |
+ } |
+ |
+ // Pop the argument and the receiver. |
+ __ DropAndRet(2); |
+} |
// static |
void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { |