Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: src/compiler/arm64/instruction-selector-arm64.cc

Issue 2122853002: Implement UnaligedLoad and UnaligedStore turbofan operators. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 2033 matching lines...) Expand 10 before | Expand all | Expand 10 after
2678 // static 2683 // static
2679 MachineOperatorBuilder::AlignmentRequirements 2684 MachineOperatorBuilder::AlignmentRequirements
2680 InstructionSelector::AlignmentRequirements() { 2685 InstructionSelector::AlignmentRequirements() {
2681 return MachineOperatorBuilder::AlignmentRequirements:: 2686 return MachineOperatorBuilder::AlignmentRequirements::
2682 FullUnalignedAccessSupport(); 2687 FullUnalignedAccessSupport();
2683 } 2688 }
2684 2689
2685 } // namespace compiler 2690 } // namespace compiler
2686 } // namespace internal 2691 } // namespace internal
2687 } // namespace v8 2692 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698