| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_HYDROGEN_H_ | 5 #ifndef V8_HYDROGEN_H_ |
| 6 #define V8_HYDROGEN_H_ | 6 #define V8_HYDROGEN_H_ |
| 7 | 7 |
| 8 #include "src/v8.h" | 8 #include "src/v8.h" |
| 9 | 9 |
| 10 #include "src/accessors.h" | 10 #include "src/accessors.h" |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 // For blocks marked as inline return target: the block with HEnterInlined. | 208 // For blocks marked as inline return target: the block with HEnterInlined. |
| 209 HBasicBlock* inlined_entry_block_; | 209 HBasicBlock* inlined_entry_block_; |
| 210 bool is_inline_return_target_ : 1; | 210 bool is_inline_return_target_ : 1; |
| 211 bool is_reachable_ : 1; | 211 bool is_reachable_ : 1; |
| 212 bool dominates_loop_successors_ : 1; | 212 bool dominates_loop_successors_ : 1; |
| 213 bool is_osr_entry_ : 1; | 213 bool is_osr_entry_ : 1; |
| 214 bool is_ordered_ : 1; | 214 bool is_ordered_ : 1; |
| 215 }; | 215 }; |
| 216 | 216 |
| 217 | 217 |
| 218 OStream& operator<<(OStream& os, const HBasicBlock& b); | 218 std::ostream& operator<<(std::ostream& os, const HBasicBlock& b); |
| 219 | 219 |
| 220 | 220 |
| 221 class HPredecessorIterator FINAL BASE_EMBEDDED { | 221 class HPredecessorIterator FINAL BASE_EMBEDDED { |
| 222 public: | 222 public: |
| 223 explicit HPredecessorIterator(HBasicBlock* block) | 223 explicit HPredecessorIterator(HBasicBlock* block) |
| 224 : predecessor_list_(block->predecessors()), current_(0) { } | 224 : predecessor_list_(block->predecessors()), current_(0) { } |
| 225 | 225 |
| 226 bool Done() { return current_ >= predecessor_list_->length(); } | 226 bool Done() { return current_ >= predecessor_list_->length(); } |
| 227 HBasicBlock* Current() { return predecessor_list_->at(current_); } | 227 HBasicBlock* Current() { return predecessor_list_->at(current_); } |
| 228 void Advance() { current_++; } | 228 void Advance() { current_++; } |
| (...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 int local_count_; | 736 int local_count_; |
| 737 HEnvironment* outer_; | 737 HEnvironment* outer_; |
| 738 HEnterInlined* entry_; | 738 HEnterInlined* entry_; |
| 739 int pop_count_; | 739 int pop_count_; |
| 740 int push_count_; | 740 int push_count_; |
| 741 BailoutId ast_id_; | 741 BailoutId ast_id_; |
| 742 Zone* zone_; | 742 Zone* zone_; |
| 743 }; | 743 }; |
| 744 | 744 |
| 745 | 745 |
| 746 OStream& operator<<(OStream& os, const HEnvironment& env); | 746 std::ostream& operator<<(std::ostream& os, const HEnvironment& env); |
| 747 | 747 |
| 748 | 748 |
| 749 class HOptimizedGraphBuilder; | 749 class HOptimizedGraphBuilder; |
| 750 | 750 |
| 751 enum ArgumentsAllowedFlag { | 751 enum ArgumentsAllowedFlag { |
| 752 ARGUMENTS_NOT_ALLOWED, | 752 ARGUMENTS_NOT_ALLOWED, |
| 753 ARGUMENTS_ALLOWED | 753 ARGUMENTS_ALLOWED |
| 754 }; | 754 }; |
| 755 | 755 |
| 756 | 756 |
| (...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2909 } | 2909 } |
| 2910 | 2910 |
| 2911 private: | 2911 private: |
| 2912 HGraphBuilder* builder_; | 2912 HGraphBuilder* builder_; |
| 2913 }; | 2913 }; |
| 2914 | 2914 |
| 2915 | 2915 |
| 2916 } } // namespace v8::internal | 2916 } } // namespace v8::internal |
| 2917 | 2917 |
| 2918 #endif // V8_HYDROGEN_H_ | 2918 #endif // V8_HYDROGEN_H_ |
| OLD | NEW |