OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/base/adapters.h" | 5 #include "src/base/adapters.h" |
6 #include "src/base/bits.h" | 6 #include "src/base/bits.h" |
7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
10 | 10 |
(...skipping 962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 g.UseRegister(left), g.UseRegister(right)); | 973 g.UseRegister(left), g.UseRegister(right)); |
974 } | 974 } |
975 | 975 |
976 | 976 |
977 // static | 977 // static |
978 MachineOperatorBuilder::Flags | 978 MachineOperatorBuilder::Flags |
979 InstructionSelector::SupportedMachineOperatorFlags() { | 979 InstructionSelector::SupportedMachineOperatorFlags() { |
980 MachineOperatorBuilder::Flags flags = | 980 MachineOperatorBuilder::Flags flags = |
981 MachineOperatorBuilder::kFloat32Abs | MachineOperatorBuilder::kFloat64Abs; | 981 MachineOperatorBuilder::kFloat32Abs | MachineOperatorBuilder::kFloat64Abs; |
982 | 982 |
983 if (IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) { | 983 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
| 984 IsFp64Mode()) { |
984 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 985 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
985 MachineOperatorBuilder::kFloat64RoundTruncate; | 986 MachineOperatorBuilder::kFloat64RoundTruncate; |
986 } | 987 } |
987 return flags; | 988 return flags; |
988 } | 989 } |
989 | 990 |
990 } // namespace compiler | 991 } // namespace compiler |
991 } // namespace internal | 992 } // namespace internal |
992 } // namespace v8 | 993 } // namespace v8 |
OLD | NEW |