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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 // TODO(rmcilroy): Consider doing more than one push per loop iteration. | 534 // TODO(rmcilroy): Consider doing more than one push per loop iteration. |
535 __ Push(rdx); | 535 __ Push(rdx); |
536 // Continue loop if not done. | 536 // Continue loop if not done. |
537 __ bind(&loop_check); | 537 __ bind(&loop_check); |
538 __ subp(rcx, Immediate(kPointerSize)); | 538 __ subp(rcx, Immediate(kPointerSize)); |
539 __ j(greater_equal, &loop_header, Label::kNear); | 539 __ j(greater_equal, &loop_header, Label::kNear); |
540 } | 540 } |
541 | 541 |
542 // TODO(rmcilroy): List of things not currently dealt with here but done in | 542 // TODO(rmcilroy): List of things not currently dealt with here but done in |
543 // fullcodegen's prologue: | 543 // fullcodegen's prologue: |
544 // - Support profiler (specifically profiling_counter). | |
545 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 544 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
546 // - Code aging of the BytecodeArray object. | 545 // - Code aging of the BytecodeArray object. |
547 | 546 |
548 // Load accumulator, register file, bytecode offset, dispatch table into | 547 // Load accumulator, register file, bytecode offset, dispatch table into |
549 // registers. | 548 // registers. |
550 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 549 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
551 __ movp(kInterpreterRegisterFileRegister, rbp); | 550 __ movp(kInterpreterRegisterFileRegister, rbp); |
552 __ addp(kInterpreterRegisterFileRegister, | 551 __ addp(kInterpreterRegisterFileRegister, |
553 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 552 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
554 __ movp(kInterpreterBytecodeOffsetRegister, | 553 __ movp(kInterpreterBytecodeOffsetRegister, |
(...skipping 2172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2727 __ ret(0); | 2726 __ ret(0); |
2728 } | 2727 } |
2729 | 2728 |
2730 | 2729 |
2731 #undef __ | 2730 #undef __ |
2732 | 2731 |
2733 } // namespace internal | 2732 } // namespace internal |
2734 } // namespace v8 | 2733 } // namespace v8 |
2735 | 2734 |
2736 #endif // V8_TARGET_ARCH_X64 | 2735 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |