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

Side by Side Diff: src/compiler/register-allocator-verifier.cc

Issue 1959763002: [turbofan] Rename floating point register / slot methods. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Unfix arm64. Created 4 years, 7 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/register-allocator.cc ('k') | src/compiler/s390/code-generator-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/bit-vector.h" 5 #include "src/bit-vector.h"
6 #include "src/compiler/instruction.h" 6 #include "src/compiler/instruction.h"
7 #include "src/compiler/register-allocator-verifier.h" 7 #include "src/compiler/register-allocator-verifier.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 int value = imm->type() == ImmediateOperand::INLINE 217 int value = imm->type() == ImmediateOperand::INLINE
218 ? imm->inline_value() 218 ? imm->inline_value()
219 : imm->indexed_value(); 219 : imm->indexed_value();
220 CHECK_EQ(value, constraint->value_); 220 CHECK_EQ(value, constraint->value_);
221 return; 221 return;
222 } 222 }
223 case kRegister: 223 case kRegister:
224 CHECK(op->IsRegister()); 224 CHECK(op->IsRegister());
225 return; 225 return;
226 case kDoubleRegister: 226 case kDoubleRegister:
227 CHECK(op->IsDoubleRegister()); 227 CHECK(op->IsFPRegister());
228 return; 228 return;
229 case kExplicit: 229 case kExplicit:
230 CHECK(op->IsExplicit()); 230 CHECK(op->IsExplicit());
231 return; 231 return;
232 case kFixedRegister: 232 case kFixedRegister:
233 case kRegisterAndSlot: 233 case kRegisterAndSlot:
234 CHECK(op->IsRegister()); 234 CHECK(op->IsRegister());
235 CHECK_EQ(LocationOperand::cast(op)->GetRegister().code(), 235 CHECK_EQ(LocationOperand::cast(op)->GetRegister().code(),
236 constraint->value_); 236 constraint->value_);
237 return; 237 return;
238 case kFixedDoubleRegister: 238 case kFixedDoubleRegister:
239 CHECK(op->IsDoubleRegister()); 239 CHECK(op->IsFPRegister());
240 CHECK_EQ(LocationOperand::cast(op)->GetDoubleRegister().code(), 240 CHECK_EQ(LocationOperand::cast(op)->GetDoubleRegister().code(),
241 constraint->value_); 241 constraint->value_);
242 return; 242 return;
243 case kFixedSlot: 243 case kFixedSlot:
244 CHECK(op->IsStackSlot()); 244 CHECK(op->IsStackSlot());
245 CHECK_EQ(LocationOperand::cast(op)->index(), constraint->value_); 245 CHECK_EQ(LocationOperand::cast(op)->index(), constraint->value_);
246 return; 246 return;
247 case kSlot: 247 case kSlot:
248 CHECK(op->IsStackSlot()); 248 CHECK(op->IsStackSlot());
249 return; 249 return;
250 case kDoubleSlot: 250 case kDoubleSlot:
251 CHECK(op->IsDoubleStackSlot()); 251 CHECK(op->IsFPStackSlot());
252 return; 252 return;
253 case kNone: 253 case kNone:
254 CHECK(op->IsRegister() || op->IsStackSlot()); 254 CHECK(op->IsRegister() || op->IsStackSlot());
255 return; 255 return;
256 case kNoneDouble: 256 case kNoneDouble:
257 CHECK(op->IsDoubleRegister() || op->IsDoubleStackSlot()); 257 CHECK(op->IsFPRegister() || op->IsFPStackSlot());
258 return; 258 return;
259 case kSameAsFirst: 259 case kSameAsFirst:
260 CHECK(false); 260 CHECK(false);
261 return; 261 return;
262 } 262 }
263 } 263 }
264 264
265 void BlockAssessments::PerformMoves(const Instruction* instruction) { 265 void BlockAssessments::PerformMoves(const Instruction* instruction) {
266 const ParallelMove* first = 266 const ParallelMove* first =
267 instruction->GetParallelMove(Instruction::GapPosition::START); 267 instruction->GetParallelMove(Instruction::GapPosition::START);
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 new (zone()) FinalAssessment(vreg, pending); 551 new (zone()) FinalAssessment(vreg, pending);
552 break; 552 break;
553 } 553 }
554 } 554 }
555 } 555 }
556 } 556 }
557 557
558 } // namespace compiler 558 } // namespace compiler
559 } // namespace internal 559 } // namespace internal
560 } // namespace v8 560 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/compiler/s390/code-generator-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698