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/compiler-source-position-table.h" | 9 #include "src/compiler/compiler-source-position-table.h" |
10 #include "src/compiler/js-graph.h" | 10 #include "src/compiler/js-graph.h" |
(...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
595 Node* control_dependency_; | 595 Node* control_dependency_; |
596 Node* effect_dependency_; | 596 Node* effect_dependency_; |
597 Node* parameters_node_; | 597 Node* parameters_node_; |
598 Node* locals_node_; | 598 Node* locals_node_; |
599 Node* stack_node_; | 599 Node* stack_node_; |
600 | 600 |
601 explicit Environment(Environment* copy, | 601 explicit Environment(Environment* copy, |
602 LivenessAnalyzerBlock* liveness_block); | 602 LivenessAnalyzerBlock* liveness_block); |
603 Environment* CopyAndShareLiveness(); | 603 Environment* CopyAndShareLiveness(); |
604 void UpdateStateValues(Node** state_values, int offset, int count); | 604 void UpdateStateValues(Node** state_values, int offset, int count); |
605 void UpdateStateValuesWithCache(Node** state_values, int offset, int count); | |
606 Zone* zone() const { return builder_->local_zone(); } | 605 Zone* zone() const { return builder_->local_zone(); } |
607 Graph* graph() const { return builder_->graph(); } | 606 Graph* graph() const { return builder_->graph(); } |
608 AstGraphBuilder* builder() const { return builder_; } | 607 AstGraphBuilder* builder() const { return builder_; } |
609 CommonOperatorBuilder* common() { return builder_->common(); } | 608 CommonOperatorBuilder* common() { return builder_->common(); } |
610 NodeVector* values() { return &values_; } | 609 NodeVector* values() { return &values_; } |
611 NodeVector* contexts() { return &contexts_; } | 610 NodeVector* contexts() { return &contexts_; } |
612 LivenessAnalyzerBlock* liveness_block() { return liveness_block_; } | 611 LivenessAnalyzerBlock* liveness_block() { return liveness_block_; } |
613 bool IsLivenessAnalysisEnabled(); | 612 bool IsLivenessAnalysisEnabled(); |
614 bool IsLivenessBlockConsistent(); | 613 bool IsLivenessBlockConsistent(); |
615 | 614 |
(...skipping 29 matching lines...) Expand all Loading... |
645 private: | 644 private: |
646 SourcePositionTable* const source_positions_; | 645 SourcePositionTable* const source_positions_; |
647 SourcePosition const start_position_; | 646 SourcePosition const start_position_; |
648 }; | 647 }; |
649 | 648 |
650 } // namespace compiler | 649 } // namespace compiler |
651 } // namespace internal | 650 } // namespace internal |
652 } // namespace v8 | 651 } // namespace v8 |
653 | 652 |
654 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ | 653 #endif // V8_COMPILER_AST_GRAPH_BUILDER_H_ |
OLD | NEW |