| 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 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/deoptimizer.h" | 9 #include "src/deoptimizer.h" |
| 10 #include "src/full-codegen/full-codegen.h" | 10 #include "src/full-codegen/full-codegen.h" |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 745 // TODO(rmcilroy): List of things not currently dealt with here but done in | 745 // TODO(rmcilroy): List of things not currently dealt with here but done in |
| 746 // fullcodegen's EmitReturnSequence. | 746 // fullcodegen's EmitReturnSequence. |
| 747 // - Supporting FLAG_trace for Runtime::TraceExit. | 747 // - Supporting FLAG_trace for Runtime::TraceExit. |
| 748 // - Support profiler (specifically decrementing profiling_counter | 748 // - Support profiler (specifically decrementing profiling_counter |
| 749 // appropriately and calling out to HandleInterrupts if necessary). | 749 // appropriately and calling out to HandleInterrupts if necessary). |
| 750 | 750 |
| 751 // The return value is in accumulator, which is already in rax. | 751 // The return value is in accumulator, which is already in rax. |
| 752 | 752 |
| 753 // Leave the frame (also dropping the register file). | 753 // Leave the frame (also dropping the register file). |
| 754 __ leave(); | 754 __ leave(); |
| 755 // Return droping receiver + arguments. | 755 |
| 756 // TODO(rmcilroy): Get number of arguments from BytecodeArray. | 756 // Drop receiver + arguments and return. |
| 757 __ Ret(1 * kPointerSize, ecx); | 757 __ mov(ebx, FieldOperand(kInterpreterBytecodeArrayRegister, |
| 758 BytecodeArray::kParameterSizeOffset)); |
| 759 __ pop(ecx); |
| 760 __ add(esp, ebx); |
| 761 __ push(ecx); |
| 762 __ ret(0); |
| 758 } | 763 } |
| 759 | 764 |
| 760 | 765 |
| 761 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { | 766 void Builtins::Generate_CompileLazy(MacroAssembler* masm) { |
| 762 CallRuntimePassFunction(masm, Runtime::kCompileLazy); | 767 CallRuntimePassFunction(masm, Runtime::kCompileLazy); |
| 763 GenerateTailCallToReturnedCode(masm); | 768 GenerateTailCallToReturnedCode(masm); |
| 764 } | 769 } |
| 765 | 770 |
| 766 | 771 |
| 767 | 772 |
| (...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1784 | 1789 |
| 1785 __ bind(&ok); | 1790 __ bind(&ok); |
| 1786 __ ret(0); | 1791 __ ret(0); |
| 1787 } | 1792 } |
| 1788 | 1793 |
| 1789 #undef __ | 1794 #undef __ |
| 1790 } // namespace internal | 1795 } // namespace internal |
| 1791 } // namespace v8 | 1796 } // namespace v8 |
| 1792 | 1797 |
| 1793 #endif // V8_TARGET_ARCH_X87 | 1798 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |