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