diff --git a/src/interpreter/bytecode-register.cc b/src/interpreter/bytecode-register.cc index 094be0de83..31e3b90852 100644 --- a/src/interpreter/bytecode-register.cc +++ b/src/interpreter/bytecode-register.cc @@ -4,8 +4,6 @@ #include "src/interpreter/bytecode-register.h" -#include "src/frames.h" - namespace v8 { namespace internal { namespace interpreter { @@ -39,10 +37,6 @@ static const int kCallerPCOffsetRegisterIndex = InterpreterFrameConstants::kCallerPCOffsetFromFp) / kPointerSize; -STATIC_CONST_MEMBER_DEFINITION const int Register::kInvalidIndex = kMaxInt; -STATIC_CONST_MEMBER_DEFINITION const int Register::kRegisterFileStartOffset = - InterpreterFrameConstants::kRegisterFileFromFp / kPointerSize; - Register Register::FromParameterIndex(int index, int parameter_count) { DCHECK_GE(index, 0); DCHECK_LT(index, parameter_count); diff --git a/src/interpreter/bytecode-register.h b/src/interpreter/bytecode-register.h index 34ba4c2159..c714178958 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;