| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 1782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1793 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); | 1793 __ GetBuiltinEntry(edx, Builtins::CALL_NON_FUNCTION); |
| 1794 Handle<Code> adaptor = isolate->builtins()->ArgumentsAdaptorTrampoline(); | 1794 Handle<Code> adaptor = isolate->builtins()->ArgumentsAdaptorTrampoline(); |
| 1795 __ jmp(adaptor, RelocInfo::CODE_TARGET); | 1795 __ jmp(adaptor, RelocInfo::CODE_TARGET); |
| 1796 } | 1796 } |
| 1797 | 1797 |
| 1798 | 1798 |
| 1799 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { | 1799 static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { |
| 1800 // Wrap the receiver and patch it back onto the stack. | 1800 // Wrap the receiver and patch it back onto the stack. |
| 1801 { FrameScope frame_scope(masm, StackFrame::INTERNAL); | 1801 { FrameScope frame_scope(masm, StackFrame::INTERNAL); |
| 1802 __ push(edi); | 1802 __ push(edi); |
| 1803 __ push(eax); | 1803 ToObjectStub stub(masm->isolate()); |
| 1804 __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); | 1804 __ CallStub(&stub); |
| 1805 __ pop(edi); | 1805 __ pop(edi); |
| 1806 } | 1806 } |
| 1807 __ mov(Operand(esp, (argc + 1) * kPointerSize), eax); | 1807 __ mov(Operand(esp, (argc + 1) * kPointerSize), eax); |
| 1808 __ jmp(cont); | 1808 __ jmp(cont); |
| 1809 } | 1809 } |
| 1810 | 1810 |
| 1811 | 1811 |
| 1812 static void CallFunctionNoFeedback(MacroAssembler* masm, | 1812 static void CallFunctionNoFeedback(MacroAssembler* masm, |
| 1813 int argc, bool needs_checks, | 1813 int argc, bool needs_checks, |
| 1814 bool call_as_method) { | 1814 bool call_as_method) { |
| (...skipping 3519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5334 Operand(ebp, 7 * kPointerSize), NULL); | 5334 Operand(ebp, 7 * kPointerSize), NULL); |
| 5335 } | 5335 } |
| 5336 | 5336 |
| 5337 | 5337 |
| 5338 #undef __ | 5338 #undef __ |
| 5339 | 5339 |
| 5340 } // namespace internal | 5340 } // namespace internal |
| 5341 } // namespace v8 | 5341 } // namespace v8 |
| 5342 | 5342 |
| 5343 #endif // V8_TARGET_ARCH_X87 | 5343 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |