Index: src/interpreter/bytecode-register.h |
diff --git a/src/interpreter/bytecode-register.h b/src/interpreter/bytecode-register.h |
index 34ba4c21591e143ec798a9d938fac0d7191fddfb..c714178958de633749021a29b9f7581acee79eca 100644 |
--- a/src/interpreter/bytecode-register.h |
+++ b/src/interpreter/bytecode-register.h |
@@ -5,6 +5,7 @@ |
#ifndef V8_INTERPRETER_BYTECODE_REGISTER_H_ |
#define V8_INTERPRETER_BYTECODE_REGISTER_H_ |
+#include "src/frames.h" |
#include "src/interpreter/bytecodes.h" |
namespace v8 { |
@@ -86,8 +87,9 @@ class Register final { |
} |
private: |
- static const int kInvalidIndex; |
- static const int kRegisterFileStartOffset; |
+ static const int kInvalidIndex = kMaxInt; |
+ static const int kRegisterFileStartOffset = |
+ InterpreterFrameConstants::kRegisterFileFromFp / kPointerSize; |
void* operator new(size_t size) = delete; |
void operator delete(void* p) = delete; |