Index: src/compiler/ast-graph-builder.h |
diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h |
index 05bc2271dcc36c4157844f29fdca4fef740268ab..62d2e73eb577a3e982af87be9eb6b726a402f52e 100644 |
--- a/src/compiler/ast-graph-builder.h |
+++ b/src/compiler/ast-graph-builder.h |
@@ -172,13 +172,6 @@ class AstGraphBuilder : public StructuredGraphBuilder, public AstVisitor { |
// Dispatched from VisitForInStatement. |
void VisitForInAssignment(Expression* expr, Node* value); |
- // Flag that describes how to combine the current environment with |
- // the output of a node to obtain a framestate for lazy bailout. |
- enum OutputFrameStateCombine { |
- PUSH_OUTPUT, // Push the output on the expression stack. |
- IGNORE_OUTPUT // Use the frame state as-is. |
- }; |
- |
// Builds deoptimization for a given node. |
void PrepareFrameState(Node* node, BailoutId ast_id, |
OutputFrameStateCombine combine = IGNORE_OUTPUT); |
@@ -265,7 +258,7 @@ class AstGraphBuilder::Environment |
// Preserve a checkpoint of the environment for the IR graph. Any |
// further mutation of the environment will not affect checkpoints. |
- Node* Checkpoint(BailoutId ast_id); |
+ Node* Checkpoint(BailoutId ast_id, OutputFrameStateCombine combine); |
private: |
void UpdateStateValues(Node** state_values, int offset, int count); |
@@ -288,7 +281,7 @@ class AstGraphBuilder::AstContext BASE_EMBEDDED { |
// Determines how to combine the frame state with the value |
// that is about to be plugged into this AstContext. |
- AstGraphBuilder::OutputFrameStateCombine GetStateCombine() { |
+ OutputFrameStateCombine GetStateCombine() { |
return IsEffect() ? IGNORE_OUTPUT : PUSH_OUTPUT; |
} |