Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(671)

Side by Side Diff: src/hydrogen-gvn.h

Issue 17573003: Add phase zone to CompilationInfo and use it in GVN pass. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-gvn.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « src/hydrogen.cc ('k') | src/hydrogen-gvn.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698