| OLD | NEW |
| 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 14 matching lines...) Expand all Loading... |
| 25 #include "vm/symbols.h" | 25 #include "vm/symbols.h" |
| 26 #include "vm/verifier.h" | 26 #include "vm/verifier.h" |
| 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 | |
| 36 // Disable optimizing compiler on ARM64. | |
| 37 #if defined(TARGET_ARCH_ARM64) | |
| 38 DEFINE_FLAG(int, optimization_counter_threshold, -1, | |
| 39 "Function's usage-counter value before it is optimized, -1 means never"); | |
| 40 #else | |
| 41 DEFINE_FLAG(int, optimization_counter_threshold, 15000, | 35 DEFINE_FLAG(int, optimization_counter_threshold, 15000, |
| 42 "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"); |
| 43 #endif | |
| 44 | |
| 45 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function"); | 37 DEFINE_FLAG(charp, optimization_filter, NULL, "Optimize only named function"); |
| 46 DEFINE_FLAG(int, reoptimization_counter_threshold, 2000, | 38 DEFINE_FLAG(int, reoptimization_counter_threshold, 2000, |
| 47 "Counter threshold before a function gets reoptimized."); | 39 "Counter threshold before a function gets reoptimized."); |
| 48 DEFINE_FLAG(bool, stop_on_excessive_deoptimization, false, | 40 DEFINE_FLAG(bool, stop_on_excessive_deoptimization, false, |
| 49 "Debugging: stops program if deoptimizing same function too often"); | 41 "Debugging: stops program if deoptimizing same function too often"); |
| 50 DEFINE_FLAG(bool, trace_deoptimization, false, "Trace deoptimization"); | 42 DEFINE_FLAG(bool, trace_deoptimization, false, "Trace deoptimization"); |
| 51 DEFINE_FLAG(bool, trace_deoptimization_verbose, false, | 43 DEFINE_FLAG(bool, trace_deoptimization_verbose, false, |
| 52 "Trace deoptimization verbose"); | 44 "Trace deoptimization verbose"); |
| 53 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false, | 45 DEFINE_FLAG(bool, trace_failed_optimization_attempts, false, |
| 54 "Traces all failed optimization attempts"); | 46 "Traces all failed optimization attempts"); |
| (...skipping 1450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 // of the given value. | 1497 // of the given value. |
| 1506 // Arg0: Field object; | 1498 // Arg0: Field object; |
| 1507 // Arg1: Value that is being stored. | 1499 // Arg1: Value that is being stored. |
| 1508 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { | 1500 DEFINE_RUNTIME_ENTRY(UpdateFieldCid, 2) { |
| 1509 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); | 1501 const Field& field = Field::CheckedHandle(arguments.ArgAt(0)); |
| 1510 const Object& value = Object::Handle(arguments.ArgAt(1)); | 1502 const Object& value = Object::Handle(arguments.ArgAt(1)); |
| 1511 field.UpdateGuardedCidAndLength(value); | 1503 field.UpdateGuardedCidAndLength(value); |
| 1512 } | 1504 } |
| 1513 | 1505 |
| 1514 } // namespace dart | 1506 } // namespace dart |
| OLD | NEW |