| 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 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1585 | 1585 |
| 1586 | 1586 |
| 1587 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { | 1587 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { |
| 1588 IA32OperandGenerator g(this); | 1588 IA32OperandGenerator g(this); |
| 1589 Node* left = node->InputAt(0); | 1589 Node* left = node->InputAt(0); |
| 1590 Node* right = node->InputAt(1); | 1590 Node* right = node->InputAt(1); |
| 1591 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), | 1591 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), |
| 1592 g.UseRegister(left), g.Use(right)); | 1592 g.UseRegister(left), g.Use(right)); |
| 1593 } | 1593 } |
| 1594 | 1594 |
| 1595 void InstructionSelector::VisitFloat64SilenceNaN(Node* node) { |
| 1596 IA32OperandGenerator g(this); |
| 1597 Emit(kSSEFloat64SilenceNaN, g.DefineSameAsFirst(node), |
| 1598 g.UseRegister(node->InputAt(0))); |
| 1599 } |
| 1600 |
| 1595 void InstructionSelector::VisitAtomicLoad(Node* node) { | 1601 void InstructionSelector::VisitAtomicLoad(Node* node) { |
| 1596 LoadRepresentation load_rep = LoadRepresentationOf(node->op()); | 1602 LoadRepresentation load_rep = LoadRepresentationOf(node->op()); |
| 1597 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 || | 1603 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 || |
| 1598 load_rep.representation() == MachineRepresentation::kWord16 || | 1604 load_rep.representation() == MachineRepresentation::kWord16 || |
| 1599 load_rep.representation() == MachineRepresentation::kWord32); | 1605 load_rep.representation() == MachineRepresentation::kWord32); |
| 1600 USE(load_rep); | 1606 USE(load_rep); |
| 1601 VisitLoad(node); | 1607 VisitLoad(node); |
| 1602 } | 1608 } |
| 1603 | 1609 |
| 1604 void InstructionSelector::VisitAtomicStore(Node* node) { | 1610 void InstructionSelector::VisitAtomicStore(Node* node) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1668 // static | 1674 // static |
| 1669 MachineOperatorBuilder::AlignmentRequirements | 1675 MachineOperatorBuilder::AlignmentRequirements |
| 1670 InstructionSelector::AlignmentRequirements() { | 1676 InstructionSelector::AlignmentRequirements() { |
| 1671 return MachineOperatorBuilder::AlignmentRequirements:: | 1677 return MachineOperatorBuilder::AlignmentRequirements:: |
| 1672 FullUnalignedAccessSupport(); | 1678 FullUnalignedAccessSupport(); |
| 1673 } | 1679 } |
| 1674 | 1680 |
| 1675 } // namespace compiler | 1681 } // namespace compiler |
| 1676 } // namespace internal | 1682 } // namespace internal |
| 1677 } // namespace v8 | 1683 } // namespace v8 |
| OLD | NEW |