OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void ProcessLoopBlock(HBasicBlock* block, | 93 void ProcessLoopBlock(HBasicBlock* block, |
94 HBasicBlock* before_loop, | 94 HBasicBlock* before_loop, |
95 GVNFlagSet loop_kills, | 95 GVNFlagSet loop_kills, |
96 GVNFlagSet* accumulated_first_time_depends, | 96 GVNFlagSet* accumulated_first_time_depends, |
97 GVNFlagSet* accumulated_first_time_changes); | 97 GVNFlagSet* accumulated_first_time_changes); |
98 bool AllowCodeMotion(); | 98 bool AllowCodeMotion(); |
99 bool ShouldMove(HInstruction* instr, HBasicBlock* loop_header); | 99 bool ShouldMove(HInstruction* instr, HBasicBlock* loop_header); |
100 | 100 |
101 HGraph* graph() { return graph_; } | 101 HGraph* graph() { return graph_; } |
102 CompilationInfo* info() { return info_; } | 102 CompilationInfo* info() { return info_; } |
103 Zone* zone() const { return graph_->zone(); } | 103 Zone* phase_zone() const { return info_->phase_zone(); } |
104 | 104 |
105 HGraph* graph_; | 105 HGraph* graph_; |
106 CompilationInfo* info_; | 106 CompilationInfo* info_; |
107 bool removed_side_effects_; | 107 bool removed_side_effects_; |
108 | 108 |
| 109 Zone* phase_zone_; |
| 110 ZoneScope phase_zone_scope_; |
| 111 |
109 // A map of block IDs to their side effects. | 112 // A map of block IDs to their side effects. |
110 ZoneList<GVNFlagSet> block_side_effects_; | 113 ZoneList<GVNFlagSet> block_side_effects_; |
111 | 114 |
112 // A map of loop header block IDs to their loop's side effects. | 115 // A map of loop header block IDs to their loop's side effects. |
113 ZoneList<GVNFlagSet> loop_side_effects_; | 116 ZoneList<GVNFlagSet> loop_side_effects_; |
114 | 117 |
115 // Used when collecting side effects on paths from dominator to | 118 // Used when collecting side effects on paths from dominator to |
116 // dominated. | 119 // dominated. |
117 SparseSet visited_on_paths_; | 120 SparseSet visited_on_paths_; |
118 }; | 121 }; |
119 | 122 |
120 | 123 |
121 } } // namespace v8::internal | 124 } } // namespace v8::internal |
122 | 125 |
123 #endif // V8_HYDROGEN_GVN_H_ | 126 #endif // V8_HYDROGEN_GVN_H_ |
OLD | NEW |