Commit 62c21128 authored by oth's avatar oth Committed by Commit bot

[interpreter] Fix Register const declarations.

BUG=v8:4280
LOG=N

Review-Url: https://codereview.chromium.org/2143133004
Cr-Commit-Position: refs/heads/master@{#37721}
parent 122df511
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment