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 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 // TODO(rmcilroy): Consider doing more than one push per loop iteration. | 463 // TODO(rmcilroy): Consider doing more than one push per loop iteration. |
464 __ push(eax); | 464 __ push(eax); |
465 // Continue loop if not done. | 465 // Continue loop if not done. |
466 __ bind(&loop_check); | 466 __ bind(&loop_check); |
467 __ sub(ebx, Immediate(kPointerSize)); | 467 __ sub(ebx, Immediate(kPointerSize)); |
468 __ j(greater_equal, &loop_header); | 468 __ j(greater_equal, &loop_header); |
469 } | 469 } |
470 | 470 |
471 // TODO(rmcilroy): List of things not currently dealt with here but done in | 471 // TODO(rmcilroy): List of things not currently dealt with here but done in |
472 // fullcodegen's prologue: | 472 // fullcodegen's prologue: |
473 // - Support profiler (specifically profiling_counter). | |
474 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 473 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
475 // - Code aging of the BytecodeArray object. | 474 // - Code aging of the BytecodeArray object. |
476 | 475 |
477 // Load accumulator, register file, bytecode offset, dispatch table into | 476 // Load accumulator, register file, bytecode offset, dispatch table into |
478 // registers. | 477 // registers. |
479 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 478 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
480 __ mov(kInterpreterRegisterFileRegister, ebp); | 479 __ mov(kInterpreterRegisterFileRegister, ebp); |
481 __ add(kInterpreterRegisterFileRegister, | 480 __ add(kInterpreterRegisterFileRegister, |
482 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 481 Immediate(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
483 __ mov(kInterpreterBytecodeOffsetRegister, | 482 __ mov(kInterpreterBytecodeOffsetRegister, |
(...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2650 | 2649 |
2651 __ bind(&ok); | 2650 __ bind(&ok); |
2652 __ ret(0); | 2651 __ ret(0); |
2653 } | 2652 } |
2654 | 2653 |
2655 #undef __ | 2654 #undef __ |
2656 } // namespace internal | 2655 } // namespace internal |
2657 } // namespace v8 | 2656 } // namespace v8 |
2658 | 2657 |
2659 #endif // V8_TARGET_ARCH_IA32 | 2658 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |