1 // Copyright 2021 the V8 project authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #if V8_TARGET_ARCH_RISCV64 6 7 #include "src/execution/riscv64/frame-constants-riscv64.h" 8 9 #include "src/codegen/riscv64/assembler-riscv64-inl.h" 10 #include "src/execution/frame-constants.h" 11 #include "src/execution/frames.h" 12 13 namespace v8 { 14 namespace internal { 15 fp_register()16Register JavaScriptFrame::fp_register() { return v8::internal::fp; } context_register()17Register JavaScriptFrame::context_register() { return cp; } constant_pool_pointer_register()18Register JavaScriptFrame::constant_pool_pointer_register() { UNREACHABLE(); } 19 RegisterStackSlotCount(int register_count)20int UnoptimizedFrameConstants::RegisterStackSlotCount(int register_count) { 21 return register_count; 22 } 23 PaddingSlotCount(int register_count)24int BuiltinContinuationFrameConstants::PaddingSlotCount(int register_count) { 25 USE(register_count); 26 return 0; 27 } 28 29 } // namespace internal 30 } // namespace v8 31 32 #endif // V8_TARGET_ARCH_RISCV64 33