OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64 | 5 #if V8_TARGET_ARCH_ARM64 |
6 | 6 |
7 #include "src/arm64/frames-arm64.h" | 7 #include "src/arm64/frames-arm64.h" |
8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
(...skipping 1034 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1045 __ Bind(&loop_header); | 1045 __ Bind(&loop_header); |
1046 } | 1046 } |
1047 | 1047 |
1048 // TODO(rmcilroy): List of things not currently dealt with here but done in | 1048 // TODO(rmcilroy): List of things not currently dealt with here but done in |
1049 // fullcodegen's prologue: | 1049 // fullcodegen's prologue: |
1050 // - Support profiler (specifically profiling_counter). | 1050 // - Support profiler (specifically profiling_counter). |
1051 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. | 1051 // - Call ProfileEntryHookStub when isolate has a function_entry_hook. |
1052 // - Allow simulator stop operations if FLAG_stop_at is set. | 1052 // - Allow simulator stop operations if FLAG_stop_at is set. |
1053 // - Code aging of the BytecodeArray object. | 1053 // - Code aging of the BytecodeArray object. |
1054 | 1054 |
1055 // Perform stack guard check. | |
1056 { | |
1057 Label ok; | |
1058 __ CompareRoot(jssp, Heap::kStackLimitRootIndex); | |
1059 __ B(hs, &ok); | |
1060 __ Push(kInterpreterBytecodeArrayRegister); | |
1061 __ CallRuntime(Runtime::kStackGuard); | |
1062 __ Pop(kInterpreterBytecodeArrayRegister); | |
1063 __ Bind(&ok); | |
1064 } | |
1065 | |
1066 // Load accumulator, register file, bytecode offset, dispatch table into | 1055 // Load accumulator, register file, bytecode offset, dispatch table into |
1067 // registers. | 1056 // registers. |
1068 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); | 1057 __ LoadRoot(kInterpreterAccumulatorRegister, Heap::kUndefinedValueRootIndex); |
1069 __ Add(kInterpreterRegisterFileRegister, fp, | 1058 __ Add(kInterpreterRegisterFileRegister, fp, |
1070 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); | 1059 Operand(InterpreterFrameConstants::kRegisterFilePointerFromFp)); |
1071 __ Mov(kInterpreterBytecodeOffsetRegister, | 1060 __ Mov(kInterpreterBytecodeOffsetRegister, |
1072 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); | 1061 Operand(BytecodeArray::kHeaderSize - kHeapObjectTag)); |
1073 __ LoadRoot(kInterpreterDispatchTableRegister, | 1062 __ LoadRoot(kInterpreterDispatchTableRegister, |
1074 Heap::kInterpreterTableRootIndex); | 1063 Heap::kInterpreterTableRootIndex); |
1075 __ Add(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, | 1064 __ Add(kInterpreterDispatchTableRegister, kInterpreterDispatchTableRegister, |
(...skipping 1760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2836 } | 2825 } |
2837 } | 2826 } |
2838 | 2827 |
2839 | 2828 |
2840 #undef __ | 2829 #undef __ |
2841 | 2830 |
2842 } // namespace internal | 2831 } // namespace internal |
2843 } // namespace v8 | 2832 } // namespace v8 |
2844 | 2833 |
2845 #endif // V8_TARGET_ARCH_ARM | 2834 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |