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/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
6 | 6 |
7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
8 | 8 |
9 #include "vm/cha.h" | 9 #include "vm/cha.h" |
10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
(...skipping 22 matching lines...) Expand all Loading... |
33 DECLARE_FLAG(bool, report_usage_count); | 33 DECLARE_FLAG(bool, report_usage_count); |
34 DECLARE_FLAG(int, optimization_counter_threshold); | 34 DECLARE_FLAG(int, optimization_counter_threshold); |
35 DECLARE_FLAG(bool, use_cha); | 35 DECLARE_FLAG(bool, use_cha); |
36 DECLARE_FLAG(bool, use_osr); | 36 DECLARE_FLAG(bool, use_osr); |
37 DECLARE_FLAG(int, stacktrace_every); | 37 DECLARE_FLAG(int, stacktrace_every); |
38 DECLARE_FLAG(charp, stacktrace_filter); | 38 DECLARE_FLAG(charp, stacktrace_filter); |
39 DECLARE_FLAG(int, deoptimize_every); | 39 DECLARE_FLAG(int, deoptimize_every); |
40 DECLARE_FLAG(charp, deoptimize_filter); | 40 DECLARE_FLAG(charp, deoptimize_filter); |
41 DECLARE_FLAG(bool, warn_on_javascript_compatibility); | 41 DECLARE_FLAG(bool, warn_on_javascript_compatibility); |
42 | 42 |
| 43 // TODO(zra): remove once arm64 has simd. |
| 44 #if defined(TARGET_ARCH_ARM64) |
| 45 DEFINE_FLAG(bool, enable_simd_inline, false, |
| 46 "Enable inlining of SIMD related method calls."); |
| 47 #else |
43 DEFINE_FLAG(bool, enable_simd_inline, true, | 48 DEFINE_FLAG(bool, enable_simd_inline, true, |
44 "Enable inlining of SIMD related method calls."); | 49 "Enable inlining of SIMD related method calls."); |
| 50 #endif |
45 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment."); | 51 DEFINE_FLAG(bool, source_lines, false, "Emit source line as assembly comment."); |
46 | 52 |
47 // Assign locations to incoming arguments, i.e., values pushed above spill slots | 53 // Assign locations to incoming arguments, i.e., values pushed above spill slots |
48 // with PushArgument. Recursively allocates from outermost to innermost | 54 // with PushArgument. Recursively allocates from outermost to innermost |
49 // environment. | 55 // environment. |
50 void CompilerDeoptInfo::AllocateIncomingParametersRecursive( | 56 void CompilerDeoptInfo::AllocateIncomingParametersRecursive( |
51 Environment* env, | 57 Environment* env, |
52 intptr_t* stack_height) { | 58 intptr_t* stack_height) { |
53 if (env == NULL) return; | 59 if (env == NULL) return; |
54 AllocateIncomingParametersRecursive(env->outer(), stack_height); | 60 AllocateIncomingParametersRecursive(env->outer(), stack_height); |
(...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 | 1331 |
1326 for (int i = 0; i < len; i++) { | 1332 for (int i = 0; i < len; i++) { |
1327 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), | 1333 sorted->Add(CidTarget(ic_data.GetReceiverClassIdAt(i), |
1328 &Function::ZoneHandle(ic_data.GetTargetAt(i)), | 1334 &Function::ZoneHandle(ic_data.GetTargetAt(i)), |
1329 ic_data.GetCountAt(i))); | 1335 ic_data.GetCountAt(i))); |
1330 } | 1336 } |
1331 sorted->Sort(HighestCountFirst); | 1337 sorted->Sort(HighestCountFirst); |
1332 } | 1338 } |
1333 | 1339 |
1334 } // namespace dart | 1340 } // namespace dart |
OLD | NEW |