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

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

Issue 23766021: Fix a bug in block reordering/block compaction. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | runtime/vm/flow_graph_compiler.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/compiler.h" 5 #include "vm/compiler.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 8
9 #include "vm/ast_printer.h" 9 #include "vm/ast_printer.h"
10 #include "vm/block_scheduler.h" 10 #include "vm/block_scheduler.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 "Do loop invariant code motion."); 46 "Do loop invariant code motion.");
47 DEFINE_FLAG(bool, propagate_types, true, "Do static type propagation."); 47 DEFINE_FLAG(bool, propagate_types, true, "Do static type propagation.");
48 DEFINE_FLAG(bool, allocation_sinking, true, 48 DEFINE_FLAG(bool, allocation_sinking, true,
49 "Attempt to sink temporary allocations to side exits"); 49 "Attempt to sink temporary allocations to side exits");
50 DEFINE_FLAG(int, deoptimization_counter_threshold, 16, 50 DEFINE_FLAG(int, deoptimization_counter_threshold, 16,
51 "How many times we allow deoptimization before we disallow optimization."); 51 "How many times we allow deoptimization before we disallow optimization.");
52 DEFINE_FLAG(int, deoptimization_counter_licm_threshold, 8, 52 DEFINE_FLAG(int, deoptimization_counter_licm_threshold, 8,
53 "How many times we allow deoptimization before we disable LICM."); 53 "How many times we allow deoptimization before we disable LICM.");
54 DEFINE_FLAG(bool, use_inlining, true, "Enable call-site inlining"); 54 DEFINE_FLAG(bool, use_inlining, true, "Enable call-site inlining");
55 DEFINE_FLAG(bool, range_analysis, true, "Enable range analysis"); 55 DEFINE_FLAG(bool, range_analysis, true, "Enable range analysis");
56 DEFINE_FLAG(bool, reorder_basic_blocks, false, 56 DEFINE_FLAG(bool, reorder_basic_blocks, true, "Enable basic-block reordering.");
57 "Enable basic-block reordering.");
58 DEFINE_FLAG(bool, verify_compiler, false, 57 DEFINE_FLAG(bool, verify_compiler, false,
59 "Enable compiler verification assertions"); 58 "Enable compiler verification assertions");
60 DECLARE_FLAG(bool, print_flow_graph); 59 DECLARE_FLAG(bool, print_flow_graph);
61 DECLARE_FLAG(bool, print_flow_graph_optimized); 60 DECLARE_FLAG(bool, print_flow_graph_optimized);
62 DECLARE_FLAG(bool, trace_failed_optimization_attempts); 61 DECLARE_FLAG(bool, trace_failed_optimization_attempts);
63 62
64 // Compile a function. Should call only if the function has not been compiled. 63 // Compile a function. Should call only if the function has not been compiled.
65 // Arg0: function object. 64 // Arg0: function object.
66 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) { 65 DEFINE_RUNTIME_ENTRY(CompileFunction, 1) {
67 const Function& function = Function::CheckedHandle(arguments.ArgAt(0)); 66 const Function& function = Function::CheckedHandle(arguments.ArgAt(0));
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 Object::Handle(isolate->object_store()->sticky_error()); 923 Object::Handle(isolate->object_store()->sticky_error());
925 isolate->object_store()->clear_sticky_error(); 924 isolate->object_store()->clear_sticky_error();
926 isolate->set_long_jump_base(base); 925 isolate->set_long_jump_base(base);
927 return result.raw(); 926 return result.raw();
928 } 927 }
929 UNREACHABLE(); 928 UNREACHABLE();
930 return Object::null(); 929 return Object::null();
931 } 930 }
932 931
933 } // namespace dart 932 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698