| 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 1582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1593 | 1593 |
| 1594 | 1594 |
| 1595 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { | 1595 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { |
| 1596 IA32OperandGenerator g(this); | 1596 IA32OperandGenerator g(this); |
| 1597 Node* left = node->InputAt(0); | 1597 Node* left = node->InputAt(0); |
| 1598 Node* right = node->InputAt(1); | 1598 Node* right = node->InputAt(1); |
| 1599 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), | 1599 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), |
| 1600 g.UseRegister(left), g.Use(right)); | 1600 g.UseRegister(left), g.Use(right)); |
| 1601 } | 1601 } |
| 1602 | 1602 |
| 1603 void InstructionSelector::VisitFloat64SilenceNaN(Node* node) { |
| 1604 IA32OperandGenerator g(this); |
| 1605 Emit(kSSEFloat64SilenceNaN, g.DefineSameAsFirst(node), |
| 1606 g.UseRegister(node->InputAt(0))); |
| 1607 } |
| 1608 |
| 1603 void InstructionSelector::VisitAtomicLoad(Node* node) { | 1609 void InstructionSelector::VisitAtomicLoad(Node* node) { |
| 1604 LoadRepresentation load_rep = LoadRepresentationOf(node->op()); | 1610 LoadRepresentation load_rep = LoadRepresentationOf(node->op()); |
| 1605 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 || | 1611 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 || |
| 1606 load_rep.representation() == MachineRepresentation::kWord16 || | 1612 load_rep.representation() == MachineRepresentation::kWord16 || |
| 1607 load_rep.representation() == MachineRepresentation::kWord32); | 1613 load_rep.representation() == MachineRepresentation::kWord32); |
| 1608 USE(load_rep); | 1614 USE(load_rep); |
| 1609 VisitLoad(node); | 1615 VisitLoad(node); |
| 1610 } | 1616 } |
| 1611 | 1617 |
| 1612 void InstructionSelector::VisitAtomicStore(Node* node) { | 1618 void InstructionSelector::VisitAtomicStore(Node* node) { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 // static | 1682 // static |
| 1677 MachineOperatorBuilder::AlignmentRequirements | 1683 MachineOperatorBuilder::AlignmentRequirements |
| 1678 InstructionSelector::AlignmentRequirements() { | 1684 InstructionSelector::AlignmentRequirements() { |
| 1679 return MachineOperatorBuilder::AlignmentRequirements:: | 1685 return MachineOperatorBuilder::AlignmentRequirements:: |
| 1680 FullUnalignedAccessSupport(); | 1686 FullUnalignedAccessSupport(); |
| 1681 } | 1687 } |
| 1682 | 1688 |
| 1683 } // namespace compiler | 1689 } // namespace compiler |
| 1684 } // namespace internal | 1690 } // namespace internal |
| 1685 } // namespace v8 | 1691 } // namespace v8 |
| OLD | NEW |