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/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 1288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1299 Node* right = node->InputAt(1); | 1299 Node* right = node->InputAt(1); |
1300 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), | 1300 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), |
1301 g.UseRegister(left), g.Use(right)); | 1301 g.UseRegister(left), g.Use(right)); |
1302 } | 1302 } |
1303 | 1303 |
1304 | 1304 |
1305 // static | 1305 // static |
1306 MachineOperatorBuilder::Flags | 1306 MachineOperatorBuilder::Flags |
1307 InstructionSelector::SupportedMachineOperatorFlags() { | 1307 InstructionSelector::SupportedMachineOperatorFlags() { |
1308 MachineOperatorBuilder::Flags flags = | 1308 MachineOperatorBuilder::Flags flags = |
1309 MachineOperatorBuilder::kFloat32Abs | | |
1310 MachineOperatorBuilder::kFloat32Max | | 1309 MachineOperatorBuilder::kFloat32Max | |
1311 MachineOperatorBuilder::kFloat32Min | | 1310 MachineOperatorBuilder::kFloat32Min | |
1312 MachineOperatorBuilder::kFloat64Abs | | |
1313 MachineOperatorBuilder::kFloat64Max | | 1311 MachineOperatorBuilder::kFloat64Max | |
1314 MachineOperatorBuilder::kFloat64Min | | 1312 MachineOperatorBuilder::kFloat64Min | |
1315 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1313 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1316 if (CpuFeatures::IsSupported(SSE4_1)) { | 1314 if (CpuFeatures::IsSupported(SSE4_1)) { |
1317 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1315 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1318 MachineOperatorBuilder::kFloat64RoundTruncate; | 1316 MachineOperatorBuilder::kFloat64RoundTruncate; |
1319 } | 1317 } |
1320 return flags; | 1318 return flags; |
1321 } | 1319 } |
1322 | 1320 |
1323 } // namespace compiler | 1321 } // namespace compiler |
1324 } // namespace internal | 1322 } // namespace internal |
1325 } // namespace v8 | 1323 } // namespace v8 |
OLD | NEW |