| 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/flow_graph_optimizer.h" | 5 #include "vm/flow_graph_optimizer.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/cha.h" | 8 #include "vm/cha.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 DEFINE_FLAG(bool, enable_simd_inline, true, | 39 DEFINE_FLAG(bool, enable_simd_inline, true, |
| 40 "Enable inlining of SIMD related method calls."); | 40 "Enable inlining of SIMD related method calls."); |
| 41 DECLARE_FLAG(bool, eliminate_type_checks); | 41 DECLARE_FLAG(bool, eliminate_type_checks); |
| 42 DECLARE_FLAG(bool, enable_type_checks); | 42 DECLARE_FLAG(bool, enable_type_checks); |
| 43 DECLARE_FLAG(bool, trace_type_check_elimination); | 43 DECLARE_FLAG(bool, trace_type_check_elimination); |
| 44 | 44 |
| 45 | 45 |
| 46 static bool ShouldInlineSimd() { | 46 static bool ShouldInlineSimd() { |
| 47 #if defined(TARGET_ARCH_MIPS) | 47 #if defined(TARGET_ARCH_MIPS) |
| 48 return false; | 48 return false; |
| 49 #elif defined(TARGET_ARCH_ARM) |
| 50 return CPUFeatures::neon_supported() && FLAG_enable_simd_inline; |
| 49 #endif | 51 #endif |
| 50 return FLAG_enable_simd_inline; | 52 return FLAG_enable_simd_inline; |
| 51 } | 53 } |
| 52 | 54 |
| 53 | 55 |
| 54 // Optimize instance calls using ICData. | 56 // Optimize instance calls using ICData. |
| 55 void FlowGraphOptimizer::ApplyICData() { | 57 void FlowGraphOptimizer::ApplyICData() { |
| 56 VisitBlocks(); | 58 VisitBlocks(); |
| 57 } | 59 } |
| 58 | 60 |
| (...skipping 7435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7494 } | 7496 } |
| 7495 | 7497 |
| 7496 // Insert materializations at environment uses. | 7498 // Insert materializations at environment uses. |
| 7497 for (intptr_t i = 0; i < exits.length(); i++) { | 7499 for (intptr_t i = 0; i < exits.length(); i++) { |
| 7498 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields); | 7500 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields); |
| 7499 } | 7501 } |
| 7500 } | 7502 } |
| 7501 | 7503 |
| 7502 | 7504 |
| 7503 } // namespace dart | 7505 } // namespace dart |
| OLD | NEW |