| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |