| Index: src/compiler/ast-graph-builder.h
|
| diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h
|
| index 6a7e3db90e09c2871c245825411598ac4169a9b4..b62235547b98407f0c9422061325c54e83f43936 100644
|
| --- a/src/compiler/ast-graph-builder.h
|
| +++ b/src/compiler/ast-graph-builder.h
|
| @@ -80,7 +80,8 @@ class AstGraphBuilder : public StructuredGraphBuilder, public AstVisitor {
|
| // Builders for variable load and assignment.
|
| Node* BuildVariableAssignment(Variable* var, Node* value, Token::Value op,
|
| BailoutId bailout_id);
|
| - Node* BuildVariableDelete(Variable* var);
|
| + Node* BuildVariableDelete(Variable* var, BailoutId bailout_id,
|
| + OutputFrameStateCombine state_combine);
|
| Node* BuildVariableLoad(Variable* var, BailoutId bailout_id,
|
| ContextualMode mode = CONTEXTUAL);
|
|
|
| @@ -94,11 +95,12 @@ class AstGraphBuilder : public StructuredGraphBuilder, public AstVisitor {
|
| Node* BuildToBoolean(Node* value);
|
|
|
| // Builders for error reporting at runtime.
|
| - Node* BuildThrowReferenceError(Variable* var);
|
| + Node* BuildThrowReferenceError(Variable* var, BailoutId bailout_id);
|
|
|
| // Builders for dynamic hole-checks at runtime.
|
| Node* BuildHoleCheckSilent(Node* value, Node* for_hole, Node* not_hole);
|
| - Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole);
|
| + Node* BuildHoleCheckThrow(Node* value, Variable* var, Node* not_hole,
|
| + BailoutId bailout_id);
|
|
|
| // Builders for binary operations.
|
| Node* BuildBinaryOp(Node* left, Node* right, Token::Value op);
|
| @@ -173,8 +175,9 @@ class AstGraphBuilder : public StructuredGraphBuilder, public AstVisitor {
|
| void VisitForInAssignment(Expression* expr, Node* value);
|
|
|
| // Builds deoptimization for a given node.
|
| - void PrepareFrameState(Node* node, BailoutId ast_id,
|
| - OutputFrameStateCombine combine = kIgnoreOutput);
|
| + void PrepareFrameState(
|
| + Node* node, BailoutId ast_id,
|
| + OutputFrameStateCombine combine = OutputFrameStateCombine::Ignore());
|
|
|
| OutputFrameStateCombine StateCombineFromAstContext();
|
|
|
| @@ -288,7 +291,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.
|
| OutputFrameStateCombine GetStateCombine() {
|
| - return IsEffect() ? kIgnoreOutput : kPushOutput;
|
| + return IsEffect() ? OutputFrameStateCombine::Ignore()
|
| + : OutputFrameStateCombine::Push();
|
| }
|
|
|
| // Plug a node into this expression context. Call this function in tail
|
|
|