| 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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 bool FlowGraphCompiler::SupportsSinCos() { | 66 bool FlowGraphCompiler::SupportsSinCos() { |
| 67 return false; | 67 return false; |
| 68 } | 68 } |
| 69 | 69 |
| 70 | 70 |
| 71 bool FlowGraphCompiler::SupportsHardwareDivision() { | 71 bool FlowGraphCompiler::SupportsHardwareDivision() { |
| 72 return true; | 72 return true; |
| 73 } | 73 } |
| 74 | 74 |
| 75 | 75 |
| 76 bool FlowGraphCompiler::CanConvertUnboxedMintToDouble() { |
| 77 // TODO(johnmccutchan): Investigate possibility on MIPS once |
| 78 // mints are implemented there. |
| 79 return false; |
| 80 } |
| 81 |
| 82 |
| 76 void FlowGraphCompiler::EnterIntrinsicMode() { | 83 void FlowGraphCompiler::EnterIntrinsicMode() { |
| 77 ASSERT(!intrinsic_mode()); | 84 ASSERT(!intrinsic_mode()); |
| 78 intrinsic_mode_ = true; | 85 intrinsic_mode_ = true; |
| 79 assembler()->set_constant_pool_allowed(false); | 86 assembler()->set_constant_pool_allowed(false); |
| 80 } | 87 } |
| 81 | 88 |
| 82 | 89 |
| 83 void FlowGraphCompiler::ExitIntrinsicMode() { | 90 void FlowGraphCompiler::ExitIntrinsicMode() { |
| 84 ASSERT(intrinsic_mode()); | 91 ASSERT(intrinsic_mode()); |
| 85 intrinsic_mode_ = false; | 92 intrinsic_mode_ = false; |
| (...skipping 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1902 __ AddImmediate(SP, kDoubleSize); | 1909 __ AddImmediate(SP, kDoubleSize); |
| 1903 } | 1910 } |
| 1904 | 1911 |
| 1905 | 1912 |
| 1906 #undef __ | 1913 #undef __ |
| 1907 | 1914 |
| 1908 | 1915 |
| 1909 } // namespace dart | 1916 } // namespace dart |
| 1910 | 1917 |
| 1911 #endif // defined TARGET_ARCH_MIPS | 1918 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |