| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_PPC | 5 #if V8_TARGET_ARCH_PPC |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/debug/debug.h" | 8 #include "src/debug/debug.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 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 __ bind(&no_args); | 1025 __ bind(&no_args); |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 // TODO(rmcilroy): List of things not currently dealt with here but done in | 1028 // TODO(rmcilroy): List of things not currently dealt with here but done in |
| 1029 // fullcodegen's prologue: | 1029 // fullcodegen's prologue: |
| 1030 // - Support profiler (specifically profiling_counter). | 1030 // - Support profiler (specifically profiling_counter). |
| 1031 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 1031 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
| 1032 // - Allow simulator stop operations if FLAG_stop_at is set. | 1032 // - Allow simulator stop operations if FLAG_stop_at is set. |
| 1033 // - Code aging of the BytecodeArray object. | 1033 // - Code aging of the BytecodeArray object. |
| 1034 | 1034 |
| 1035 // Perform stack guard check. | |
| 1036 { | |
| 1037 Label ok; | |
| 1038 __ LoadRoot(r0, Heap::kStackLimitRootIndex); | |
| 1039 __ cmp(sp, r0); | |
| 1040 __ bge(&ok); | |
| 1041 __ push(kInterpreterBytecodeArrayRegister); | |
| 1042 __ CallRuntime(Runtime::kStackGuard); | |
| 1043 __ pop(kInterpreterBytecodeArrayRegister); | |
| 1044 __ bind(&ok); | |
| 1045 } | |
| 1046 | |
| 1047 // Load accumulator, register file, bytecode offset, dispatch table into | 1035 // Load accumulator, register file, bytecode offset, dispatch table into |
| 1048 // registers. | 1036 // registers. |
| 1049 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 1037 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
| 1050 __ addi(kInterpreterRegisterFileRegister, fp, | 1038 __ addi(kInterpreterRegisterFileRegister, fp, |
| 1051 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1039 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
| 1052 __ mov(kInterpreterBytecodeOffsetRegister, | 1040 __ mov(kInterpreterBytecodeOffsetRegister, |
| 1053 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 1041 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
| 1054 __ LoadRoot(kInterpreterDispatchTableRegister, | 1042 __ LoadRoot(kInterpreterDispatchTableRegister, |
| 1055 Heap::kInterpreterTableRootIndex); | 1043 Heap::kInterpreterTableRootIndex); |
| 1056 __ addi(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, | 1044 __ addi(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, |
| (...skipping 1712 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2769 __ bkpt(0); | 2757 __ bkpt(0); |
| 2770 } | 2758 } |
| 2771 } | 2759 } |
| 2772 | 2760 |
| 2773 | 2761 |
| 2774 #undef __ | 2762 #undef __ |
| 2775 } // namespace internal | 2763 } // namespace internal |
| 2776 } // namespace v8 | 2764 } // namespace v8 |
| 2777 | 2765 |
| 2778 #endif // V8_TARGET_ARCH_PPC | 2766 #endif // V8_TARGET_ARCH_PPC |
| OLD | NEW |