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

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

Issue 951553005: [turbofan] remove dependence of InstructionBlock on BasicBlock (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/schedule.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 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 CHECK(op->IsDoubleRegister() || op->IsDoubleStackSlot()); 207 CHECK(op->IsDoubleRegister() || op->IsDoubleStackSlot());
208 return; 208 return;
209 case kSameAsFirst: 209 case kSameAsFirst:
210 CHECK(false); 210 CHECK(false);
211 return; 211 return;
212 } 212 }
213 } 213 }
214 214
215 namespace { 215 namespace {
216 216
217 typedef BasicBlock::RpoNumber Rpo; 217 typedef RpoNumber Rpo;
218 218
219 static const int kInvalidVreg = InstructionOperand::kInvalidVirtualRegister; 219 static const int kInvalidVreg = InstructionOperand::kInvalidVirtualRegister;
220 220
221 struct PhiData : public ZoneObject { 221 struct PhiData : public ZoneObject {
222 PhiData(Rpo definition_rpo, const PhiInstruction* phi, int first_pred_vreg, 222 PhiData(Rpo definition_rpo, const PhiInstruction* phi, int first_pred_vreg,
223 const PhiData* first_pred_phi, Zone* zone) 223 const PhiData* first_pred_phi, Zone* zone)
224 : definition_rpo(definition_rpo), 224 : definition_rpo(definition_rpo),
225 virtual_register(phi->virtual_register()), 225 virtual_register(phi->virtual_register()),
226 first_pred_vreg(first_pred_vreg), 226 first_pred_vreg(first_pred_vreg),
227 first_pred_phi(first_pred_phi), 227 first_pred_phi(first_pred_phi),
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 int virtual_register = op_constraints[count].virtual_register_; 660 int virtual_register = op_constraints[count].virtual_register_;
661 current->Define(zone(), instr->OutputAt(i), virtual_register); 661 current->Define(zone(), instr->OutputAt(i), virtual_register);
662 } 662 }
663 } 663 }
664 } 664 }
665 } 665 }
666 666
667 } // namespace compiler 667 } // namespace compiler
668 } // namespace internal 668 } // namespace internal
669 } // namespace v8 669 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/compiler/schedule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698