| 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/base/adapters.h" | 7 #include "src/base/adapters.h" |
| 8 #include "src/compiler/instruction-selector-impl.h" | 8 #include "src/compiler/instruction-selector-impl.h" |
| 9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/node-properties.h" | 10 #include "src/compiler/node-properties.h" |
| (...skipping 2035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2046 | 2046 |
| 2047 | 2047 |
| 2048 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { | 2048 void InstructionSelector::VisitFloat64InsertHighWord32(Node* node) { |
| 2049 X64OperandGenerator g(this); | 2049 X64OperandGenerator g(this); |
| 2050 Node* left = node->InputAt(0); | 2050 Node* left = node->InputAt(0); |
| 2051 Node* right = node->InputAt(1); | 2051 Node* right = node->InputAt(1); |
| 2052 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), | 2052 Emit(kSSEFloat64InsertHighWord32, g.DefineSameAsFirst(node), |
| 2053 g.UseRegister(left), g.Use(right)); | 2053 g.UseRegister(left), g.Use(right)); |
| 2054 } | 2054 } |
| 2055 | 2055 |
| 2056 void InstructionSelector::VisitFloat64SilenceNaN(Node* node) { |
| 2057 X64OperandGenerator g(this); |
| 2058 Emit(kSSEFloat64SilenceNaN, g.DefineSameAsFirst(node), |
| 2059 g.UseRegister(node->InputAt(0))); |
| 2060 } |
| 2061 |
| 2056 void InstructionSelector::VisitAtomicLoad(Node* node) { | 2062 void InstructionSelector::VisitAtomicLoad(Node* node) { |
| 2057 LoadRepresentation load_rep = LoadRepresentationOf(node->op()); | 2063 LoadRepresentation load_rep = LoadRepresentationOf(node->op()); |
| 2058 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 || | 2064 DCHECK(load_rep.representation() == MachineRepresentation::kWord8 || |
| 2059 load_rep.representation() == MachineRepresentation::kWord16 || | 2065 load_rep.representation() == MachineRepresentation::kWord16 || |
| 2060 load_rep.representation() == MachineRepresentation::kWord32); | 2066 load_rep.representation() == MachineRepresentation::kWord32); |
| 2061 USE(load_rep); | 2067 USE(load_rep); |
| 2062 VisitLoad(node); | 2068 VisitLoad(node); |
| 2063 } | 2069 } |
| 2064 | 2070 |
| 2065 void InstructionSelector::VisitAtomicStore(Node* node) { | 2071 void InstructionSelector::VisitAtomicStore(Node* node) { |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2130 // static | 2136 // static |
| 2131 MachineOperatorBuilder::AlignmentRequirements | 2137 MachineOperatorBuilder::AlignmentRequirements |
| 2132 InstructionSelector::AlignmentRequirements() { | 2138 InstructionSelector::AlignmentRequirements() { |
| 2133 return MachineOperatorBuilder::AlignmentRequirements:: | 2139 return MachineOperatorBuilder::AlignmentRequirements:: |
| 2134 FullUnalignedAccessSupport(); | 2140 FullUnalignedAccessSupport(); |
| 2135 } | 2141 } |
| 2136 | 2142 |
| 2137 } // namespace compiler | 2143 } // namespace compiler |
| 2138 } // namespace internal | 2144 } // namespace internal |
| 2139 } // namespace v8 | 2145 } // namespace v8 |
| OLD | NEW |