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

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

Issue 1365073002: Revert of Remove register index/code indirection (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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/register-configuration.h » ('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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 ? imm->inline_value() 211 ? imm->inline_value()
212 : imm->indexed_value(); 212 : imm->indexed_value();
213 CHECK_EQ(value, constraint->value_); 213 CHECK_EQ(value, constraint->value_);
214 return; 214 return;
215 } 215 }
216 case kRegister: 216 case kRegister:
217 CHECK(op->IsRegister()); 217 CHECK(op->IsRegister());
218 return; 218 return;
219 case kFixedRegister: 219 case kFixedRegister:
220 CHECK(op->IsRegister()); 220 CHECK(op->IsRegister());
221 CHECK_EQ(RegisterOperand::cast(op)->GetDoubleRegister().code(), 221 CHECK_EQ(RegisterOperand::cast(op)->index(), constraint->value_);
222 constraint->value_);
223 return; 222 return;
224 case kDoubleRegister: 223 case kDoubleRegister:
225 CHECK(op->IsDoubleRegister()); 224 CHECK(op->IsDoubleRegister());
226 return; 225 return;
227 case kFixedDoubleRegister: 226 case kFixedDoubleRegister:
228 CHECK(op->IsDoubleRegister()); 227 CHECK(op->IsDoubleRegister());
229 CHECK_EQ(DoubleRegisterOperand::cast(op)->GetDoubleRegister().code(), 228 CHECK_EQ(DoubleRegisterOperand::cast(op)->index(), constraint->value_);
230 constraint->value_);
231 return; 229 return;
232 case kFixedSlot: 230 case kFixedSlot:
233 CHECK(op->IsStackSlot()); 231 CHECK(op->IsStackSlot());
234 CHECK_EQ(StackSlotOperand::cast(op)->index(), constraint->value_); 232 CHECK_EQ(StackSlotOperand::cast(op)->index(), constraint->value_);
235 return; 233 return;
236 case kSlot: 234 case kSlot:
237 CHECK(op->IsStackSlot()); 235 CHECK(op->IsStackSlot());
238 return; 236 return;
239 case kDoubleSlot: 237 case kDoubleSlot:
240 CHECK(op->IsDoubleStackSlot()); 238 CHECK(op->IsDoubleStackSlot());
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 int virtual_register = op_constraints[count].virtual_register_; 696 int virtual_register = op_constraints[count].virtual_register_;
699 current->Define(zone(), instr->OutputAt(i), virtual_register); 697 current->Define(zone(), instr->OutputAt(i), virtual_register);
700 } 698 }
701 } 699 }
702 } 700 }
703 } 701 }
704 702
705 } // namespace compiler 703 } // namespace compiler
706 } // namespace internal 704 } // namespace internal
707 } // namespace v8 705 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/compiler/register-configuration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698