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 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2171 // static | 2176 // static |
2172 MachineOperatorBuilder::AlignmentRequirements | 2177 MachineOperatorBuilder::AlignmentRequirements |
2173 InstructionSelector::AlignmentRequirements() { | 2178 InstructionSelector::AlignmentRequirements() { |
2174 return MachineOperatorBuilder::AlignmentRequirements:: | 2179 return MachineOperatorBuilder::AlignmentRequirements:: |
2175 FullUnalignedAccessSupport(); | 2180 FullUnalignedAccessSupport(); |
2176 } | 2181 } |
2177 | 2182 |
2178 } // namespace compiler | 2183 } // namespace compiler |
2179 } // namespace internal | 2184 } // namespace internal |
2180 } // namespace v8 | 2185 } // namespace v8 |
OLD | NEW |