[interpreter] Fix Register const declarations.

BUG=v8:4280
LOG=N

Review-Url: https://codereview.chromium.org/2143133004
Cr-Commit-Position: refs/heads/master@{#37721}
This commit is contained in:
oth 2016-07-13 09:00:39 -07:00 committed by Commit bot
parent 122df5115d
commit 62c21128d6
2 changed files with 4 additions and 8 deletions

View File

@ -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);

View File

@ -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;