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/cpu.h" | 12 #include "vm/cpu.h" |
13 #include "vm/dart_entry.h" | 13 #include "vm/dart_entry.h" |
14 #include "vm/deopt_instructions.h" | 14 #include "vm/deopt_instructions.h" |
15 #include "vm/il_printer.h" | 15 #include "vm/il_printer.h" |
16 #include "vm/locations.h" | 16 #include "vm/locations.h" |
17 #include "vm/object_store.h" | 17 #include "vm/object_store.h" |
18 #include "vm/parser.h" | 18 #include "vm/parser.h" |
19 #include "vm/stack_frame.h" | 19 #include "vm/stack_frame.h" |
20 #include "vm/stub_code.h" | 20 #include "vm/stub_code.h" |
21 #include "vm/symbols.h" | 21 #include "vm/symbols.h" |
22 | 22 |
23 namespace dart { | 23 namespace dart { |
24 | 24 |
25 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization."); | 25 DEFINE_FLAG(bool, trap_on_deoptimization, false, "Trap on deoptimization."); |
| 26 DEFINE_FLAG(bool, unbox_mints, true, "Optimize 64-bit integer arithmetic."); |
26 DECLARE_FLAG(int, optimization_counter_threshold); | 27 DECLARE_FLAG(int, optimization_counter_threshold); |
27 DECLARE_FLAG(int, reoptimization_counter_threshold); | 28 DECLARE_FLAG(int, reoptimization_counter_threshold); |
28 DECLARE_FLAG(bool, enable_type_checks); | 29 DECLARE_FLAG(bool, enable_type_checks); |
29 DECLARE_FLAG(bool, eliminate_type_checks); | 30 DECLARE_FLAG(bool, eliminate_type_checks); |
30 DECLARE_FLAG(bool, enable_simd_inline); | 31 DECLARE_FLAG(bool, enable_simd_inline); |
31 | 32 |
32 | 33 |
33 FlowGraphCompiler::~FlowGraphCompiler() { | 34 FlowGraphCompiler::~FlowGraphCompiler() { |
34 // BlockInfos are zone-allocated, so their destructors are not called. | 35 // BlockInfos are zone-allocated, so their destructors are not called. |
35 // Verify the labels explicitly here. | 36 // Verify the labels explicitly here. |
36 for (int i = 0; i < block_info_.length(); ++i) { | 37 for (int i = 0; i < block_info_.length(); ++i) { |
37 ASSERT(!block_info_[i]->jump_label()->IsLinked()); | 38 ASSERT(!block_info_[i]->jump_label()->IsLinked()); |
38 } | 39 } |
39 } | 40 } |
40 | 41 |
41 | 42 |
42 bool FlowGraphCompiler::SupportsUnboxedMints() { | 43 bool FlowGraphCompiler::SupportsUnboxedMints() { |
43 return false; | 44 return TargetCPUFeatures::neon_supported() && FLAG_unbox_mints; |
44 } | 45 } |
45 | 46 |
46 | 47 |
47 bool FlowGraphCompiler::SupportsUnboxedSimd128() { | 48 bool FlowGraphCompiler::SupportsUnboxedSimd128() { |
48 return TargetCPUFeatures::neon_supported() && FLAG_enable_simd_inline; | 49 return TargetCPUFeatures::neon_supported() && FLAG_enable_simd_inline; |
49 } | 50 } |
50 | 51 |
51 | 52 |
52 bool FlowGraphCompiler::SupportsSinCos() { | 53 bool FlowGraphCompiler::SupportsSinCos() { |
53 return false; | 54 return false; |
(...skipping 1755 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1809 DRegister dreg = EvenDRegisterOf(reg); | 1810 DRegister dreg = EvenDRegisterOf(reg); |
1810 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1811 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
1811 } | 1812 } |
1812 | 1813 |
1813 | 1814 |
1814 #undef __ | 1815 #undef __ |
1815 | 1816 |
1816 } // namespace dart | 1817 } // namespace dart |
1817 | 1818 |
1818 #endif // defined TARGET_ARCH_ARM | 1819 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |