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

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

Issue 16022011: Enables optimization on MIPS (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
« no previous file with comments | « runtime/vm/assembler_mips_test.cc ('k') | runtime/vm/constants_mips.h » ('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/bigint_operations.h" 9 #include "vm/bigint_operations.h"
10 #include "vm/code_patcher.h" 10 #include "vm/code_patcher.h"
(...skipping 20 matching lines...) Expand all
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(bool, trace_deoptimization, false, "Trace deoptimization"); 33 DEFINE_FLAG(bool, trace_deoptimization, false, "Trace deoptimization");
34 DEFINE_FLAG(bool, trace_deoptimization_verbose, false, 34 DEFINE_FLAG(bool, trace_deoptimization_verbose, false,
35 "Trace deoptimization verbose"); 35 "Trace deoptimization verbose");
36 DEFINE_FLAG(bool, trace_ic, false, "Trace IC handling"); 36 DEFINE_FLAG(bool, trace_ic, false, "Trace IC handling");
37 DEFINE_FLAG(bool, trace_ic_miss_in_optimized, false, 37 DEFINE_FLAG(bool, trace_ic_miss_in_optimized, false,
38 "Trace IC miss in optimized code"); 38 "Trace IC miss in optimized code");
39 DEFINE_FLAG(bool, trace_patching, false, "Trace patching of code."); 39 DEFINE_FLAG(bool, trace_patching, false, "Trace patching of code.");
40 DEFINE_FLAG(bool, trace_runtime_calls, false, "Trace runtime calls"); 40 DEFINE_FLAG(bool, trace_runtime_calls, false, "Trace runtime calls");
41 #if defined(TARGET_ARCH_IA32) || \
42 defined(TARGET_ARCH_X64) || \
43 defined(TARGET_ARCH_ARM)
44 DEFINE_FLAG(int, optimization_counter_threshold, 3000, 41 DEFINE_FLAG(int, optimization_counter_threshold, 3000,
45 "Function's usage-counter value before it is optimized, -1 means never"); 42 "Function's usage-counter value before it is optimized, -1 means never");
46 #else
47 // TODO(regis): Enable optimization on MIPS.
48 DEFINE_FLAG(int, optimization_counter_threshold, -1,
49 "Function's usage-counter value before it is optimized, -1 means never");
50 #endif
51 DECLARE_FLAG(bool, enable_type_checks); 43 DECLARE_FLAG(bool, enable_type_checks);
52 DECLARE_FLAG(bool, trace_type_checks); 44 DECLARE_FLAG(bool, trace_type_checks);
53 DECLARE_FLAG(bool, report_usage_count); 45 DECLARE_FLAG(bool, report_usage_count);
54 DECLARE_FLAG(int, deoptimization_counter_threshold); 46 DECLARE_FLAG(int, deoptimization_counter_threshold);
55 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function"); 47 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function");
56 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false, 48 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false,
57 "Traces all failed optimization attempts"); 49 "Traces all failed optimization attempts");
58 DEFINE_FLAG(bool, trace_optimized_ic_calls, false, 50 DEFINE_FLAG(bool, trace_optimized_ic_calls, false,
59 "Trace IC calls in optimized code."); 51 "Trace IC calls in optimized code.");
60 DEFINE_FLAG(int, reoptimization_counter_threshold, 2000, 52 DEFINE_FLAG(int, reoptimization_counter_threshold, 2000,
(...skipping 1707 matching lines...) Expand 10 before | Expand all | Expand 10 after
1768 // Arg1: Value that is being stored. 1760 // Arg1: Value that is being stored.
1769 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { 1761 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) {
1770 ASSERT(arguments.ArgCount() == kUpdateFieldCidRuntimeEntry.argument_count()); 1762 ASSERT(arguments.ArgCount() == kUpdateFieldCidRuntimeEntry.argument_count());
1771 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); 1763 const Field& field = Field::CheckedHandle(arguments.ArgAt(0));
1772 const Object& value = Object::Handle(arguments.ArgAt(1)); 1764 const Object& value = Object::Handle(arguments.ArgAt(1));
1773 1765
1774 field.UpdateCid(value.GetClassId()); 1766 field.UpdateCid(value.GetClassId());
1775 } 1767 }
1776 1768
1777 } // namespace dart 1769 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/assembler_mips_test.cc ('k') | runtime/vm/constants_mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698