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

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

Issue 501553005: Scale invocation count by the number of BBs in the flow-graph of a method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Refactor and port to archs. Created 6 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') | runtime/vm/flow_graph_compiler.cc » ('J')
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/code_generator.h" 5 #include "vm/code_generator.h"
6 6
7 #include "vm/assembler.h" 7 #include "vm/assembler.h"
8 #include "vm/ast.h" 8 #include "vm/ast.h"
9 #include "vm/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 17 matching lines...) Expand all
28 28
29 namespace dart { 29 namespace dart {
30 30
31 DEFINE_FLAG(bool, deoptimize_alot, false, 31 DEFINE_FLAG(bool, deoptimize_alot, false,
32 "Deoptimizes all live frames when we are about to return to Dart code from" 32 "Deoptimizes all live frames when we are about to return to Dart code from"
33 " native entries."); 33 " native entries.");
34 DEFINE_FLAG(int, max_subtype_cache_entries, 100, 34 DEFINE_FLAG(int, max_subtype_cache_entries, 100,
35 "Maximum number of subtype cache entries (number of checks cached)."); 35 "Maximum number of subtype cache entries (number of checks cached).");
36 DEFINE_FLAG(int, optimization_counter_threshold, 30000, 36 DEFINE_FLAG(int, optimization_counter_threshold, 30000,
37 "Function's usage-counter value before it is optimized, -1 means never"); 37 "Function's usage-counter value before it is optimized, -1 means never");
38 DEFINE_FLAG(int, optimization_counter_scale, 2000,
kasperl 2014/08/29 10:52:26 2269
39 "The scale of invocation count, by size of the function.");
40 DEFINE_FLAG(int, min_optimization_counter_threshold, 5000,
Vyacheslav Egorov (Google) 2014/08/29 11:17:18 Just move these flags to the file where they are u
Anders Johnsen 2014/08/29 11:56:27 Done.
41 "The minimum invocation count for a function.");
38 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function"); 42 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function");
39 DEFINE_FLAG(int, reoptimization_counter_threshold, 4000, 43 DEFINE_FLAG(int, reoptimization_counter_threshold, 4000,
40 "Counter threshold before a function gets reoptimized."); 44 "Counter threshold before a function gets reoptimized.");
41 DEFINE_FLAG(bool, stop_on_excessive_deoptimization, false, 45 DEFINE_FLAG(bool, stop_on_excessive_deoptimization, false,
42 "Debugging: stops program if deoptimizing same function too often"); 46 "Debugging: stops program if deoptimizing same function too often");
43 DEFINE_FLAG(bool, trace_deoptimization, false, "Trace deoptimization"); 47 DEFINE_FLAG(bool, trace_deoptimization, false, "Trace deoptimization");
44 DEFINE_FLAG(bool, trace_deoptimization_verbose, false, 48 DEFINE_FLAG(bool, trace_deoptimization_verbose, false,
45 "Trace deoptimization verbose"); 49 "Trace deoptimization verbose");
46 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false, 50 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false,
47 "Traces all failed optimization attempts"); 51 "Traces all failed optimization attempts");
(...skipping 1536 matching lines...) Expand 10 before | Expand all | Expand 10 after
1584 field.RecordStore(value); 1588 field.RecordStore(value);
1585 } 1589 }
1586 1590
1587 1591
1588 DEFINE_RUNTIME_ENTRY(InitStaticField, 1) { 1592 DEFINE_RUNTIME_ENTRY(InitStaticField, 1) {
1589 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); 1593 const Field& field = Field::CheckedHandle(arguments.ArgAt(0));
1590 field.EvaluateInitializer(); 1594 field.EvaluateInitializer();
1591 } 1595 }
1592 1596
1593 } // namespace dart 1597 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.h » ('j') | runtime/vm/flow_graph_compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698