blob: 327c0ed188ef0835c01593084c0c2e60c318a9f8 [file] [log] [blame]
// Copyright 2013 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/frame-constants.h"
#if V8_TARGET_ARCH_ARM64
#include "src/arm64/assembler-arm64-inl.h"
#include "src/arm64/assembler-arm64.h"
#include "src/assembler.h"
#include "src/arm64/frame-constants-arm64.h"
namespace v8 {
namespace internal {
Register JavaScriptFrame::fp_register() { return v8::internal::fp; }
Register JavaScriptFrame::context_register() { return cp; }
Register JavaScriptFrame::constant_pool_pointer_register() { UNREACHABLE(); }
int InterpreterFrameConstants::RegisterStackSlotCount(int register_count) {
// Round up to a multiple of two, to make the frame a multiple of 16 bytes.
return RoundUp(register_count, 2);
}
} // namespace internal
} // namespace v8
#endif // V8_TARGET_ARCH_ARM64