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

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

Issue 2132803002: Megamorphic code cleanup. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
« no previous file with comments | « no previous file | 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) 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 25 matching lines...) Expand all
36 "Inline hashcode for Smi and one-byte strings in case of megamorphic call"); 36 "Inline hashcode for Smi and one-byte strings in case of megamorphic call");
37 DEFINE_FLAG(int, inline_smi_string_hashcode_ratio, 50, 37 DEFINE_FLAG(int, inline_smi_string_hashcode_ratio, 50,
38 "Minimal hotness (0..100) of one-byte-string before inlining its hashcode"); 38 "Minimal hotness (0..100) of one-byte-string before inlining its hashcode");
39 DEFINE_FLAG(int, min_optimization_counter_threshold, 5000, 39 DEFINE_FLAG(int, min_optimization_counter_threshold, 5000,
40 "The minimum invocation count for a function."); 40 "The minimum invocation count for a function.");
41 DEFINE_FLAG(int, optimization_counter_scale, 2000, 41 DEFINE_FLAG(int, optimization_counter_scale, 2000,
42 "The scale of invocation count, by size of the function."); 42 "The scale of invocation count, by size of the function.");
43 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment."); 43 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment.");
44 DEFINE_FLAG(bool, trace_inlining_intervals, false, 44 DEFINE_FLAG(bool, trace_inlining_intervals, false,
45 "Inlining interval diagnostics"); 45 "Inlining interval diagnostics");
46 DEFINE_FLAG(bool, use_megamorphic_stub, true, "Out of line megamorphic lookup");
47 46
48 DECLARE_FLAG(bool, code_comments); 47 DECLARE_FLAG(bool, code_comments);
49 DECLARE_FLAG(charp, deoptimize_filter); 48 DECLARE_FLAG(charp, deoptimize_filter);
50 DECLARE_FLAG(bool, intrinsify); 49 DECLARE_FLAG(bool, intrinsify);
51 DECLARE_FLAG(bool, propagate_ic_data); 50 DECLARE_FLAG(bool, propagate_ic_data);
52 DECLARE_FLAG(int, regexp_optimization_counter_threshold); 51 DECLARE_FLAG(int, regexp_optimization_counter_threshold);
53 DECLARE_FLAG(int, reoptimization_counter_threshold); 52 DECLARE_FLAG(int, reoptimization_counter_threshold);
54 DECLARE_FLAG(int, stacktrace_every); 53 DECLARE_FLAG(int, stacktrace_every);
55 DECLARE_FLAG(charp, stacktrace_filter); 54 DECLARE_FLAG(charp, stacktrace_filter);
56 DECLARE_FLAG(bool, trace_compiler); 55 DECLARE_FLAG(bool, trace_compiler);
(...skipping 1947 matching lines...) Expand 10 before | Expand all | Expand 10 after
2004 2003
2005 2004
2006 void FlowGraphCompiler::FrameStateClear() { 2005 void FlowGraphCompiler::FrameStateClear() {
2007 ASSERT(!is_optimizing()); 2006 ASSERT(!is_optimizing());
2008 frame_state_.TruncateTo(0); 2007 frame_state_.TruncateTo(0);
2009 } 2008 }
2010 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) 2009 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC)
2011 2010
2012 2011
2013 } // namespace dart 2012 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698