| 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..9bb02c5520152c6d0115cf591fb7913b0eeb1884 100644
|
| --- a/src/compiler/ast-graph-builder.h
|
| +++ b/src/compiler/ast-graph-builder.h
|
| @@ -172,16 +172,9 @@ 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);
|
| + OutputFrameStateCombine combine = kIgnoreOutput);
|
|
|
| OutputFrameStateCombine StateCombineFromAstContext();
|
|
|
| @@ -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,8 +281,8 @@ 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() {
|
| - return IsEffect() ? IGNORE_OUTPUT : PUSH_OUTPUT;
|
| + OutputFrameStateCombine GetStateCombine() {
|
| + return IsEffect() ? kIgnoreOutput : kPushOutput;
|
| }
|
|
|
| // Plug a node into this expression context. Call this function in tail
|
|
|