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

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

Issue 18223010: Optimize functions containing try-catch on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | « runtime/vm/assembler_arm.h ('k') | runtime/vm/flow_graph_compiler_arm.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/flow_graph.h" 5 #include "vm/flow_graph.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/flow_graph_builder.h" 8 #include "vm/flow_graph_builder.h"
9 #include "vm/intermediate_language.h" 9 #include "vm/intermediate_language.h"
10 #include "vm/longjump.h" 10 #include "vm/longjump.h"
11 #include "vm/growable_array.h" 11 #include "vm/growable_array.h"
12 12
13 namespace dart { 13 namespace dart {
14 14
15 DECLARE_FLAG(bool, trace_optimization); 15 DECLARE_FLAG(bool, trace_optimization);
16 DECLARE_FLAG(bool, verify_compiler); 16 DECLARE_FLAG(bool, verify_compiler);
17 17
18 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) 18 #if defined(TARGET_ARCH_MIPS)
19 DEFINE_FLAG(bool, optimize_try_catch, false, "Optimization of try-catch"); 19 DEFINE_FLAG(bool, optimize_try_catch, false, "Optimization of try-catch");
20 #else 20 #else
21 DEFINE_FLAG(bool, optimize_try_catch, true, "Optimization of try-catch"); 21 DEFINE_FLAG(bool, optimize_try_catch, true, "Optimization of try-catch");
22 #endif 22 #endif
23 23
24 FlowGraph::FlowGraph(const FlowGraphBuilder& builder, 24 FlowGraph::FlowGraph(const FlowGraphBuilder& builder,
25 GraphEntryInstr* graph_entry, 25 GraphEntryInstr* graph_entry,
26 intptr_t max_block_id) 26 intptr_t max_block_id)
27 : parent_(), 27 : parent_(),
28 current_ssa_temp_index_(0), 28 current_ssa_temp_index_(0),
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
1138 } 1138 }
1139 1139
1140 1140
1141 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, 1141 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from,
1142 BlockEntryInstr* to) const { 1142 BlockEntryInstr* to) const {
1143 return available_at_[to->postorder_number()]->Contains( 1143 return available_at_[to->postorder_number()]->Contains(
1144 from->postorder_number()); 1144 from->postorder_number());
1145 } 1145 }
1146 1146
1147 } // namespace dart 1147 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.h ('k') | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698