summaryrefslogtreecommitdiff
path: root/deps/v8/src/ppc/constants-ppc.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/ppc/constants-ppc.h')
-rw-r--r--deps/v8/src/ppc/constants-ppc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/deps/v8/src/ppc/constants-ppc.h b/deps/v8/src/ppc/constants-ppc.h
index 44749d4eb6..673e5dc9b7 100644
--- a/deps/v8/src/ppc/constants-ppc.h
+++ b/deps/v8/src/ppc/constants-ppc.h
@@ -23,6 +23,9 @@
namespace v8 {
namespace internal {
+// TODO(sigurds): Change this value once we use relative jumps.
+constexpr size_t kMaxPCRelativeCodeRangeInMB = 0;
+
// Number of registers
const int kNumRegisters = 32;
@@ -36,6 +39,11 @@ const int kNoRegister = -1;
const int kLoadPtrMaxReachBits = 15;
const int kLoadDoubleMaxReachBits = 15;
+// 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;
+
// sign-extend the least significant 16-bits of value <imm>
#define SIGN_EXT_IMM16(imm) ((static_cast<int>(imm) << 16) >> 16)