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

Side by Side Diff: src/compiler/code-generator.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 | « no previous file | src/compiler/code-generator.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_CODE_GENERATOR_H_ 5 #ifndef V8_COMPILER_CODE_GENERATOR_H_
6 #define V8_COMPILER_CODE_GENERATOR_H_ 6 #define V8_COMPILER_CODE_GENERATOR_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 Safepoint::Id safepoint_id_; 115 Safepoint::Id safepoint_id_;
116 }; 116 };
117 117
118 struct DeoptimizationState : ZoneObject { 118 struct DeoptimizationState : ZoneObject {
119 int translation_id_; 119 int translation_id_;
120 120
121 explicit DeoptimizationState(int translation_id) 121 explicit DeoptimizationState(int translation_id)
122 : translation_id_(translation_id) {} 122 : translation_id_(translation_id) {}
123 }; 123 };
124 124
125 typedef std::deque<LazyDeoptimizationEntry,
126 zone_allocator<LazyDeoptimizationEntry> >
127 LazyDeoptimizationEntries;
128 typedef std::deque<DeoptimizationState*,
129 zone_allocator<DeoptimizationState*> >
130 DeoptimizationStates;
131 typedef std::deque<Handle<Object>, zone_allocator<Handle<Object> > > Literals;
132
133 InstructionSequence* code_; 125 InstructionSequence* code_;
134 BasicBlock* current_block_; 126 BasicBlock* current_block_;
135 SourcePosition current_source_position_; 127 SourcePosition current_source_position_;
136 MacroAssembler masm_; 128 MacroAssembler masm_;
137 GapResolver resolver_; 129 GapResolver resolver_;
138 SafepointTableBuilder safepoints_; 130 SafepointTableBuilder safepoints_;
139 LazyDeoptimizationEntries lazy_deoptimization_entries_; 131 ZoneDeque<LazyDeoptimizationEntry> lazy_deoptimization_entries_;
140 DeoptimizationStates deoptimization_states_; 132 ZoneDeque<DeoptimizationState*> deoptimization_states_;
141 Literals deoptimization_literals_; 133 ZoneDeque<Handle<Object> > deoptimization_literals_;
142 TranslationBuffer translations_; 134 TranslationBuffer translations_;
143 }; 135 };
144 136
145 } // namespace compiler 137 } // namespace compiler
146 } // namespace internal 138 } // namespace internal
147 } // namespace v8 139 } // namespace v8
148 140
149 #endif // V8_COMPILER_CODE_GENERATOR_H 141 #endif // V8_COMPILER_CODE_GENERATOR_H
OLDNEW
« no previous file with comments | « no previous file | src/compiler/code-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698