• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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_X64_CONSTANTS_X64_H_
6 #define V8_X64_CONSTANTS_X64_H_
7 
8 #include "src/globals.h"
9 
10 namespace v8 {
11 namespace 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 constexpr int kRootRegisterBias = 128;
16 
17 constexpr size_t kMaxPCRelativeCodeRangeInMB = 2048;
18 }  // namespace internal
19 }  // namespace v8
20 
21 #endif  // V8_X64_CONSTANTS_X64_H_
22