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

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

Issue 119103002: Update double unboxing heuristic. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years 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 | no next file » | 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/flow_graph_optimizer.h" 5 #include "vm/flow_graph_optimizer.h"
6 6
7 #include "vm/bit_vector.h" 7 #include "vm/bit_vector.h"
8 #include "vm/cha.h" 8 #include "vm/cha.h"
9 #include "vm/dart_entry.h" 9 #include "vm/dart_entry.h"
10 #include "vm/flow_graph_builder.h" 10 #include "vm/flow_graph_builder.h"
(...skipping 23 matching lines...) Expand all
34 "Print constant propagation and useless code elimination."); 34 "Print constant propagation and useless code elimination.");
35 DEFINE_FLAG(bool, trace_optimization, false, "Print optimization details."); 35 DEFINE_FLAG(bool, trace_optimization, false, "Print optimization details.");
36 DEFINE_FLAG(bool, trace_range_analysis, false, "Trace range analysis progress"); 36 DEFINE_FLAG(bool, trace_range_analysis, false, "Trace range analysis progress");
37 DEFINE_FLAG(bool, truncating_left_shift, true, 37 DEFINE_FLAG(bool, truncating_left_shift, true,
38 "Optimize left shift to truncate if possible"); 38 "Optimize left shift to truncate if possible");
39 DEFINE_FLAG(bool, use_cha, true, "Use class hierarchy analysis."); 39 DEFINE_FLAG(bool, use_cha, true, "Use class hierarchy analysis.");
40 DEFINE_FLAG(bool, trace_load_optimization, false, 40 DEFINE_FLAG(bool, trace_load_optimization, false,
41 "Print live sets for load optimization pass."); 41 "Print live sets for load optimization pass.");
42 DEFINE_FLAG(bool, enable_simd_inline, true, 42 DEFINE_FLAG(bool, enable_simd_inline, true,
43 "Enable inlining of SIMD related method calls."); 43 "Enable inlining of SIMD related method calls.");
44 DEFINE_FLAG(int, getter_setter_ratio, 10, 44 DEFINE_FLAG(int, getter_setter_ratio, 13,
45 "Ratio of getter/setter usage used for double field unboxing heuristics"); 45 "Ratio of getter/setter usage used for double field unboxing heuristics");
46 DECLARE_FLAG(bool, eliminate_type_checks); 46 DECLARE_FLAG(bool, eliminate_type_checks);
47 DECLARE_FLAG(bool, enable_type_checks); 47 DECLARE_FLAG(bool, enable_type_checks);
48 DECLARE_FLAG(bool, trace_type_check_elimination); 48 DECLARE_FLAG(bool, trace_type_check_elimination);
49 49
50 50
51 static bool ShouldInlineSimd() { 51 static bool ShouldInlineSimd() {
52 #if defined(TARGET_ARCH_MIPS) 52 #if defined(TARGET_ARCH_MIPS)
53 return false; 53 return false;
54 #elif defined(TARGET_ARCH_ARM) 54 #elif defined(TARGET_ARCH_ARM)
(...skipping 8091 matching lines...) Expand 10 before | Expand all | Expand 10 after
8146 } 8146 }
8147 8147
8148 // Insert materializations at environment uses. 8148 // Insert materializations at environment uses.
8149 for (intptr_t i = 0; i < exits.length(); i++) { 8149 for (intptr_t i = 0; i < exits.length(); i++) {
8150 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields); 8150 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields);
8151 } 8151 }
8152 } 8152 }
8153 8153
8154 8154
8155 } // namespace dart 8155 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698