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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 // TODO(rmcilroy): Consider doing more than one push per loop iteration. | 592 // TODO(rmcilroy): Consider doing more than one push per loop iteration. |
593 __ push(eax); | 593 __ push(eax); |
594 // Continue loop if not done. | 594 // Continue loop if not done. |
595 __ bind(&loop_check); | 595 __ bind(&loop_check); |
596 __ sub(ebx, Immediate(kPointerSize)); | 596 __ sub(ebx, Immediate(kPointerSize)); |
597 __ j(greater_equal, &loop_header); | 597 __ j(greater_equal, &loop_header); |
598 } | 598 } |
599 | 599 |
600 // TODO(rmcilroy): List of things not currently dealt with here but done in | 600 // TODO(rmcilroy): List of things not currently dealt with here but done in |
601 // fullcodegen's prologue: | 601 // fullcodegen's prologue: |
602 // - Support profiler (specifically profiling_counter). | |
603 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 602 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
604 // - Code aging of the BytecodeArray object. | 603 // - Code aging of the BytecodeArray object. |
605 | 604 |
606 // Load accumulator, register file, bytecode offset, dispatch table into | 605 // Load accumulator, register file, bytecode offset, dispatch table into |
607 // registers. | 606 // registers. |
608 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 607 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
609 __ mov(kInterpreterRegisterFileRegister, ebp); | 608 __ mov(kInterpreterRegisterFileRegister, ebp); |
610 __ add(kInterpreterRegisterFileRegister, | 609 __ add(kInterpreterRegisterFileRegister, |
611 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 610 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
612 __ mov(kInterpreterBytecodeOffsetRegister, | 611 __ mov(kInterpreterBytecodeOffsetRegister, |
(...skipping 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2806 | 2805 |
2807 __ bind(&ok); | 2806 __ bind(&ok); |
2808 __ ret(0); | 2807 __ ret(0); |
2809 } | 2808 } |
2810 | 2809 |
2811 #undef __ | 2810 #undef __ |
2812 } // namespace internal | 2811 } // namespace internal |
2813 } // namespace v8 | 2812 } // namespace v8 |
2814 | 2813 |
2815 #endif // V8_TARGET_ARCH_X87 | 2814 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |