Index: src/x87/builtins-x87.cc |
diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc |
index 9052e233671980936c765770acee66e7f4cc28df..f4924ea9a0ec57754577dbc2fa0aa130088b4c74 100644 |
--- a/src/x87/builtins-x87.cc |
+++ b/src/x87/builtins-x87.cc |
@@ -957,6 +957,28 @@ void Builtins::Generate_DatePrototype_GetField(MacroAssembler* masm, |
} |
} |
+// static |
+void Builtins::Generate_FunctionHasInstance(MacroAssembler* masm) { |
+ // ----------- S t a t e ------------- |
+ // -- eax : argc |
+ // -- esp[0] : return address |
+ // -- esp[4] : first argument (left-hand side) |
+ // -- esp[8] : receiver (right-hand side) |
+ // ----------------------------------- |
+ |
+ { |
+ FrameScope scope(masm, StackFrame::INTERNAL); |
+ __ mov(InstanceOfDescriptor::LeftRegister(), |
+ Operand(ebp, 2 * kPointerSize)); // Load left-hand side. |
+ __ mov(InstanceOfDescriptor::RightRegister(), |
+ Operand(ebp, 3 * kPointerSize)); // Load right-hand side. |
+ InstanceOfStub stub(masm->isolate(), true); |
+ __ CallStub(&stub); |
+ } |
+ |
+ // Pop the argument and the receiver. |
+ __ ret(2 * kPointerSize); |
+} |
// static |
void Builtins::Generate_FunctionPrototypeApply(MacroAssembler* masm) { |
@@ -1145,7 +1167,6 @@ void Builtins::Generate_ReflectApply(MacroAssembler* masm) { |
} |
} |
- |
void Builtins::Generate_ReflectConstruct(MacroAssembler* masm) { |
// ----------- S t a t e ------------- |
// -- eax : argc |