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/base/bits.h" | 6 #include "src/base/bits.h" |
7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
10 | 10 |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
487 input_count = 4; | 487 input_count = 4; |
488 } else { | 488 } else { |
489 input_count = 3; | 489 input_count = 3; |
490 inputs[2] = g.UseRegister(index); | 490 inputs[2] = g.UseRegister(index); |
491 opcode |= AddressingModeField::encode(kMode_Offset_RR); | 491 opcode |= AddressingModeField::encode(kMode_Offset_RR); |
492 } | 492 } |
493 Emit(opcode, 0, nullptr, input_count, inputs); | 493 Emit(opcode, 0, nullptr, input_count, inputs); |
494 } | 494 } |
495 } | 495 } |
496 | 496 |
| 497 // Architecture supports unaligned access, therefore VisitLoad is used instead |
| 498 void InstructionSelector::VisitUnalignedLoad(Node* node) { UNREACHABLE(); } |
| 499 |
| 500 // Architecture supports unaligned access, therefore VisitStore is used instead |
| 501 void InstructionSelector::VisitUnalignedStore(Node* node) { UNREACHABLE(); } |
497 | 502 |
498 void InstructionSelector::VisitCheckedLoad(Node* node) { | 503 void InstructionSelector::VisitCheckedLoad(Node* node) { |
499 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); | 504 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); |
500 ArmOperandGenerator g(this); | 505 ArmOperandGenerator g(this); |
501 Node* const buffer = node->InputAt(0); | 506 Node* const buffer = node->InputAt(0); |
502 Node* const offset = node->InputAt(1); | 507 Node* const offset = node->InputAt(1); |
503 Node* const length = node->InputAt(2); | 508 Node* const length = node->InputAt(2); |
504 ArchOpcode opcode = kArchNop; | 509 ArchOpcode opcode = kArchNop; |
505 switch (load_rep.representation()) { | 510 switch (load_rep.representation()) { |
506 case MachineRepresentation::kWord8: | 511 case MachineRepresentation::kWord8: |
(...skipping 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2004 // static | 2009 // static |
2005 MachineOperatorBuilder::AlignmentRequirements | 2010 MachineOperatorBuilder::AlignmentRequirements |
2006 InstructionSelector::AlignmentRequirements() { | 2011 InstructionSelector::AlignmentRequirements() { |
2007 return MachineOperatorBuilder::AlignmentRequirements:: | 2012 return MachineOperatorBuilder::AlignmentRequirements:: |
2008 FullUnalignedAccessSupport(); | 2013 FullUnalignedAccessSupport(); |
2009 } | 2014 } |
2010 | 2015 |
2011 } // namespace compiler | 2016 } // namespace compiler |
2012 } // namespace internal | 2017 } // namespace internal |
2013 } // namespace v8 | 2018 } // namespace v8 |
OLD | NEW |