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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 // Continue loop if not done. | 591 // Continue loop if not done. |
592 __ bind(&loop_check); | 592 __ bind(&loop_check); |
593 __ sub(ebx, Immediate(kPointerSize)); | 593 __ sub(ebx, Immediate(kPointerSize)); |
594 __ j(greater_equal, &loop_header); | 594 __ j(greater_equal, &loop_header); |
595 } | 595 } |
596 | 596 |
597 // TODO(rmcilroy): List of things not currently dealt with here but done in | 597 // TODO(rmcilroy): List of things not currently dealt with here but done in |
598 // fullcodegen's prologue: | 598 // fullcodegen's prologue: |
599 // - Support profiler (specifically profiling_counter). | 599 // - Support profiler (specifically profiling_counter). |
600 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 600 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
601 // - Allow simulator stop operations if FLAG_stop_at is set. | |
602 // - Code aging of the BytecodeArray object. | 601 // - Code aging of the BytecodeArray object. |
603 | 602 |
604 // Load accumulator, register file, bytecode offset, dispatch table into | 603 // Load accumulator, register file, bytecode offset, dispatch table into |
605 // registers. | 604 // registers. |
606 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 605 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
607 __ mov(kInterpreterRegisterFileRegister, ebp); | 606 __ mov(kInterpreterRegisterFileRegister, ebp); |
608 __ add(kInterpreterRegisterFileRegister, | 607 __ add(kInterpreterRegisterFileRegister, |
609 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 608 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
610 __ mov(kInterpreterBytecodeOffsetRegister, | 609 __ mov(kInterpreterBytecodeOffsetRegister, |
611 Immediate(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 610 Immediate(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
(...skipping 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2801 | 2800 |
2802 __ bind(&ok); | 2801 __ bind(&ok); |
2803 __ ret(0); | 2802 __ ret(0); |
2804 } | 2803 } |
2805 | 2804 |
2806 #undef __ | 2805 #undef __ |
2807 } // namespace internal | 2806 } // namespace internal |
2808 } // namespace v8 | 2807 } // namespace v8 |
2809 | 2808 |
2810 #endif // V8_TARGET_ARCH_X87 | 2809 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |