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

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

Issue 15979010: Fix two bugs in the Dart VM's super-noSuchMethod invocation. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_builder.h » ('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_ARM) || 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),
29 max_block_id_(max_block_id), 29 max_block_id_(max_block_id),
30 parsed_function_(builder.parsed_function()), 30 parsed_function_(*builder.parsed_function()),
31 num_copied_params_(builder.num_copied_params()), 31 num_copied_params_(builder.num_copied_params()),
32 num_non_copied_params_(builder.num_non_copied_params()), 32 num_non_copied_params_(builder.num_non_copied_params()),
33 num_stack_locals_(builder.num_stack_locals()), 33 num_stack_locals_(builder.num_stack_locals()),
34 graph_entry_(graph_entry), 34 graph_entry_(graph_entry),
35 preorder_(), 35 preorder_(),
36 postorder_(), 36 postorder_(),
37 reverse_postorder_(), 37 reverse_postorder_(),
38 block_effects_(NULL), 38 block_effects_(NULL),
39 licm_allowed_(true), 39 licm_allowed_(true),
40 loop_headers_(NULL), 40 loop_headers_(NULL),
(...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 } 1135 }
1136 1136
1137 1137
1138 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, 1138 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from,
1139 BlockEntryInstr* to) const { 1139 BlockEntryInstr* to) const {
1140 return available_at_[to->postorder_number()]->Contains( 1140 return available_at_[to->postorder_number()]->Contains(
1141 from->postorder_number()); 1141 from->postorder_number());
1142 } 1142 }
1143 1143
1144 } // namespace dart 1144 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/compiler.cc ('k') | runtime/vm/flow_graph_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698