| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool FlowGraphCompiler::SupportsSinCos() { | 74 bool FlowGraphCompiler::SupportsSinCos() { |
| 75 return true; | 75 return true; |
| 76 } | 76 } |
| 77 | 77 |
| 78 | 78 |
| 79 bool FlowGraphCompiler::SupportsHardwareDivision() { | 79 bool FlowGraphCompiler::SupportsHardwareDivision() { |
| 80 return true; | 80 return true; |
| 81 } | 81 } |
| 82 | 82 |
| 83 | 83 |
| 84 bool FlowGraphCompiler::CanConvertUnboxedMintToDouble() { |
| 85 return true; |
| 86 } |
| 87 |
| 88 |
| 84 void FlowGraphCompiler::EnterIntrinsicMode() { | 89 void FlowGraphCompiler::EnterIntrinsicMode() { |
| 85 ASSERT(!intrinsic_mode()); | 90 ASSERT(!intrinsic_mode()); |
| 86 intrinsic_mode_ = true; | 91 intrinsic_mode_ = true; |
| 87 } | 92 } |
| 88 | 93 |
| 89 | 94 |
| 90 void FlowGraphCompiler::ExitIntrinsicMode() { | 95 void FlowGraphCompiler::ExitIntrinsicMode() { |
| 91 ASSERT(intrinsic_mode()); | 96 ASSERT(intrinsic_mode()); |
| 92 intrinsic_mode_ = false; | 97 intrinsic_mode_ = false; |
| 93 } | 98 } |
| (...skipping 1748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1842 __ movups(reg, Address(ESP, 0)); | 1847 __ movups(reg, Address(ESP, 0)); |
| 1843 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1848 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1844 } | 1849 } |
| 1845 | 1850 |
| 1846 | 1851 |
| 1847 #undef __ | 1852 #undef __ |
| 1848 | 1853 |
| 1849 } // namespace dart | 1854 } // namespace dart |
| 1850 | 1855 |
| 1851 #endif // defined TARGET_ARCH_IA32 | 1856 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |