OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 94 matching lines...) Loading... |
105 void DetachLoopInformation(); | 105 void DetachLoopInformation(); |
106 bool IsLoopHeader() const { return loop_information() != NULL; } | 106 bool IsLoopHeader() const { return loop_information() != NULL; } |
107 bool IsStartBlock() const { return block_id() == 0; } | 107 bool IsStartBlock() const { return block_id() == 0; } |
108 void PostProcessLoopHeader(IterationStatement* stmt); | 108 void PostProcessLoopHeader(IterationStatement* stmt); |
109 | 109 |
110 bool IsFinished() const { return end_ != NULL; } | 110 bool IsFinished() const { return end_ != NULL; } |
111 void AddPhi(HPhi* phi); | 111 void AddPhi(HPhi* phi); |
112 void RemovePhi(HPhi* phi); | 112 void RemovePhi(HPhi* phi); |
113 void AddInstruction(HInstruction* instr, int position); | 113 void AddInstruction(HInstruction* instr, int position); |
114 bool Dominates(HBasicBlock* other) const; | 114 bool Dominates(HBasicBlock* other) const; |
| 115 bool EqualToOrDominates(HBasicBlock* other) const; |
115 int LoopNestingDepth() const; | 116 int LoopNestingDepth() const; |
116 | 117 |
117 void SetInitialEnvironment(HEnvironment* env); | 118 void SetInitialEnvironment(HEnvironment* env); |
118 void ClearEnvironment() { | 119 void ClearEnvironment() { |
119 ASSERT(IsFinished()); | 120 ASSERT(IsFinished()); |
120 ASSERT(end()->SuccessorCount() == 0); | 121 ASSERT(end()->SuccessorCount() == 0); |
121 last_environment_ = NULL; | 122 last_environment_ = NULL; |
122 } | 123 } |
123 bool HasEnvironment() const { return last_environment_ != NULL; } | 124 bool HasEnvironment() const { return last_environment_ != NULL; } |
124 void UpdateEnvironment(HEnvironment* env); | 125 void UpdateEnvironment(HEnvironment* env); |
(...skipping 2571 matching lines...) Loading... |
2696 } | 2697 } |
2697 | 2698 |
2698 private: | 2699 private: |
2699 HGraphBuilder* builder_; | 2700 HGraphBuilder* builder_; |
2700 }; | 2701 }; |
2701 | 2702 |
2702 | 2703 |
2703 } } // namespace v8::internal | 2704 } } // namespace v8::internal |
2704 | 2705 |
2705 #endif // V8_HYDROGEN_H_ | 2706 #endif // V8_HYDROGEN_H_ |
OLD | NEW |