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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 Node* base = node->InputAt(0); | 191 Node* base = node->InputAt(0); |
192 Node* index = node->InputAt(1); | 192 Node* index = node->InputAt(1); |
193 Node* value = node->InputAt(2); | 193 Node* value = node->InputAt(2); |
194 | 194 |
195 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); | 195 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); |
196 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); | 196 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); |
197 MachineRepresentation rep = store_rep.representation(); | 197 MachineRepresentation rep = store_rep.representation(); |
198 | 198 |
199 // TODO(mips): I guess this could be done in a better way. | 199 // TODO(mips): I guess this could be done in a better way. |
200 if (write_barrier_kind != kNoWriteBarrier) { | 200 if (write_barrier_kind != kNoWriteBarrier) { |
201 DCHECK_EQ(MachineRepresentation::kTagged, rep); | 201 DCHECK(rep == MachineRepresentation::kTagged || |
| 202 rep == MachineRepresentation::kTaggedPointer); |
202 InstructionOperand inputs[3]; | 203 InstructionOperand inputs[3]; |
203 size_t input_count = 0; | 204 size_t input_count = 0; |
204 inputs[input_count++] = g.UseUniqueRegister(base); | 205 inputs[input_count++] = g.UseUniqueRegister(base); |
205 inputs[input_count++] = g.UseUniqueRegister(index); | 206 inputs[input_count++] = g.UseUniqueRegister(index); |
206 inputs[input_count++] = g.UseUniqueRegister(value); | 207 inputs[input_count++] = g.UseUniqueRegister(value); |
207 RecordWriteMode record_write_mode = RecordWriteMode::kValueIsAny; | 208 RecordWriteMode record_write_mode = RecordWriteMode::kValueIsAny; |
208 switch (write_barrier_kind) { | 209 switch (write_barrier_kind) { |
209 case kNoWriteBarrier: | 210 case kNoWriteBarrier: |
210 UNREACHABLE(); | 211 UNREACHABLE(); |
211 break; | 212 break; |
(...skipping 1436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1648 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || | 1649 DCHECK(IsMipsArchVariant(kLoongson) || IsMipsArchVariant(kMips32r1) || |
1649 IsMipsArchVariant(kMips32r2)); | 1650 IsMipsArchVariant(kMips32r2)); |
1650 return MachineOperatorBuilder::AlignmentRequirements:: | 1651 return MachineOperatorBuilder::AlignmentRequirements:: |
1651 NoUnalignedAccessSupport(); | 1652 NoUnalignedAccessSupport(); |
1652 } | 1653 } |
1653 } | 1654 } |
1654 | 1655 |
1655 } // namespace compiler | 1656 } // namespace compiler |
1656 } // namespace internal | 1657 } // namespace internal |
1657 } // namespace v8 | 1658 } // namespace v8 |
OLD | NEW |