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

Unified Diff: src/frames.cc

Issue 1665833002: [interpreter] Switch context during stack unwinding. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased. Created 4 years, 10 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
« no previous file with comments | « src/frames.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index 4e499455f7eabb15295ba0c5f4e7e0bc19f5c900..def333dfcde6c23cce7cfcfddf4625959061a708 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1163,6 +1163,13 @@ void InterpretedFrame::PatchBytecodeOffset(int new_offset) {
SetExpression(index, Smi::FromInt(raw_offset));
}
+Object* InterpretedFrame::GetInterpreterRegister(int register_index) const {
+ const int index = InterpreterFrameConstants::kRegisterFileExpressionIndex;
+ DCHECK_EQ(InterpreterFrameConstants::kRegisterFilePointerFromFp,
+ StandardFrameConstants::kExpressionsOffset - index * kPointerSize);
+ return GetExpression(index + register_index);
+}
+
void InterpretedFrame::Summarize(List<FrameSummary>* functions) {
DCHECK(functions->length() == 0);
AbstractCode* abstract_code =
« no previous file with comments | « src/frames.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698