Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 52c76b65ee2103c28ed93dfb1694918b90a9d360..5f04bb4d9b36b703266333d13de584ee603e27dc 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1250,7 +1250,7 @@ void InterpretedFrame::PatchBytecodeArray(BytecodeArray* bytecode_array) { |
SetExpression(index, bytecode_array); |
} |
-Object* InterpretedFrame::GetInterpreterRegister(int register_index) const { |
+Object* InterpretedFrame::ReadInterpreterRegister(int register_index) const { |
const int index = InterpreterFrameConstants::kRegisterFileExpressionIndex; |
DCHECK_EQ( |
InterpreterFrameConstants::kRegisterFilePointerFromFp, |
@@ -1258,6 +1258,15 @@ Object* InterpretedFrame::GetInterpreterRegister(int register_index) const { |
return GetExpression(index + register_index); |
} |
+void InterpretedFrame::WriteInterpreterRegister(int register_index, |
+ Object* value) { |
+ const int index = InterpreterFrameConstants::kRegisterFileExpressionIndex; |
+ DCHECK_EQ( |
+ InterpreterFrameConstants::kRegisterFilePointerFromFp, |
+ InterpreterFrameConstants::kExpressionsOffset - index * kPointerSize); |
+ return SetExpression(index + register_index, value); |
+} |
+ |
void InterpretedFrame::Summarize(List<FrameSummary>* functions) const { |
DCHECK(functions->length() == 0); |
AbstractCode* abstract_code = |