constants-x64.h 751 Bytes
Newer Older
1 2 3 4
// Copyright 2018 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.

5 6
#ifndef V8_CODEGEN_X64_CONSTANTS_X64_H_
#define V8_CODEGEN_X64_CONSTANTS_X64_H_
7

8
#include "src/common/globals.h"
9 10 11

namespace v8 {
namespace internal {
12 13 14
// Actual value of root register is offset from the root array's start
// to take advantage of negative displacement values.
// TODO(sigurds): Choose best value.
15 16
// TODO(ishell): Choose best value for ptr-compr.
constexpr int kRootRegisterBias = kSystemPointerSize == kTaggedSize ? 128 : 0;
17

18 19 20 21
constexpr size_t kMaxPCRelativeCodeRangeInMB = 2048;
}  // namespace internal
}  // namespace v8

22
#endif  // V8_CODEGEN_X64_CONSTANTS_X64_H_