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" | |
13 #include "vm/dart_entry.h" | 12 #include "vm/dart_entry.h" |
14 #include "vm/deopt_instructions.h" | 13 #include "vm/deopt_instructions.h" |
15 #include "vm/il_printer.h" | 14 #include "vm/il_printer.h" |
16 #include "vm/locations.h" | 15 #include "vm/locations.h" |
17 #include "vm/object_store.h" | 16 #include "vm/object_store.h" |
18 #include "vm/parser.h" | 17 #include "vm/parser.h" |
19 #include "vm/stack_frame.h" | 18 #include "vm/stack_frame.h" |
20 #include "vm/stub_code.h" | 19 #include "vm/stub_code.h" |
21 #include "vm/symbols.h" | 20 #include "vm/symbols.h" |
22 | 21 |
(...skipping 15 matching lines...) Expand all Loading... |
38 } | 37 } |
39 } | 38 } |
40 | 39 |
41 | 40 |
42 bool FlowGraphCompiler::SupportsUnboxedMints() { | 41 bool FlowGraphCompiler::SupportsUnboxedMints() { |
43 return false; | 42 return false; |
44 } | 43 } |
45 | 44 |
46 | 45 |
47 bool FlowGraphCompiler::SupportsUnboxedFloat32x4() { | 46 bool FlowGraphCompiler::SupportsUnboxedFloat32x4() { |
48 return TargetCPUFeatures::neon_supported() && FLAG_enable_simd_inline; | 47 return CPUFeatures::neon_supported() && FLAG_enable_simd_inline; |
49 } | 48 } |
50 | 49 |
51 | 50 |
52 bool FlowGraphCompiler::SupportsSinCos() { | 51 bool FlowGraphCompiler::SupportsSinCos() { |
53 return false; | 52 return false; |
54 } | 53 } |
55 | 54 |
56 | 55 |
57 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, | 56 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, |
58 DeoptInfoBuilder* builder, | 57 DeoptInfoBuilder* builder, |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
712 __ Drop(6); | 711 __ Drop(6); |
713 __ Pop(R0); | 712 __ Pop(R0); |
714 | 713 |
715 __ Bind(&is_assignable); | 714 __ Bind(&is_assignable); |
716 // Restore instantiator (R2) and its type arguments (R1). | 715 // Restore instantiator (R2) and its type arguments (R1). |
717 __ PopList((1 << R1) | (1 << R2)); | 716 __ PopList((1 << R1) | (1 << R2)); |
718 } | 717 } |
719 | 718 |
720 | 719 |
721 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { | 720 void FlowGraphCompiler::EmitInstructionEpilogue(Instruction* instr) { |
722 if (is_optimizing()) { | 721 if (is_optimizing()) return; |
723 return; | |
724 } | |
725 Definition* defn = instr->AsDefinition(); | 722 Definition* defn = instr->AsDefinition(); |
726 if ((defn != NULL) && defn->is_used()) { | 723 if ((defn != NULL) && defn->is_used()) { |
727 __ Push(defn->locs()->out().reg()); | 724 __ Push(defn->locs()->out().reg()); |
728 } | 725 } |
729 } | 726 } |
730 | 727 |
731 | 728 |
732 // Input parameters: | 729 // Input parameters: |
733 // R4: arguments descriptor array. | 730 // R4: arguments descriptor array. |
734 void FlowGraphCompiler::CopyParameters() { | 731 void FlowGraphCompiler::CopyParameters() { |
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1823 DRegister dreg = EvenDRegisterOf(reg); | 1820 DRegister dreg = EvenDRegisterOf(reg); |
1824 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1821 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
1825 } | 1822 } |
1826 | 1823 |
1827 | 1824 |
1828 #undef __ | 1825 #undef __ |
1829 | 1826 |
1830 } // namespace dart | 1827 } // namespace dart |
1831 | 1828 |
1832 #endif // defined TARGET_ARCH_ARM | 1829 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |