• 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_IA32_CONSTANTS_IA32_H_
6 #define V8_IA32_CONSTANTS_IA32_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 // For x86, this value is provided for uniformity with other platforms, although
15 // currently no root register is present.
16 constexpr int kRootRegisterBias = 0;
17 
18 // Used temporarily to track clobbering of the root register.
19 // TODO(v8:6666): Remove this once use the root register.
20 constexpr size_t kRootRegisterSentinel = 0xcafeca11;
21 
22 // TODO(sigurds): Change this value once we use relative jumps.
23 constexpr size_t kMaxPCRelativeCodeRangeInMB = 0;
24 }  // namespace internal
25 }  // namespace v8
26 
27 #endif  // V8_IA32_CONSTANTS_IA32_H_
28