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

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

Issue 1700103002: VM: Move representation selection code out of the flow graph optimizer. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: remove some dead code Created 4 years, 10 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
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_compiler_arm64.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) 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"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 bool FlowGraphCompiler::SupportsSinCos() { 71 bool FlowGraphCompiler::SupportsSinCos() {
72 return false; 72 return false;
73 } 73 }
74 74
75 75
76 bool FlowGraphCompiler::SupportsHardwareDivision() { 76 bool FlowGraphCompiler::SupportsHardwareDivision() {
77 return TargetCPUFeatures::can_divide(); 77 return TargetCPUFeatures::can_divide();
78 } 78 }
79 79
80 80
81 bool FlowGraphCompiler::CanConvertUnboxedMintToDouble() {
82 // ARM does not have a short instruction sequence for converting int64 to
83 // double.
84 return false;
85 }
86
87
81 void FlowGraphCompiler::EnterIntrinsicMode() { 88 void FlowGraphCompiler::EnterIntrinsicMode() {
82 ASSERT(!intrinsic_mode()); 89 ASSERT(!intrinsic_mode());
83 intrinsic_mode_ = true; 90 intrinsic_mode_ = true;
84 ASSERT(!assembler()->constant_pool_allowed()); 91 ASSERT(!assembler()->constant_pool_allowed());
85 } 92 }
86 93
87 94
88 void FlowGraphCompiler::ExitIntrinsicMode() { 95 void FlowGraphCompiler::ExitIntrinsicMode() {
89 ASSERT(intrinsic_mode()); 96 ASSERT(intrinsic_mode());
90 intrinsic_mode_ = false; 97 intrinsic_mode_ = false;
(...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 DRegister dreg = EvenDRegisterOf(reg); 1945 DRegister dreg = EvenDRegisterOf(reg);
1939 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1946 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1940 } 1947 }
1941 1948
1942 1949
1943 #undef __ 1950 #undef __
1944 1951
1945 } // namespace dart 1952 } // namespace dart
1946 1953
1947 #endif // defined TARGET_ARCH_ARM 1954 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698