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* phase_zone() const { return info_->phase_zone(); } | 103 Zone* zone() { return &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_; | 109 Zone zone_; |
110 ZoneScope phase_zone_scope_; | |
111 | 110 |
112 // A map of block IDs to their side effects. | 111 // A map of block IDs to their side effects. |
113 ZoneList<GVNFlagSet> block_side_effects_; | 112 ZoneList<GVNFlagSet> block_side_effects_; |
114 | 113 |
115 // A map of loop header block IDs to their loop's side effects. | 114 // A map of loop header block IDs to their loop's side effects. |
116 ZoneList<GVNFlagSet> loop_side_effects_; | 115 ZoneList<GVNFlagSet> loop_side_effects_; |
117 | 116 |
118 // Used when collecting side effects on paths from dominator to | 117 // Used when collecting side effects on paths from dominator to |
119 // dominated. | 118 // dominated. |
120 SparseSet visited_on_paths_; | 119 SparseSet visited_on_paths_; |
121 }; | 120 }; |
122 | 121 |
123 | 122 |
124 } } // namespace v8::internal | 123 } } // namespace v8::internal |
125 | 124 |
126 #endif // V8_HYDROGEN_GVN_H_ | 125 #endif // V8_HYDROGEN_GVN_H_ |
OLD | NEW |