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

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: Nits. Fixes some errors 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
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/code-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698