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

Side by Side Diff: src/compiler/instruction-selector.h

Issue 505133003: Introduce subclass wrappers for STL containers that make them a lot easier (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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/compiler/instruction.h ('k') | src/compiler/instruction-selector.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 190
191 Graph* graph() const { return sequence()->graph(); } 191 Graph* graph() const { return sequence()->graph(); }
192 Linkage* linkage() const { return sequence()->linkage(); } 192 Linkage* linkage() const { return sequence()->linkage(); }
193 Schedule* schedule() const { return sequence()->schedule(); } 193 Schedule* schedule() const { return sequence()->schedule(); }
194 InstructionSequence* sequence() const { return sequence_; } 194 InstructionSequence* sequence() const { return sequence_; }
195 Zone* instruction_zone() const { return sequence()->zone(); } 195 Zone* instruction_zone() const { return sequence()->zone(); }
196 Zone* zone() { return &zone_; } 196 Zone* zone() { return &zone_; }
197 197
198 // =========================================================================== 198 // ===========================================================================
199 199
200 typedef zone_allocator<Instruction*> InstructionPtrZoneAllocator;
201 typedef std::deque<Instruction*, InstructionPtrZoneAllocator> Instructions;
202
203 Zone zone_; 200 Zone zone_;
204 InstructionSequence* sequence_; 201 InstructionSequence* sequence_;
205 SourcePositionTable* source_positions_; 202 SourcePositionTable* source_positions_;
206 Features features_; 203 Features features_;
207 BasicBlock* current_block_; 204 BasicBlock* current_block_;
208 Instructions instructions_; 205 ZoneDeque<Instruction*> instructions_;
209 BoolVector defined_; 206 BoolVector defined_;
210 BoolVector used_; 207 BoolVector used_;
211 }; 208 };
212 209
213 } // namespace compiler 210 } // namespace compiler
214 } // namespace internal 211 } // namespace internal
215 } // namespace v8 212 } // namespace v8
216 213
217 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 214 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698