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

Unified Diff: src/frames.h

Issue 2171083004: [interpreter] Implement OSR graph construction from bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_interpreter-osr-2
Patch Set: Fix build on Windows. Created 4 years, 5 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/compiler/pipeline.cc ('k') | no next file » | 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 4be488620d1ef87c607aef3a5c310a2c171b1af8..a5d6806640e77714d50716e75eb9e43aebd25184 100644
--- a/src/frames.h
+++ b/src/frames.h
@@ -334,7 +334,7 @@ class BuiltinExitFrameConstants : public CommonFrameConstants {
class InterpreterFrameConstants : public AllStatic {
public:
- // Fixed frame includes new.target and bytecode offset.
+ // Fixed frame includes new.target, bytecode array, and bytecode offset.
static const int kFixedFrameSize =
StandardFrameConstants::kFixedFrameSize + 3 * kPointerSize;
static const int kFixedFrameSizeFromFp =
@@ -355,6 +355,11 @@ class InterpreterFrameConstants : public AllStatic {
static const int kExpressionsOffset = kRegisterFileFromFp;
+ // Number of fixed slots in addition to a {StandardFrame}.
+ static const int kExtraSlotCount =
+ InterpreterFrameConstants::kFixedFrameSize / kPointerSize -
+ StandardFrameConstants::kFixedFrameSize / kPointerSize;
+
// Expression index for {StandardFrame::GetExpressionAddress}.
static const int kBytecodeArrayExpressionIndex = -2;
static const int kBytecodeOffsetExpressionIndex = -1;
« no previous file with comments | « src/compiler/pipeline.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698