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