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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 S390OperandGenerator g(this); | 594 S390OperandGenerator g(this); |
595 Node* base = node->InputAt(0); | 595 Node* base = node->InputAt(0); |
596 Node* offset = node->InputAt(1); | 596 Node* offset = node->InputAt(1); |
597 Node* value = node->InputAt(2); | 597 Node* value = node->InputAt(2); |
598 | 598 |
599 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); | 599 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); |
600 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); | 600 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); |
601 MachineRepresentation rep = store_rep.representation(); | 601 MachineRepresentation rep = store_rep.representation(); |
602 | 602 |
603 if (write_barrier_kind != kNoWriteBarrier) { | 603 if (write_barrier_kind != kNoWriteBarrier) { |
604 DCHECK_EQ(MachineRepresentation::kTagged, rep); | 604 DCHECK(CanBeTaggedPointer(rep)); |
605 AddressingMode addressing_mode; | 605 AddressingMode addressing_mode; |
606 InstructionOperand inputs[3]; | 606 InstructionOperand inputs[3]; |
607 size_t input_count = 0; | 607 size_t input_count = 0; |
608 inputs[input_count++] = g.UseUniqueRegister(base); | 608 inputs[input_count++] = g.UseUniqueRegister(base); |
609 // OutOfLineRecordWrite uses the offset in an 'AddP' instruction as well as | 609 // OutOfLineRecordWrite uses the offset in an 'AddP' instruction as well as |
610 // for the store itself, so we must check compatibility with both. | 610 // for the store itself, so we must check compatibility with both. |
611 if (g.CanBeImmediate(offset, OperandMode::kInt20Imm)) { | 611 if (g.CanBeImmediate(offset, OperandMode::kInt20Imm)) { |
612 inputs[input_count++] = g.UseImmediate(offset); | 612 inputs[input_count++] = g.UseImmediate(offset); |
613 addressing_mode = kMode_MRI; | 613 addressing_mode = kMode_MRI; |
614 } else { | 614 } else { |
(...skipping 1692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2307 // static | 2307 // static |
2308 MachineOperatorBuilder::AlignmentRequirements | 2308 MachineOperatorBuilder::AlignmentRequirements |
2309 InstructionSelector::AlignmentRequirements() { | 2309 InstructionSelector::AlignmentRequirements() { |
2310 return MachineOperatorBuilder::AlignmentRequirements:: | 2310 return MachineOperatorBuilder::AlignmentRequirements:: |
2311 FullUnalignedAccessSupport(); | 2311 FullUnalignedAccessSupport(); |
2312 } | 2312 } |
2313 | 2313 |
2314 } // namespace compiler | 2314 } // namespace compiler |
2315 } // namespace internal | 2315 } // namespace internal |
2316 } // namespace v8 | 2316 } // namespace v8 |
OLD | NEW |