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 1041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1052 Node* right = node->InputAt(1); | 1052 Node* right = node->InputAt(1); |
1053 Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node), | 1053 Emit(kMipsFloat64InsertHighWord32, g.DefineSameAsFirst(node), |
1054 g.UseRegister(left), g.UseRegister(right)); | 1054 g.UseRegister(left), g.UseRegister(right)); |
1055 } | 1055 } |
1056 | 1056 |
1057 | 1057 |
1058 // static | 1058 // static |
1059 MachineOperatorBuilder::Flags | 1059 MachineOperatorBuilder::Flags |
1060 InstructionSelector::SupportedMachineOperatorFlags() { | 1060 InstructionSelector::SupportedMachineOperatorFlags() { |
1061 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; | 1061 MachineOperatorBuilder::Flags flags = MachineOperatorBuilder::kNoFlags; |
1062 if (IsMipsArchVariant(kMips32r6)) { | |
1063 flags |= MachineOperatorBuilder::kFloat32Max | | |
1064 MachineOperatorBuilder::kFloat32Min | | |
1065 MachineOperatorBuilder::kFloat64Max | | |
1066 MachineOperatorBuilder::kFloat64Min; | |
1067 } | |
1062 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && | 1068 if ((IsMipsArchVariant(kMips32r2) || IsMipsArchVariant(kMips32r6)) && |
paul.l...
2015/05/15 19:07:48
You also need to provide implementations for the 4
balazs.kilvady
2015/05/18 12:24:00
Done.
| |
1063 IsFp64Mode()) { | 1069 IsFp64Mode()) { |
1064 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1070 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1065 MachineOperatorBuilder::kFloat64RoundTruncate; | 1071 MachineOperatorBuilder::kFloat64RoundTruncate; |
1066 } | 1072 } |
1067 return flags; | 1073 return flags; |
1068 } | 1074 } |
1069 | 1075 |
1070 } // namespace compiler | 1076 } // namespace compiler |
1071 } // namespace internal | 1077 } // namespace internal |
1072 } // namespace v8 | 1078 } // namespace v8 |
OLD | NEW |