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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
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 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1367 | 1367 |
1368 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { | 1368 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { |
1369 FlagsContinuation cont(kUnsignedGreaterThanOrEqual, node); | 1369 FlagsContinuation cont(kUnsignedGreaterThanOrEqual, node); |
1370 VisitFloat64Compare(this, node, &cont); | 1370 VisitFloat64Compare(this, node, &cont); |
1371 } | 1371 } |
1372 | 1372 |
1373 | 1373 |
1374 // static | 1374 // static |
1375 MachineOperatorBuilder::Flags | 1375 MachineOperatorBuilder::Flags |
1376 InstructionSelector::SupportedMachineOperatorFlags() { | 1376 InstructionSelector::SupportedMachineOperatorFlags() { |
| 1377 MachineOperatorBuilder::Flags flags = |
| 1378 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1377 if (CpuFeatures::IsSupported(SSE4_1)) { | 1379 if (CpuFeatures::IsSupported(SSE4_1)) { |
1378 return MachineOperatorBuilder::kFloat64Floor | | 1380 flags |= MachineOperatorBuilder::kFloat64Floor | |
1379 MachineOperatorBuilder::kFloat64Ceil | | 1381 MachineOperatorBuilder::kFloat64Ceil | |
1380 MachineOperatorBuilder::kFloat64RoundTruncate | | 1382 MachineOperatorBuilder::kFloat64RoundTruncate; |
1381 MachineOperatorBuilder::kWord32ShiftIsSafe; | |
1382 } | 1383 } |
1383 return MachineOperatorBuilder::kNoFlags; | 1384 return flags; |
1384 } | 1385 } |
1385 | 1386 |
1386 } // namespace compiler | 1387 } // namespace compiler |
1387 } // namespace internal | 1388 } // namespace internal |
1388 } // namespace v8 | 1389 } // namespace v8 |
OLD | NEW |