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

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

Issue 1125623003: Move megamorphic lookup code to stub instead of inlining. Preformance loss < 5%, instruction size r… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 7 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
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 20 matching lines...) Expand all
31 "Instance call always as megamorphic."); 31 "Instance call always as megamorphic.");
32 DEFINE_FLAG(bool, trace_inlining_intervals, false, 32 DEFINE_FLAG(bool, trace_inlining_intervals, false,
33 "Inlining interval diagnostics"); 33 "Inlining interval diagnostics");
34 DEFINE_FLAG(bool, enable_simd_inline, true, 34 DEFINE_FLAG(bool, enable_simd_inline, true,
35 "Enable inlining of SIMD related method calls."); 35 "Enable inlining of SIMD related method calls.");
36 DEFINE_FLAG(int, min_optimization_counter_threshold, 5000, 36 DEFINE_FLAG(int, min_optimization_counter_threshold, 5000,
37 "The minimum invocation count for a function."); 37 "The minimum invocation count for a function.");
38 DEFINE_FLAG(int, optimization_counter_scale, 2000, 38 DEFINE_FLAG(int, optimization_counter_scale, 2000,
39 "The scale of invocation count, by size of the function."); 39 "The scale of invocation count, by size of the function.");
40 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment."); 40 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment.");
41 DEFINE_FLAG(bool, use_megamorphic_stub, true, "Out of line megamorphic lookup");
41 42
42 DECLARE_FLAG(bool, code_comments); 43 DECLARE_FLAG(bool, code_comments);
43 DECLARE_FLAG(int, deoptimize_every); 44 DECLARE_FLAG(int, deoptimize_every);
44 DECLARE_FLAG(charp, deoptimize_filter); 45 DECLARE_FLAG(charp, deoptimize_filter);
45 DECLARE_FLAG(bool, disassemble); 46 DECLARE_FLAG(bool, disassemble);
46 DECLARE_FLAG(bool, disassemble_optimized); 47 DECLARE_FLAG(bool, disassemble_optimized);
47 DECLARE_FLAG(bool, emit_edge_counters); 48 DECLARE_FLAG(bool, emit_edge_counters);
48 DECLARE_FLAG(bool, enable_type_checks); 49 DECLARE_FLAG(bool, enable_type_checks);
49 DECLARE_FLAG(bool, intrinsify); 50 DECLARE_FLAG(bool, intrinsify);
50 DECLARE_FLAG(int, optimization_counter_threshold); 51 DECLARE_FLAG(int, optimization_counter_threshold);
(...skipping 1663 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 1715
1715 1716
1716 void FlowGraphCompiler::FrameStateClear() { 1717 void FlowGraphCompiler::FrameStateClear() {
1717 ASSERT(!is_optimizing()); 1718 ASSERT(!is_optimizing());
1718 frame_state_.TruncateTo(0); 1719 frame_state_.TruncateTo(0);
1719 } 1720 }
1720 #endif 1721 #endif
1721 1722
1722 1723
1723 } // namespace dart 1724 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_arm.cc » ('j') | runtime/vm/flow_graph_compiler_arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698