Index: src/s390/builtins-s390.cc |
diff --git a/src/s390/builtins-s390.cc b/src/s390/builtins-s390.cc |
index 59b3932b21e53b1e43f6181071bb8e7fdda4a591..c1ffac2a4bda71273c599f694ab7d49ba0c701e5 100644 |
--- a/src/s390/builtins-s390.cc |
+++ b/src/s390/builtins-s390.cc |
@@ -1457,6 +1457,28 @@ void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
} |
// static |
+void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) { |
+ // ----------- S t a t e ------------- |
+ // -- r2 : 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) { |
// ----------- S t a t e ------------- |
// -- r2 : argc |