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

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

Issue 11442059: Increase optimziation counter threshold to 3000, improves dart2js preformance. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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 | no next file » | 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_macros.h" 7 #include "vm/assembler_macros.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 21 matching lines...) Expand all
32 " native entries."); 32 " native entries.");
33 DEFINE_FLAG(bool, inline_cache, true, "Enable inline caches"); 33 DEFINE_FLAG(bool, inline_cache, true, "Enable inline caches");
34 DEFINE_FLAG(bool, trace_deoptimization, false, "Trace deoptimization"); 34 DEFINE_FLAG(bool, trace_deoptimization, false, "Trace deoptimization");
35 DEFINE_FLAG(bool, trace_deoptimization_verbose, false, 35 DEFINE_FLAG(bool, trace_deoptimization_verbose, false,
36 "Trace deoptimization verbose"); 36 "Trace deoptimization verbose");
37 DEFINE_FLAG(bool, trace_ic, false, "Trace IC handling"); 37 DEFINE_FLAG(bool, trace_ic, false, "Trace IC handling");
38 DEFINE_FLAG(bool, trace_ic_miss_in_optimized, false, 38 DEFINE_FLAG(bool, trace_ic_miss_in_optimized, false,
39 "Trace IC miss in optimized code"); 39 "Trace IC miss in optimized code");
40 DEFINE_FLAG(bool, trace_patching, false, "Trace patching of code."); 40 DEFINE_FLAG(bool, trace_patching, false, "Trace patching of code.");
41 DEFINE_FLAG(bool, trace_runtime_calls, false, "Trace runtime calls"); 41 DEFINE_FLAG(bool, trace_runtime_calls, false, "Trace runtime calls");
42 DEFINE_FLAG(int, optimization_counter_threshold, 2000, 42 DEFINE_FLAG(int, optimization_counter_threshold, 3000,
43 "Function's usage-counter value before it is optimized, -1 means never"); 43 "Function's usage-counter value before it is optimized, -1 means never");
44 DECLARE_FLAG(bool, enable_type_checks); 44 DECLARE_FLAG(bool, enable_type_checks);
45 DECLARE_FLAG(bool, trace_type_checks); 45 DECLARE_FLAG(bool, trace_type_checks);
46 DECLARE_FLAG(bool, report_usage_count); 46 DECLARE_FLAG(bool, report_usage_count);
47 DECLARE_FLAG(int, deoptimization_counter_threshold); 47 DECLARE_FLAG(int, deoptimization_counter_threshold);
48 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function"); 48 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function");
49 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false, 49 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false,
50 "Traces all failed optimization attempts"); 50 "Traces all failed optimization attempts");
51 DEFINE_FLAG(bool, trace_optimized_ic_calls, false, 51 DEFINE_FLAG(bool, trace_optimized_ic_calls, false,
52 "Trace IC calls in optimized code."); 52 "Trace IC calls in optimized code.");
(...skipping 1895 matching lines...) Expand 10 before | Expand all | Expand 10 after
1948 Isolate* isolate = Isolate::Current(); 1948 Isolate* isolate = Isolate::Current();
1949 StackZone zone(isolate); 1949 StackZone zone(isolate);
1950 HANDLESCOPE(isolate); 1950 HANDLESCOPE(isolate);
1951 const Bigint& big_left = Bigint::Handle(left); 1951 const Bigint& big_left = Bigint::Handle(left);
1952 const Bigint& big_right = Bigint::Handle(right); 1952 const Bigint& big_right = Bigint::Handle(right);
1953 return BigintOperations::Compare(big_left, big_right); 1953 return BigintOperations::Compare(big_left, big_right);
1954 } 1954 }
1955 END_LEAF_RUNTIME_ENTRY 1955 END_LEAF_RUNTIME_ENTRY
1956 1956
1957 } // namespace dart 1957 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698