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

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

Issue 2293603003: X87: [Turbofan]: Use new MachineTypes in access-builder. (Closed)
Patch Set: Created 4 years, 3 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 | no next file » | 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 9
10 namespace v8 { 10 namespace v8 {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 X87OperandGenerator g(this); 216 X87OperandGenerator g(this);
217 Node* base = node->InputAt(0); 217 Node* base = node->InputAt(0);
218 Node* index = node->InputAt(1); 218 Node* index = node->InputAt(1);
219 Node* value = node->InputAt(2); 219 Node* value = node->InputAt(2);
220 220
221 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); 221 StoreRepresentation store_rep = StoreRepresentationOf(node->op());
222 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); 222 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind();
223 MachineRepresentation rep = store_rep.representation(); 223 MachineRepresentation rep = store_rep.representation();
224 224
225 if (write_barrier_kind != kNoWriteBarrier) { 225 if (write_barrier_kind != kNoWriteBarrier) {
226 DCHECK_EQ(MachineRepresentation::kTagged, rep); 226 DCHECK(CanBeTaggedPointer(rep));
227 AddressingMode addressing_mode; 227 AddressingMode addressing_mode;
228 InstructionOperand inputs[3]; 228 InstructionOperand inputs[3];
229 size_t input_count = 0; 229 size_t input_count = 0;
230 inputs[input_count++] = g.UseUniqueRegister(base); 230 inputs[input_count++] = g.UseUniqueRegister(base);
231 if (g.CanBeImmediate(index)) { 231 if (g.CanBeImmediate(index)) {
232 inputs[input_count++] = g.UseImmediate(index); 232 inputs[input_count++] = g.UseImmediate(index);
233 addressing_mode = kMode_MRI; 233 addressing_mode = kMode_MRI;
234 } else { 234 } else {
235 inputs[input_count++] = g.UseUniqueRegister(index); 235 inputs[input_count++] = g.UseUniqueRegister(index);
236 addressing_mode = kMode_MR1; 236 addressing_mode = kMode_MR1;
(...skipping 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after
1747 // static 1747 // static
1748 MachineOperatorBuilder::AlignmentRequirements 1748 MachineOperatorBuilder::AlignmentRequirements
1749 InstructionSelector::AlignmentRequirements() { 1749 InstructionSelector::AlignmentRequirements() {
1750 return MachineOperatorBuilder::AlignmentRequirements:: 1750 return MachineOperatorBuilder::AlignmentRequirements::
1751 FullUnalignedAccessSupport(); 1751 FullUnalignedAccessSupport();
1752 } 1752 }
1753 1753
1754 } // namespace compiler 1754 } // namespace compiler
1755 } // namespace internal 1755 } // namespace internal
1756 } // namespace v8 1756 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698