| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |