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

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

Issue 2258073002: [Turbofan]: Use new MachineTypes in access-builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: A bit of refactoring. 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 | « src/compiler/mips/instruction-selector-mips.cc ('k') | src/compiler/register-allocator.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/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 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 Node* base = node->InputAt(0); 205 Node* base = node->InputAt(0);
206 Node* index = node->InputAt(1); 206 Node* index = node->InputAt(1);
207 Node* value = node->InputAt(2); 207 Node* value = node->InputAt(2);
208 208
209 StoreRepresentation store_rep = StoreRepresentationOf(node->op()); 209 StoreRepresentation store_rep = StoreRepresentationOf(node->op());
210 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind(); 210 WriteBarrierKind write_barrier_kind = store_rep.write_barrier_kind();
211 MachineRepresentation rep = store_rep.representation(); 211 MachineRepresentation rep = store_rep.representation();
212 212
213 // TODO(mips): I guess this could be done in a better way. 213 // TODO(mips): I guess this could be done in a better way.
214 if (write_barrier_kind != kNoWriteBarrier) { 214 if (write_barrier_kind != kNoWriteBarrier) {
215 DCHECK_EQ(MachineRepresentation::kTagged, rep); 215 DCHECK(CanBeTaggedPointer(rep));
216 InstructionOperand inputs[3]; 216 InstructionOperand inputs[3];
217 size_t input_count = 0; 217 size_t input_count = 0;
218 inputs[input_count++] = g.UseUniqueRegister(base); 218 inputs[input_count++] = g.UseUniqueRegister(base);
219 inputs[input_count++] = g.UseUniqueRegister(index); 219 inputs[input_count++] = g.UseUniqueRegister(index);
220 inputs[input_count++] = g.UseUniqueRegister(value); 220 inputs[input_count++] = g.UseUniqueRegister(value);
221 RecordWriteMode record_write_mode = RecordWriteMode::kValueIsAny; 221 RecordWriteMode record_write_mode = RecordWriteMode::kValueIsAny;
222 switch (write_barrier_kind) { 222 switch (write_barrier_kind) {
223 case kNoWriteBarrier: 223 case kNoWriteBarrier:
224 UNREACHABLE(); 224 UNREACHABLE();
225 break; 225 break;
(...skipping 1973 matching lines...) Expand 10 before | Expand all | Expand 10 after
2199 } else { 2199 } else {
2200 DCHECK(kArchVariant == kMips64r2); 2200 DCHECK(kArchVariant == kMips64r2);
2201 return MachineOperatorBuilder::AlignmentRequirements:: 2201 return MachineOperatorBuilder::AlignmentRequirements::
2202 NoUnalignedAccessSupport(); 2202 NoUnalignedAccessSupport();
2203 } 2203 }
2204 } 2204 }
2205 2205
2206 } // namespace compiler 2206 } // namespace compiler
2207 } // namespace internal 2207 } // namespace internal
2208 } // namespace v8 2208 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/mips/instruction-selector-mips.cc ('k') | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698