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 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 AddressingMode addressing_mode = | 331 AddressingMode addressing_mode = |
332 g.GetEffectiveAddressMemoryOperand(node, inputs, &input_count); | 332 g.GetEffectiveAddressMemoryOperand(node, inputs, &input_count); |
333 InstructionCode code = | 333 InstructionCode code = |
334 opcode | AddressingModeField::encode(addressing_mode); | 334 opcode | AddressingModeField::encode(addressing_mode); |
335 inputs[input_count++] = val; | 335 inputs[input_count++] = val; |
336 Emit(code, 0, static_cast<InstructionOperand*>(nullptr), input_count, | 336 Emit(code, 0, static_cast<InstructionOperand*>(nullptr), input_count, |
337 inputs); | 337 inputs); |
338 } | 338 } |
339 } | 339 } |
340 | 340 |
| 341 // Architecture supports unaligned access, therefore VisitLoad is used instead |
| 342 void InstructionSelector::VisitUnalignedLoad(Node* node) { UNREACHABLE(); } |
| 343 |
| 344 // Architecture supports unaligned access, therefore VisitStore is used instead |
| 345 void InstructionSelector::VisitUnalignedStore(Node* node) { UNREACHABLE(); } |
341 | 346 |
342 void InstructionSelector::VisitCheckedLoad(Node* node) { | 347 void InstructionSelector::VisitCheckedLoad(Node* node) { |
343 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); | 348 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); |
344 IA32OperandGenerator g(this); | 349 IA32OperandGenerator g(this); |
345 Node* const buffer = node->InputAt(0); | 350 Node* const buffer = node->InputAt(0); |
346 Node* const offset = node->InputAt(1); | 351 Node* const offset = node->InputAt(1); |
347 Node* const length = node->InputAt(2); | 352 Node* const length = node->InputAt(2); |
348 ArchOpcode opcode = kArchNop; | 353 ArchOpcode opcode = kArchNop; |
349 switch (load_rep.representation()) { | 354 switch (load_rep.representation()) { |
350 case MachineRepresentation::kWord8: | 355 case MachineRepresentation::kWord8: |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 // static | 1687 // static |
1683 MachineOperatorBuilder::AlignmentRequirements | 1688 MachineOperatorBuilder::AlignmentRequirements |
1684 InstructionSelector::AlignmentRequirements() { | 1689 InstructionSelector::AlignmentRequirements() { |
1685 return MachineOperatorBuilder::AlignmentRequirements:: | 1690 return MachineOperatorBuilder::AlignmentRequirements:: |
1686 FullUnalignedAccessSupport(); | 1691 FullUnalignedAccessSupport(); |
1687 } | 1692 } |
1688 | 1693 |
1689 } // namespace compiler | 1694 } // namespace compiler |
1690 } // namespace internal | 1695 } // namespace internal |
1691 } // namespace v8 | 1696 } // namespace v8 |
OLD | NEW |