| 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 #include "src/ppc/frames-ppc.h" | 9 #include "src/ppc/frames-ppc.h" |
| 10 | 10 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 PPCOperandGenerator g(this); | 241 PPCOperandGenerator g(this); |
| 242 Node* base = node->InputAt(0); | 242 Node* base = node->InputAt(0); |
| 243 Node* offset = node->InputAt(1); | 243 Node* offset = node->InputAt(1); |
| 244 Node* value = node->InputAt(2); | 244 Node* value = node->InputAt(2); |
| 245 | 245 |
| 246 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); | 246 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); |
| 247 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); | 247 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); |
| 248 MachineRepresentation rep = store_rep.representation(); | 248 MachineRepresentation rep = store_rep.representation(); |
| 249 | 249 |
| 250 if (write_barrier_kind != kNoWriteBarrier) { | 250 if (write_barrier_kind != kNoWriteBarrier) { |
| 251 DCHECK_EQ(MachineRepresentation::kTagged, rep); | 251 DCHECK(CanBeTaggedPointer(rep)); |
| 252 AddressingMode addressing_mode; | 252 AddressingMode addressing_mode; |
| 253 InstructionOperand inputs[3]; | 253 InstructionOperand inputs[3]; |
| 254 size_t input_count = 0; | 254 size_t input_count = 0; |
| 255 inputs[input_count++] = g.UseUniqueRegister(base); | 255 inputs[input_count++] = g.UseUniqueRegister(base); |
| 256 // OutOfLineRecordWrite uses the offset in an 'add' instruction as well as | 256 // OutOfLineRecordWrite uses the offset in an 'add' instruction as well as |
| 257 // for the store itself, so we must check compatibility with both. | 257 // for the store itself, so we must check compatibility with both. |
| 258 if (g.CanBeImmediate(offset, kInt16Imm) | 258 if (g.CanBeImmediate(offset, kInt16Imm) |
| 259 #if V8_TARGET_ARCH_PPC64 | 259 #if V8_TARGET_ARCH_PPC64 |
| 260 && g.CanBeImmediate(offset, kInt16Imm_4ByteAligned) | 260 && g.CanBeImmediate(offset, kInt16Imm_4ByteAligned) |
| 261 #endif | 261 #endif |
| (...skipping 1855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2117 // static | 2117 // static |
| 2118 MachineOperatorBuilder::AlignmentRequirements | 2118 MachineOperatorBuilder::AlignmentRequirements |
| 2119 InstructionSelector::AlignmentRequirements() { | 2119 InstructionSelector::AlignmentRequirements() { |
| 2120 return MachineOperatorBuilder::AlignmentRequirements:: | 2120 return MachineOperatorBuilder::AlignmentRequirements:: |
| 2121 FullUnalignedAccessSupport(); | 2121 FullUnalignedAccessSupport(); |
| 2122 } | 2122 } |
| 2123 | 2123 |
| 2124 } // namespace compiler | 2124 } // namespace compiler |
| 2125 } // namespace internal | 2125 } // namespace internal |
| 2126 } // namespace v8 | 2126 } // namespace v8 |
| OLD | NEW |