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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
7 | 7 |
8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
9 | 9 |
10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
11 #include "vm/compiler.h" | 11 #include "vm/compiler.h" |
12 #include "vm/dart_entry.h" | 12 #include "vm/dart_entry.h" |
13 #include "vm/deopt_instructions.h" | 13 #include "vm/deopt_instructions.h" |
14 #include "vm/il_printer.h" | 14 #include "vm/il_printer.h" |
15 #include "vm/locations.h" | 15 #include "vm/locations.h" |
16 #include "vm/object_store.h" | 16 #include "vm/object_store.h" |
17 #include "vm/parser.h" | 17 #include "vm/parser.h" |
18 #include "vm/stack_frame.h" | 18 #include "vm/stack_frame.h" |
19 #include "vm/stub_code.h" | 19 #include "vm/stub_code.h" |
20 #include "vm/symbols.h" | 20 #include "vm/symbols.h" |
21 | 21 |
22 namespace dart { | 22 namespace dart { |
23 | 23 |
24 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization."); | 24 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization."); |
25 DECLARE_FLAG(int, optimization_counter_threshold); | 25 DECLARE_FLAG(int, optimization_counter_threshold); |
26 DECLARE_FLAG(int, reoptimization_counter_threshold); | 26 DECLARE_FLAG(int, reoptimization_counter_threshold); |
27 DECLARE_FLAG(bool, enable_type_checks); | 27 DECLARE_FLAG(bool, enable_type_checks); |
28 DECLARE_FLAG(bool, eliminate_type_checks); | 28 DECLARE_FLAG(bool, eliminate_type_checks); |
| 29 DECLARE_FLAG(bool, enable_simd_inline); |
29 | 30 |
30 | 31 |
31 FlowGraphCompiler::~FlowGraphCompiler() { | 32 FlowGraphCompiler::~FlowGraphCompiler() { |
32 // BlockInfos are zone-allocated, so their destructors are not called. | 33 // BlockInfos are zone-allocated, so their destructors are not called. |
33 // Verify the labels explicitly here. | 34 // Verify the labels explicitly here. |
34 for (int i = 0; i < block_info_.length(); ++i) { | 35 for (int i = 0; i < block_info_.length(); ++i) { |
35 ASSERT(!block_info_[i]->jump_label()->IsLinked()); | 36 ASSERT(!block_info_[i]->jump_label()->IsLinked()); |
36 } | 37 } |
37 } | 38 } |
38 | 39 |
39 | 40 |
40 bool FlowGraphCompiler::SupportsUnboxedMints() { | 41 bool FlowGraphCompiler::SupportsUnboxedMints() { |
41 return false; | 42 return false; |
42 } | 43 } |
43 | 44 |
44 | 45 |
| 46 bool FlowGraphCompiler::SupportsUnboxedFloat32x4() { |
| 47 return CPUFeatures::neon_supported() && FLAG_enable_simd_inline; |
| 48 } |
| 49 |
| 50 |
45 bool FlowGraphCompiler::SupportsSinCos() { | 51 bool FlowGraphCompiler::SupportsSinCos() { |
46 return false; | 52 return false; |
47 } | 53 } |
48 | 54 |
49 | 55 |
50 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 56 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
51 DeoptInfoBuilder* builder, | 57 DeoptInfoBuilder* builder, |
52 const Array& deopt_table) { | 58 const Array& deopt_table) { |
53 if (deopt_env_ == NULL) return DeoptInfo::null(); | 59 if (deopt_env_ == NULL) return DeoptInfo::null(); |
54 | 60 |
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1821 DRegister dreg = EvenDRegisterOf(reg); | 1827 DRegister dreg = EvenDRegisterOf(reg); |
1822 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1828 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
1823 } | 1829 } |
1824 | 1830 |
1825 | 1831 |
1826 #undef __ | 1832 #undef __ |
1827 | 1833 |
1828 } // namespace dart | 1834 } // namespace dart |
1829 | 1835 |
1830 #endif // defined TARGET_ARCH_ARM | 1836 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |