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

Side by Side Diff: runtime/vm/flow_graph_compiler.cc

Issue 1413233004: nt # Enter a description of the change. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: c Created 5 years, 2 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 | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/megamorphic_cache_table.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 (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX.
6 6
7 #include "vm/flow_graph_compiler.h" 7 #include "vm/flow_graph_compiler.h"
8 8
9 #include "vm/bit_vector.h" 9 #include "vm/bit_vector.h"
10 #include "vm/cha.h" 10 #include "vm/cha.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 157
158 158
159 FlowGraphCompiler::FlowGraphCompiler( 159 FlowGraphCompiler::FlowGraphCompiler(
160 Assembler* assembler, 160 Assembler* assembler,
161 FlowGraph* flow_graph, 161 FlowGraph* flow_graph,
162 const ParsedFunction& parsed_function, 162 const ParsedFunction& parsed_function,
163 bool is_optimizing, 163 bool is_optimizing,
164 const GrowableArray<const Function*>& inline_id_to_function, 164 const GrowableArray<const Function*>& inline_id_to_function,
165 const GrowableArray<intptr_t>& caller_inline_id) 165 const GrowableArray<intptr_t>& caller_inline_id)
166 : thread_(Thread::Current()), 166 : thread_(Thread::Current()),
167 isolate_(Isolate::Current()),
168 zone_(Thread::Current()->zone()), 167 zone_(Thread::Current()->zone()),
169 assembler_(assembler), 168 assembler_(assembler),
170 parsed_function_(parsed_function), 169 parsed_function_(parsed_function),
171 flow_graph_(*flow_graph), 170 flow_graph_(*flow_graph),
172 block_order_(*flow_graph->CodegenBlockOrder(is_optimizing)), 171 block_order_(*flow_graph->CodegenBlockOrder(is_optimizing)),
173 current_block_(NULL), 172 current_block_(NULL),
174 exception_handlers_list_(NULL), 173 exception_handlers_list_(NULL),
175 pc_descriptors_list_(NULL), 174 pc_descriptors_list_(NULL),
176 stackmap_table_builder_(NULL), 175 stackmap_table_builder_(NULL),
177 block_info_(block_order_.length()), 176 block_info_(block_order_.length()),
178 deopt_infos_(), 177 deopt_infos_(),
179 static_calls_target_table_(), 178 static_calls_target_table_(),
180 is_optimizing_(is_optimizing), 179 is_optimizing_(is_optimizing),
181 may_reoptimize_(false), 180 may_reoptimize_(false),
182 intrinsic_mode_(false), 181 intrinsic_mode_(false),
183 double_class_(Class::ZoneHandle( 182 double_class_(Class::ZoneHandle(
184 isolate_->object_store()->double_class())), 183 isolate()->object_store()->double_class())),
185 mint_class_(Class::ZoneHandle( 184 mint_class_(Class::ZoneHandle(
186 isolate_->object_store()->mint_class())), 185 isolate()->object_store()->mint_class())),
187 float32x4_class_(Class::ZoneHandle( 186 float32x4_class_(Class::ZoneHandle(
188 isolate_->object_store()->float32x4_class())), 187 isolate()->object_store()->float32x4_class())),
189 float64x2_class_(Class::ZoneHandle( 188 float64x2_class_(Class::ZoneHandle(
190 isolate_->object_store()->float64x2_class())), 189 isolate()->object_store()->float64x2_class())),
191 int32x4_class_(Class::ZoneHandle( 190 int32x4_class_(Class::ZoneHandle(
192 isolate_->object_store()->int32x4_class())), 191 isolate()->object_store()->int32x4_class())),
193 list_class_(Class::ZoneHandle( 192 list_class_(Class::ZoneHandle(
194 Library::Handle(Library::CoreLibrary()). 193 Library::Handle(Library::CoreLibrary()).
195 LookupClass(Symbols::List()))), 194 LookupClass(Symbols::List()))),
196 parallel_move_resolver_(this), 195 parallel_move_resolver_(this),
197 pending_deoptimization_env_(NULL), 196 pending_deoptimization_env_(NULL),
198 lazy_deopt_pc_offset_(Code::kInvalidPc), 197 lazy_deopt_pc_offset_(Code::kInvalidPc),
199 deopt_id_to_ic_data_(NULL), 198 deopt_id_to_ic_data_(NULL),
200 edge_counters_array_(Array::ZoneHandle()), 199 edge_counters_array_(Array::ZoneHandle()),
201 inlined_code_intervals_(Array::ZoneHandle(Object::empty_array().raw())), 200 inlined_code_intervals_(Array::ZoneHandle(Object::empty_array().raw())),
202 inline_id_to_function_(inline_id_to_function), 201 inline_id_to_function_(inline_id_to_function),
(...skipping 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
1816 1815
1817 1816
1818 void FlowGraphCompiler::FrameStateClear() { 1817 void FlowGraphCompiler::FrameStateClear() {
1819 ASSERT(!is_optimizing()); 1818 ASSERT(!is_optimizing());
1820 frame_state_.TruncateTo(0); 1819 frame_state_.TruncateTo(0);
1821 } 1820 }
1822 #endif 1821 #endif
1823 1822
1824 1823
1825 } // namespace dart 1824 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/megamorphic_cache_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698