OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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 #include "src/s390/frames-s390.h" | 9 #include "src/s390/frames-s390.h" |
10 | 10 |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 } else if (g.CanBeImmediate(base, mode)) { | 308 } else if (g.CanBeImmediate(base, mode)) { |
309 Emit(opcode | AddressingModeField::encode(kMode_MRI), g.NoOutput(), | 309 Emit(opcode | AddressingModeField::encode(kMode_MRI), g.NoOutput(), |
310 g.UseRegister(offset), g.UseImmediate(base), g.UseRegister(value)); | 310 g.UseRegister(offset), g.UseImmediate(base), g.UseRegister(value)); |
311 } else { | 311 } else { |
312 Emit(opcode | AddressingModeField::encode(kMode_MRR), g.NoOutput(), | 312 Emit(opcode | AddressingModeField::encode(kMode_MRR), g.NoOutput(), |
313 g.UseRegister(base), g.UseRegister(offset), g.UseRegister(value)); | 313 g.UseRegister(base), g.UseRegister(offset), g.UseRegister(value)); |
314 } | 314 } |
315 } | 315 } |
316 } | 316 } |
317 | 317 |
| 318 // Architecture supports unaligned access, therefore VisitLoad is used instead |
| 319 void InstructionSelector::VisitUnalignedLoad(Node* node) { UNREACHABLE(); } |
| 320 |
| 321 // Architecture supports unaligned access, therefore VisitStore is used instead |
| 322 void InstructionSelector::VisitUnalignedStore(Node* node) { UNREACHABLE(); } |
| 323 |
318 void InstructionSelector::VisitCheckedLoad(Node* node) { | 324 void InstructionSelector::VisitCheckedLoad(Node* node) { |
319 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); | 325 CheckedLoadRepresentation load_rep = CheckedLoadRepresentationOf(node->op()); |
320 S390OperandGenerator g(this); | 326 S390OperandGenerator g(this); |
321 Node* const base = node->InputAt(0); | 327 Node* const base = node->InputAt(0); |
322 Node* const offset = node->InputAt(1); | 328 Node* const offset = node->InputAt(1); |
323 Node* const length = node->InputAt(2); | 329 Node* const length = node->InputAt(2); |
324 ArchOpcode opcode = kArchNop; | 330 ArchOpcode opcode = kArchNop; |
325 switch (load_rep.representation()) { | 331 switch (load_rep.representation()) { |
326 case MachineRepresentation::kWord8: | 332 case MachineRepresentation::kWord8: |
327 opcode = load_rep.IsSigned() ? kCheckedLoadInt8 : kCheckedLoadUint8; | 333 opcode = load_rep.IsSigned() ? kCheckedLoadInt8 : kCheckedLoadUint8; |
(...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1760 MachineOperatorBuilder::kFloat32RoundTruncate | | 1766 MachineOperatorBuilder::kFloat32RoundTruncate | |
1761 MachineOperatorBuilder::kFloat64RoundTruncate | | 1767 MachineOperatorBuilder::kFloat64RoundTruncate | |
1762 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1768 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1763 MachineOperatorBuilder::kWord32Popcnt | | 1769 MachineOperatorBuilder::kWord32Popcnt | |
1764 MachineOperatorBuilder::kWord64Popcnt; | 1770 MachineOperatorBuilder::kWord64Popcnt; |
1765 } | 1771 } |
1766 | 1772 |
1767 } // namespace compiler | 1773 } // namespace compiler |
1768 } // namespace internal | 1774 } // namespace internal |
1769 } // namespace v8 | 1775 } // namespace v8 |
OLD | NEW |