Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: src/compiler/ppc/instruction-selector-ppc.cc

Issue 2662223003: PPC/s390: [Turbofan]: Use new MachineTypes in access-builder. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698