Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: runtime/vm/flow_graph_compiler_arm64.cc

Issue 293993013: Beings adding SIMD support to arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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_ARM64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64.
6 #if defined(TARGET_ARCH_ARM64) 6 #if defined(TARGET_ARCH_ARM64)
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 DECLARE_FLAG(int, optimization_counter_threshold); 26 DECLARE_FLAG(int, optimization_counter_threshold);
27 DECLARE_FLAG(int, reoptimization_counter_threshold); 27 DECLARE_FLAG(int, reoptimization_counter_threshold);
28 DECLARE_FLAG(bool, eliminate_type_checks); 28 DECLARE_FLAG(bool, eliminate_type_checks);
29 DECLARE_FLAG(bool, enable_simd_inline);
30
29 31
30 FlowGraphCompiler::~FlowGraphCompiler() { 32 FlowGraphCompiler::~FlowGraphCompiler() {
31 // BlockInfos are zone-allocated, so their destructors are not called. 33 // BlockInfos are zone-allocated, so their destructors are not called.
32 // Verify the labels explicitly here. 34 // Verify the labels explicitly here.
33 for (int i = 0; i < block_info_.length(); ++i) { 35 for (int i = 0; i < block_info_.length(); ++i) {
34 ASSERT(!block_info_[i]->jump_label()->IsLinked()); 36 ASSERT(!block_info_[i]->jump_label()->IsLinked());
35 } 37 }
36 } 38 }
37 39
38 40
39 bool FlowGraphCompiler::SupportsUnboxedDoubles() { 41 bool FlowGraphCompiler::SupportsUnboxedDoubles() {
40 return true; 42 return true;
41 } 43 }
42 44
43 45
44 bool FlowGraphCompiler::SupportsUnboxedMints() { 46 bool FlowGraphCompiler::SupportsUnboxedMints() {
45 return false; 47 return false;
46 } 48 }
47 49
48 50
49 bool FlowGraphCompiler::SupportsUnboxedSimd128() { 51 bool FlowGraphCompiler::SupportsUnboxedSimd128() {
50 return false; 52 return FLAG_enable_simd_inline;
51 } 53 }
52 54
53 55
54 bool FlowGraphCompiler::SupportsSinCos() { 56 bool FlowGraphCompiler::SupportsSinCos() {
55 return false; 57 return false;
56 } 58 }
57 59
58 60
59 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler, 61 RawDeoptInfo* CompilerDeoptInfo::CreateDeoptInfo(FlowGraphCompiler* compiler,
60 DeoptInfoBuilder* builder, 62 DeoptInfoBuilder* builder,
(...skipping 1714 matching lines...) Expand 10 before | Expand all | Expand 10 after
1775 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1777 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1776 UNIMPLEMENTED(); 1778 UNIMPLEMENTED();
1777 } 1779 }
1778 1780
1779 1781
1780 #undef __ 1782 #undef __
1781 1783
1782 } // namespace dart 1784 } // namespace dart
1783 1785
1784 #endif // defined TARGET_ARCH_ARM64 1786 #endif // defined TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.cc ('k') | runtime/vm/intermediate_language_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698