summaryrefslogtreecommitdiff
path: root/deps/v8/src/x64/constants-x64.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/x64/constants-x64.h')
-rw-r--r--deps/v8/src/x64/constants-x64.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/deps/v8/src/x64/constants-x64.h b/deps/v8/src/x64/constants-x64.h
new file mode 100644
index 0000000000..1f2b04248c
--- /dev/null
+++ b/deps/v8/src/x64/constants-x64.h
@@ -0,0 +1,21 @@
+// 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.
+
+#ifndef V8_X64_CONSTANTS_X64_H_
+#define V8_X64_CONSTANTS_X64_H_
+
+#include "src/globals.h"
+
+namespace v8 {
+namespace internal {
+// 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.
+constexpr int kRootRegisterBias = 128;
+
+constexpr size_t kMaxPCRelativeCodeRangeInMB = 2048;
+} // namespace internal
+} // namespace v8
+
+#endif // V8_X64_CONSTANTS_X64_H_