| 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/compiler/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
| 6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
| 7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
| 8 | 8 |
| 9 namespace v8 { | 9 namespace v8 { |
| 10 namespace internal { | 10 namespace internal { |
| (...skipping 614 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 625 } else { | 625 } else { |
| 626 input_count = 3; | 626 input_count = 3; |
| 627 inputs[2] = g.UseRegister(index); | 627 inputs[2] = g.UseRegister(index); |
| 628 opcode |= AddressingModeField::encode(kMode_MRR); | 628 opcode |= AddressingModeField::encode(kMode_MRR); |
| 629 } | 629 } |
| 630 | 630 |
| 631 Emit(opcode, 0, nullptr, input_count, inputs); | 631 Emit(opcode, 0, nullptr, input_count, inputs); |
| 632 } | 632 } |
| 633 } | 633 } |
| 634 | 634 |
| 635 // Architecture supports unaligned access, therefore VisitLoad is used instead |
| 636 void InstructionSelector::VisitUnalignedLoad(Node* node) { UNREACHABLE(); } |
| 637 |
| 638 // Architecture supports unaligned access, therefore VisitStore is used instead |
| 639 void InstructionSelector::VisitUnalignedStore(Node* node) { UNREACHABLE(); } |
| 635 | 640 |
| 636 void InstructionSelector::VisitCheckedLoad(Node* node) { | 641 void InstructionSelector::VisitCheckedLoad(Node* node) { |
| 637 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); | 642 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); |
| 638 Arm64OperandGenerator g(this); | 643 Arm64OperandGenerator g(this); |
| 639 Node* const buffer = node->InputAt(0); | 644 Node* const buffer = node->InputAt(0); |
| 640 Node* const offset = node->InputAt(1); | 645 Node* const offset = node->InputAt(1); |
| 641 Node* const length = node->InputAt(2); | 646 Node* const length = node->InputAt(2); |
| 642 ArchOpcode opcode = kArchNop; | 647 ArchOpcode opcode = kArchNop; |
| 643 switch (load_rep.representation()) { | 648 switch (load_rep.representation()) { |
| 644 case MachineRepresentation::kWord8: | 649 case MachineRepresentation::kWord8: |
| (...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2709 // static | 2714 // static |
| 2710 MachineOperatorBuilder::AlignmentRequirements | 2715 MachineOperatorBuilder::AlignmentRequirements |
| 2711 InstructionSelector::AlignmentRequirements() { | 2716 InstructionSelector::AlignmentRequirements() { |
| 2712 return MachineOperatorBuilder::AlignmentRequirements:: | 2717 return MachineOperatorBuilder::AlignmentRequirements:: |
| 2713 FullUnalignedAccessSupport(); | 2718 FullUnalignedAccessSupport(); |
| 2714 } | 2719 } |
| 2715 | 2720 |
| 2716 } // namespace compiler | 2721 } // namespace compiler |
| 2717 } // namespace internal | 2722 } // namespace internal |
| 2718 } // namespace v8 | 2723 } // namespace v8 |
| OLD | NEW |