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

Unified Diff: src/frames.h

Issue 1512543002: [Interpreter] Save bytecode offset in interpreter stack frames. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix ia32 and rebase Created 5 years 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/compiler/raw-machine-assembler.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.h
diff --git a/src/frames.h b/src/frames.h
index b4c58b7578f87e5211bfbf901356b5c36646e7d2..76b8cb89390d33846cfa5fc5c913ac9d2a9537da 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -176,12 +176,18 @@ class ConstructFrameConstants : public AllStatic {
class InterpreterFrameConstants : public AllStatic {
public:
+ // FP-relative.
+ static const int kRegisterFilePointerFromFp =
+ -StandardFrameConstants::kFixedFrameSizeFromFp - 3 * kPointerSize;
+
// Register file pointer relative.
static const int kLastParamFromRegisterPointer =
- StandardFrameConstants::kFixedFrameSize + 2 * kPointerSize;
- static const int kNewTargetFromRegisterPointer = kPointerSize;
- static const int kFunctionFromRegisterPointer = 2 * kPointerSize;
- static const int kContextFromRegisterPointer = 3 * kPointerSize;
+ StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize;
+
+ static const int kBytecodeOffsetFromRegisterPointer = 1 * kPointerSize;
+ static const int kNewTargetFromRegisterPointer = 2 * kPointerSize;
+ static const int kFunctionFromRegisterPointer = 3 * kPointerSize;
+ static const int kContextFromRegisterPointer = 4 * kPointerSize;
};
« no previous file with comments | « src/compiler/raw-machine-assembler.cc ('k') | src/ia32/builtins-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698