1// Copyright 2018 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#ifndef V8_CODEGEN_X64_CONSTANTS_X64_H_
6#define V8_CODEGEN_X64_CONSTANTS_X64_H_
7
8#include "src/common/globals.h"
9
10namespace v8 {
11namespace internal {
12// Actual value of root register is offset from the root array's start
13// to take advantage of negative displacement values.
14// TODO(sigurds): Choose best value.
15// TODO(ishell): Choose best value for ptr-compr.
16constexpr int kRootRegisterBias = kSystemPointerSize == kTaggedSize ? 128 : 0;
17
18constexpr size_t kMaxPCRelativeCodeRangeInMB = 2048;
19}  // namespace internal
20}  // namespace v8
21
22#endif  // V8_CODEGEN_X64_CONSTANTS_X64_H_
23