Index: src/compiler/frame-states.h |
diff --git a/src/compiler/frame-states.h b/src/compiler/frame-states.h |
index 0d0ec47f88c99384c2e60bf9602a9592c0d0bcbb..d0ac9858f2543b1e87911c1567d376ea8043b75a 100644 |
--- a/src/compiler/frame-states.h |
+++ b/src/compiler/frame-states.h |
@@ -5,6 +5,7 @@ |
#ifndef V8_COMPILER_FRAME_STATES_H_ |
#define V8_COMPILER_FRAME_STATES_H_ |
+#include "src/builtins/builtins.h" |
#include "src/handles.h" |
#include "src/utils.h" |
@@ -82,7 +83,8 @@ enum class FrameStateType { |
kTailCallerFunction, // Represents a frame removed by tail call elimination. |
kConstructStub, // Represents a ConstructStubFrame. |
kGetterStub, // Represents a GetterStubFrame. |
- kSetterStub // Represents a SetterStubFrame. |
+ kSetterStub, // Represents a SetterStubFrame. |
+ kBuiltinContinuation // Represents a continuation to a stub |
Jarin
2017/05/24 06:41:22
I am sorry for this nit, I just have to say this:
danno
2017/06/06 12:04:52
Done.
|
}; |
class FrameStateFunctionInfo { |
@@ -160,6 +162,24 @@ static const int kFrameStateFunctionInput = 4; |
static const int kFrameStateOuterStateInput = 5; |
static const int kFrameStateInputCount = kFrameStateOuterStateInput + 1; |
+class JSGraph; |
+class Node; |
Michael Starzinger
2017/05/24 13:54:59
nit: Please hoist forward declarations all the way
danno
2017/06/06 12:04:52
Done.
|
+ |
+enum class ContinuationFrameStateMode { EAGER, LAZY }; |
+ |
+Node* CreateStubBuiltinContinuationFrameState(JSGraph* graph, |
+ Builtins::Name name, |
+ Node* context, Node** parameters, |
+ int parameter_count, |
+ Node* outer_frame_state, |
+ ContinuationFrameStateMode mode); |
+ |
+Node* CreateJavaScriptBuiltinContinuationFrameState( |
+ JSGraph* graph, Handle<SharedFunctionInfo> shared, Builtins::Name name, |
+ Node* target, Node* context, Node** stack_parameters, |
+ int stack_parameter_count, Node* outer_frame_state, |
+ ContinuationFrameStateMode mode); |
+ |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |