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

Unified Diff: src/frames.h

Issue 1684073002: [Interpreter] Save and restore dispatch table pointer during calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_assm
Patch Set: 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
Index: src/frames.h
diff --git a/src/frames.h b/src/frames.h
index 48e5a3e1490ec826cbb4747ab2bd95b4f5ddb603..3df4abffd8e6c4ee635d34be675a0b74c003ea43 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -178,28 +178,29 @@ class InterpreterFrameConstants : public AllStatic {
public:
// Fixed frame includes new.target and bytecode offset.
static const int kFixedFrameSize =
- StandardFrameConstants::kFixedFrameSize + 2 * kPointerSize;
+ StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize;
static const int kFixedFrameSizeFromFp =
- StandardFrameConstants::kFixedFrameSizeFromFp + 2 * kPointerSize;
+ StandardFrameConstants::kFixedFrameSizeFromFp + 3 * kPointerSize;
// FP-relative.
static const int kBytecodeOffsetFromFp =
- -StandardFrameConstants::kFixedFrameSizeFromFp - 2 * kPointerSize;
- static const int kRegisterFilePointerFromFp =
-StandardFrameConstants::kFixedFrameSizeFromFp - 3 * kPointerSize;
+ static const int kRegisterFilePointerFromFp =
+ -StandardFrameConstants::kFixedFrameSizeFromFp - 4 * kPointerSize;
// Expression index for {StandardFrame::GetExpressionAddress}.
- static const int kBytecodeOffsetExpressionIndex = 1;
- static const int kRegisterFileExpressionIndex = 2;
+ static const int kBytecodeOffsetExpressionIndex = 2;
+ static const int kRegisterFileExpressionIndex = 3;
// Register file pointer relative.
static const int kLastParamFromRegisterPointer =
- StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize;
+ StandardFrameConstants::kFixedFrameSize + 4 * 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;
+ static const int kDispatchTableFromRegisterPointer = 2 * kPointerSize;
+ static const int kNewTargetFromRegisterPointer = 3 * kPointerSize;
+ static const int kFunctionFromRegisterPointer = 4 * kPointerSize;
+ static const int kContextFromRegisterPointer = 5 * kPointerSize;
Yang 2016/02/10 12:37:46 Can you introduce a convenience method to read and
rmcilroy 2016/02/11 09:00:50 Done.
};

Powered by Google App Engine
This is Rietveld 408576698