| 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
| 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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 // Continue loop if not done. | 660 // Continue loop if not done. |
| 661 __ bind(&loop_check); | 661 __ bind(&loop_check); |
| 662 __ subp(rcx, Immediate(kPointerSize)); | 662 __ subp(rcx, Immediate(kPointerSize)); |
| 663 __ j(greater_equal, &loop_header, Label::kNear); | 663 __ j(greater_equal, &loop_header, Label::kNear); |
| 664 } | 664 } |
| 665 | 665 |
| 666 // TODO(rmcilroy): List of things not currently dealt with here but done in | 666 // TODO(rmcilroy): List of things not currently dealt with here but done in |
| 667 // fullcodegen's prologue: | 667 // fullcodegen's prologue: |
| 668 // - Support profiler (specifically profiling_counter). | 668 // - Support profiler (specifically profiling_counter). |
| 669 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 669 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
| 670 // - Allow simulator stop operations if FLAG_stop_at is set. | |
| 671 // - Code aging of the BytecodeArray object. | 670 // - Code aging of the BytecodeArray object. |
| 672 | 671 |
| 673 // Load accumulator, register file, bytecode offset, dispatch table into | 672 // Load accumulator, register file, bytecode offset, dispatch table into |
| 674 // registers. | 673 // registers. |
| 675 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 674 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
| 676 __ movp(kInterpreterRegisterFileRegister, rbp); | 675 __ movp(kInterpreterRegisterFileRegister, rbp); |
| 677 __ addp(kInterpreterRegisterFileRegister, | 676 __ addp(kInterpreterRegisterFileRegister, |
| 678 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 677 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
| 679 __ movp(kInterpreterBytecodeOffsetRegister, | 678 __ movp(kInterpreterBytecodeOffsetRegister, |
| 680 Immediate(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 679 Immediate(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
| (...skipping 2171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2852 __ ret(0); | 2851 __ ret(0); |
| 2853 } | 2852 } |
| 2854 | 2853 |
| 2855 | 2854 |
| 2856 #undef __ | 2855 #undef __ |
| 2857 | 2856 |
| 2858 } // namespace internal | 2857 } // namespace internal |
| 2859 } // namespace v8 | 2858 } // namespace v8 |
| 2860 | 2859 |
| 2861 #endif // V8_TARGET_ARCH_X64 | 2860 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |