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/compiler/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 1053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1064 | 1064 |
1065 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { | 1065 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { |
1066 FlagsContinuation cont(kUnsignedGreaterThanOrEqual, node); | 1066 FlagsContinuation cont(kUnsignedGreaterThanOrEqual, node); |
1067 VisitFloat64Compare(this, node, &cont); | 1067 VisitFloat64Compare(this, node, &cont); |
1068 } | 1068 } |
1069 | 1069 |
1070 | 1070 |
1071 // static | 1071 // static |
1072 MachineOperatorBuilder::Flags | 1072 MachineOperatorBuilder::Flags |
1073 InstructionSelector::SupportedMachineOperatorFlags() { | 1073 InstructionSelector::SupportedMachineOperatorFlags() { |
| 1074 MachineOperatorBuilder::Flags flags = |
| 1075 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1074 if (CpuFeatures::IsSupported(SSE4_1)) { | 1076 if (CpuFeatures::IsSupported(SSE4_1)) { |
1075 return MachineOperatorBuilder::kFloat64Floor | | 1077 flags |= MachineOperatorBuilder::kFloat64Floor | |
1076 MachineOperatorBuilder::kFloat64Ceil | | 1078 MachineOperatorBuilder::kFloat64Ceil | |
1077 MachineOperatorBuilder::kFloat64RoundTruncate | | 1079 MachineOperatorBuilder::kFloat64RoundTruncate; |
1078 MachineOperatorBuilder::kWord32ShiftIsSafe; | |
1079 } | 1080 } |
1080 return MachineOperatorBuilder::Flag::kNoFlags; | 1081 return flags; |
1081 } | 1082 } |
1082 | 1083 |
1083 } // namespace compiler | 1084 } // namespace compiler |
1084 } // namespace internal | 1085 } // namespace internal |
1085 } // namespace v8 | 1086 } // namespace v8 |
OLD | NEW |