Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Unified Diff: src/frames.cc

Issue 1884183002: First version of the new generators implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index d68339af193445d9c0a06082fae648e15b44370c..8011fbda8e89e734c51910c1da1093e0a688d6e3 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1244,7 +1244,7 @@ void InterpretedFrame::PatchBytecodeArray(Object* 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,
@@ -1252,6 +1252,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 =
« no previous file with comments | « src/frames.h ('k') | src/ia32/builtins-ia32.cc » ('j') | src/interpreter/bytecode-generator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698