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

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

Issue 17827005: Get rid of ZoneScope completely. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Suggestions from danno 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 | Annotate | Revision Log
« no previous file with comments | « src/hydrogen-environment-liveness.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* 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_
OLDNEW
« no previous file with comments | « src/hydrogen-environment-liveness.cc ('k') | src/hydrogen-gvn.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698