OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_ | 5 #ifndef V8_COMPILER_AST_GRAPH_BUILDER_H_ |
6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ | 6 #define V8_COMPILER_AST_GRAPH_BUILDER_H_ |
7 | 7 |
8 #include "src/ast/ast.h" | 8 #include "src/ast/ast.h" |
9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
10 #include "src/compiler/liveness-analyzer.h" | 10 #include "src/compiler/liveness-analyzer.h" |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 } | 511 } |
512 void TrimStack(int trim_to_height) { | 512 void TrimStack(int trim_to_height) { |
513 int depth = stack_height() - trim_to_height; | 513 int depth = stack_height() - trim_to_height; |
514 DCHECK(depth >= 0 && depth <= stack_height()); | 514 DCHECK(depth >= 0 && depth <= stack_height()); |
515 values()->erase(values()->end() - depth, values()->end()); | 515 values()->erase(values()->end() - depth, values()->end()); |
516 } | 516 } |
517 | 517 |
518 // Preserve a checkpoint of the environment for the IR graph. Any | 518 // Preserve a checkpoint of the environment for the IR graph. Any |
519 // further mutation of the environment will not affect checkpoints. | 519 // further mutation of the environment will not affect checkpoints. |
520 Node* Checkpoint(BailoutId ast_id, OutputFrameStateCombine combine = | 520 Node* Checkpoint(BailoutId ast_id, OutputFrameStateCombine combine = |
521 OutputFrameStateCombine::Ignore()); | 521 OutputFrameStateCombine::Ignore(), |
| 522 bool node_has_exception = false); |
522 | 523 |
523 // Control dependency tracked by this environment. | 524 // Control dependency tracked by this environment. |
524 Node* GetControlDependency() { return control_dependency_; } | 525 Node* GetControlDependency() { return control_dependency_; } |
525 void UpdateControlDependency(Node* dependency) { | 526 void UpdateControlDependency(Node* dependency) { |
526 control_dependency_ = dependency; | 527 control_dependency_ = dependency; |
527 } | 528 } |
528 | 529 |
529 // Effect dependency tracked by this environment. | 530 // Effect dependency tracked by this environment. |
530 Node* GetEffectDependency() { return effect_dependency_; } | 531 Node* GetEffectDependency() { return effect_dependency_; } |
531 void UpdateEffectDependency(Node* dependency) { | 532 void UpdateEffectDependency(Node* dependency) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 | 584 |
584 // Prepare environment to be used as loop header. | 585 // Prepare environment to be used as loop header. |
585 void PrepareForLoop(BitVector* assigned, bool is_osr = false); | 586 void PrepareForLoop(BitVector* assigned, bool is_osr = false); |
586 }; | 587 }; |
587 | 588 |
588 } // namespace compiler | 589 } // namespace compiler |
589 } // namespace internal | 590 } // namespace internal |
590 } // namespace v8 | 591 } // namespace v8 |
591 | 592 |
592 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 593 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |