| 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" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |