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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 InstructionCode code = | 262 InstructionCode code = |
263 opcode | AddressingModeField::encode(addressing_mode); | 263 opcode | AddressingModeField::encode(addressing_mode); |
264 InstructionOperand value_operand = | 264 InstructionOperand value_operand = |
265 g.CanBeImmediate(value) ? g.UseImmediate(value) : g.UseRegister(value); | 265 g.CanBeImmediate(value) ? g.UseImmediate(value) : g.UseRegister(value); |
266 inputs[input_count++] = value_operand; | 266 inputs[input_count++] = value_operand; |
267 Emit(code, 0, static_cast<InstructionOperand*>(nullptr), input_count, | 267 Emit(code, 0, static_cast<InstructionOperand*>(nullptr), input_count, |
268 inputs); | 268 inputs); |
269 } | 269 } |
270 } | 270 } |
271 | 271 |
| 272 // Architecture supports unaligned access, therefore VisitLoad is used instead |
| 273 void InstructionSelector::VisitUnalignedLoad(Node* node) { UNREACHABLE(); } |
| 274 |
| 275 // Architecture supports unaligned access, therefore VisitStore is used instead |
| 276 void InstructionSelector::VisitUnalignedStore(Node* node) { UNREACHABLE(); } |
272 | 277 |
273 void InstructionSelector::VisitCheckedLoad(Node* node) { | 278 void InstructionSelector::VisitCheckedLoad(Node* node) { |
274 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); | 279 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); |
275 X64OperandGenerator g(this); | 280 X64OperandGenerator g(this); |
276 Node* const buffer = node->InputAt(0); | 281 Node* const buffer = node->InputAt(0); |
277 Node* const offset = node->InputAt(1); | 282 Node* const offset = node->InputAt(1); |
278 Node* const length = node->InputAt(2); | 283 Node* const length = node->InputAt(2); |
279 ArchOpcode opcode = kArchNop; | 284 ArchOpcode opcode = kArchNop; |
280 switch (load_rep.representation()) { | 285 switch (load_rep.representation()) { |
281 case MachineRepresentation::kWord8: | 286 case MachineRepresentation::kWord8: |
(...skipping 1854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2136 // static | 2141 // static |
2137 MachineOperatorBuilder::AlignmentRequirements | 2142 MachineOperatorBuilder::AlignmentRequirements |
2138 InstructionSelector::AlignmentRequirements() { | 2143 InstructionSelector::AlignmentRequirements() { |
2139 return MachineOperatorBuilder::AlignmentRequirements:: | 2144 return MachineOperatorBuilder::AlignmentRequirements:: |
2140 FullUnalignedAccessSupport(); | 2145 FullUnalignedAccessSupport(); |
2141 } | 2146 } |
2142 | 2147 |
2143 } // namespace compiler | 2148 } // namespace compiler |
2144 } // namespace internal | 2149 } // namespace internal |
2145 } // namespace v8 | 2150 } // namespace v8 |
OLD | NEW |