Index: src/arm/builtins-arm.cc |
diff --git a/src/arm/builtins-arm.cc b/src/arm/builtins-arm.cc |
index aed8cb5328963ba3f24bb48cb644f161a4655e4b..a1762fa3544858983bdb8cbfe4dc0fce71de1a35 100644 |
--- a/src/arm/builtins-arm.cc |
+++ b/src/arm/builtins-arm.cc |
@@ -1473,6 +1473,27 @@ void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
__ TailCallRuntime(Runtime::kThrowNotDateError); |
} |
+// static |
+void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) { |
+ // ----------- S t a t e ------------- |
+ // -- r0 : argc |
+ // -- sp[0] : first argument (left-hand side) |
+ // -- sp[4] : receiver (right-hand side) |
+ // ----------------------------------- |
+ |
+ { |
+ FrameScope scope(masm, StackFrame::INTERNAL); |
+ __ ldr(InstanceOfDescriptor::LeftRegister(), |
+ MemOperand(fp, 2 * kPointerSize)); // Load left-hand side. |
+ __ ldr(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) { |