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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
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 ASSERT(!block_info_[i]->jump_label()->HasNear()); | 37 ASSERT(!block_info_[i]->jump_label()->HasNear()); |
37 } | 38 } |
38 } | 39 } |
39 | 40 |
40 | 41 |
41 bool FlowGraphCompiler::SupportsUnboxedMints() { | 42 bool FlowGraphCompiler::SupportsUnboxedMints() { |
42 return false; | 43 return false; |
43 } | 44 } |
44 | 45 |
45 | 46 |
| 47 bool FlowGraphCompiler::SupportsUnboxedFloat32x4() { |
| 48 return FLAG_enable_simd_inline; |
| 49 } |
| 50 |
| 51 |
| 52 |
46 bool FlowGraphCompiler::SupportsSinCos() { | 53 bool FlowGraphCompiler::SupportsSinCos() { |
47 return true; | 54 return true; |
48 } | 55 } |
49 | 56 |
50 | 57 |
51 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 58 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
52 DeoptInfoBuilder* builder, | 59 DeoptInfoBuilder* builder, |
53 const Array& deopt_table) { | 60 const Array& deopt_table) { |
54 if (deopt_env_ == NULL) return DeoptInfo::null(); | 61 if (deopt_env_ == NULL) return DeoptInfo::null(); |
55 | 62 |
(...skipping 1795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1851 __ movups(reg, Address(RSP, 0)); | 1858 __ movups(reg, Address(RSP, 0)); |
1852 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); | 1859 __ AddImmediate(RSP, Immediate(kFpuRegisterSize), PP); |
1853 } | 1860 } |
1854 | 1861 |
1855 | 1862 |
1856 #undef __ | 1863 #undef __ |
1857 | 1864 |
1858 } // namespace dart | 1865 } // namespace dart |
1859 | 1866 |
1860 #endif // defined TARGET_ARCH_X64 | 1867 #endif // defined TARGET_ARCH_X64 |
OLD | NEW |