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/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 #include "src/compiler/node-properties.h" | 8 #include "src/compiler/node-properties.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 AddressingMode addressing_mode = | 292 AddressingMode addressing_mode = |
293 g.GetEffectiveAddressMemoryOperand(node, inputs, &input_count); | 293 g.GetEffectiveAddressMemoryOperand(node, inputs, &input_count); |
294 InstructionCode code = | 294 InstructionCode code = |
295 opcode | AddressingModeField::encode(addressing_mode); | 295 opcode | AddressingModeField::encode(addressing_mode); |
296 inputs[input_count++] = val; | 296 inputs[input_count++] = val; |
297 Emit(code, 0, static_cast<InstructionOperand*>(nullptr), input_count, | 297 Emit(code, 0, static_cast<InstructionOperand*>(nullptr), input_count, |
298 inputs); | 298 inputs); |
299 } | 299 } |
300 } | 300 } |
301 | 301 |
| 302 // Architecture supports unaligned access, therefore VisitLoad is used instead |
| 303 void InstructionSelector::VisitUnalignedLoad(Node* node) { UNREACHABLE(); } |
| 304 |
| 305 // Architecture supports unaligned access, therefore VisitStore is used instead |
| 306 void InstructionSelector::VisitUnalignedStore(Node* node) { UNREACHABLE(); } |
302 | 307 |
303 void InstructionSelector::VisitCheckedLoad(Node* node) { | 308 void InstructionSelector::VisitCheckedLoad(Node* node) { |
304 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); | 309 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); |
305 X87OperandGenerator g(this); | 310 X87OperandGenerator g(this); |
306 Node* const buffer = node->InputAt(0); | 311 Node* const buffer = node->InputAt(0); |
307 Node* const offset = node->InputAt(1); | 312 Node* const offset = node->InputAt(1); |
308 Node* const length = node->InputAt(2); | 313 Node* const length = node->InputAt(2); |
309 ArchOpcode opcode = kArchNop; | 314 ArchOpcode opcode = kArchNop; |
310 switch (load_rep.representation()) { | 315 switch (load_rep.representation()) { |
311 case MachineRepresentation::kWord8: | 316 case MachineRepresentation::kWord8: |
(...skipping 1397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1709 // static | 1714 // static |
1710 MachineOperatorBuilder::AlignmentRequirements | 1715 MachineOperatorBuilder::AlignmentRequirements |
1711 InstructionSelector::AlignmentRequirements() { | 1716 InstructionSelector::AlignmentRequirements() { |
1712 return MachineOperatorBuilder::AlignmentRequirements:: | 1717 return MachineOperatorBuilder::AlignmentRequirements:: |
1713 FullUnalignedAccessSupport(); | 1718 FullUnalignedAccessSupport(); |
1714 } | 1719 } |
1715 | 1720 |
1716 } // namespace compiler | 1721 } // namespace compiler |
1717 } // namespace internal | 1722 } // namespace internal |
1718 } // namespace v8 | 1723 } // namespace v8 |
OLD | NEW |