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

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

Issue 836703003: Define a lower threshold for optimizing irregexp generated functions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 11 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.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/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/code_patcher.h" 9 #include "vm/code_patcher.h"
10 #include "vm/compiler.h" 10 #include "vm/compiler.h"
(...skipping 16 matching lines...) Expand all
27 27
28 namespace dart { 28 namespace dart {
29 29
30 DEFINE_FLAG(bool, deoptimize_alot, false, 30 DEFINE_FLAG(bool, deoptimize_alot, false,
31 "Deoptimizes all live frames when we are about to return to Dart code from" 31 "Deoptimizes all live frames when we are about to return to Dart code from"
32 " native entries."); 32 " native entries.");
33 DEFINE_FLAG(int, max_subtype_cache_entries, 100, 33 DEFINE_FLAG(int, max_subtype_cache_entries, 100,
34 "Maximum number of subtype cache entries (number of checks cached)."); 34 "Maximum number of subtype cache entries (number of checks cached).");
35 DEFINE_FLAG(int, optimization_counter_threshold, 30000, 35 DEFINE_FLAG(int, optimization_counter_threshold, 30000,
36 "Function's usage-counter value before it is optimized, -1 means never"); 36 "Function's usage-counter value before it is optimized, -1 means never");
37 DEFINE_FLAG(int, regexp_optimization_counter_threshold, 1000,
38 "RegExp's usage-counter value before it is optimized, -1 means never");
37 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function"); 39 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function");
38 DEFINE_FLAG(int, reoptimization_counter_threshold, 4000, 40 DEFINE_FLAG(int, reoptimization_counter_threshold, 4000,
39 "Counter threshold before a function gets reoptimized."); 41 "Counter threshold before a function gets reoptimized.");
40 DEFINE_FLAG(bool, stop_on_excessive_deoptimization, false, 42 DEFINE_FLAG(bool, stop_on_excessive_deoptimization, false,
41 "Debugging: stops program if deoptimizing same function too often"); 43 "Debugging: stops program if deoptimizing same function too often");
42 DEFINE_FLAG(bool, trace_deoptimization, false, "Trace deoptimization"); 44 DEFINE_FLAG(bool, trace_deoptimization, false, "Trace deoptimization");
43 DEFINE_FLAG(bool, trace_deoptimization_verbose, false, 45 DEFINE_FLAG(bool, trace_deoptimization_verbose, false,
44 "Trace deoptimization verbose"); 46 "Trace deoptimization verbose");
45 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false, 47 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false,
46 "Traces all failed optimization attempts"); 48 "Traces all failed optimization attempts");
(...skipping 1606 matching lines...) Expand 10 before | Expand all | Expand 10 after
1653 field.RecordStore(value); 1655 field.RecordStore(value);
1654 } 1656 }
1655 1657
1656 1658
1657 DEFINE_RUNTIME_ENTRY(InitStaticField, 1) { 1659 DEFINE_RUNTIME_ENTRY(InitStaticField, 1) {
1658 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); 1660 const Field& field = Field::CheckedHandle(arguments.ArgAt(0));
1659 field.EvaluateInitializer(); 1661 field.EvaluateInitializer();
1660 } 1662 }
1661 1663
1662 } // namespace dart 1664 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698