| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/hydrogen.h" | 5 #include "src/hydrogen.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/allocation-site-scopes.h" | 9 #include "src/allocation-site-scopes.h" |
| 10 #include "src/ast-numbering.h" | 10 #include "src/ast-numbering.h" |
| (...skipping 13443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13454 void HTracer::TraceLiveRange(LiveRange* range, const char* type, | 13454 void HTracer::TraceLiveRange(LiveRange* range, const char* type, |
| 13455 Zone* zone) { | 13455 Zone* zone) { |
| 13456 if (range != NULL && !range->IsEmpty()) { | 13456 if (range != NULL && !range->IsEmpty()) { |
| 13457 PrintIndent(); | 13457 PrintIndent(); |
| 13458 trace_.Add("%d %s", range->id(), type); | 13458 trace_.Add("%d %s", range->id(), type); |
| 13459 if (range->HasRegisterAssigned()) { | 13459 if (range->HasRegisterAssigned()) { |
| 13460 LOperand* op = range->CreateAssignedOperand(zone); | 13460 LOperand* op = range->CreateAssignedOperand(zone); |
| 13461 int assigned_reg = op->index(); | 13461 int assigned_reg = op->index(); |
| 13462 if (op->IsDoubleRegister()) { | 13462 if (op->IsDoubleRegister()) { |
| 13463 trace_.Add(" \"%s\"", | 13463 trace_.Add(" \"%s\"", |
| 13464 DoubleRegister::from_code(assigned_reg).ToString()); | 13464 DoubleRegister::AllocationIndexToString(assigned_reg)); |
| 13465 } else { | 13465 } else { |
| 13466 DCHECK(op->IsRegister()); | 13466 DCHECK(op->IsRegister()); |
| 13467 trace_.Add(" \"%s\"", Register::from_code(assigned_reg).ToString()); | 13467 trace_.Add(" \"%s\"", Register::AllocationIndexToString(assigned_reg)); |
| 13468 } | 13468 } |
| 13469 } else if (range->IsSpilled()) { | 13469 } else if (range->IsSpilled()) { |
| 13470 LOperand* op = range->TopLevel()->GetSpillOperand(); | 13470 LOperand* op = range->TopLevel()->GetSpillOperand(); |
| 13471 if (op->IsDoubleStackSlot()) { | 13471 if (op->IsDoubleStackSlot()) { |
| 13472 trace_.Add(" \"double_stack:%d\"", op->index()); | 13472 trace_.Add(" \"double_stack:%d\"", op->index()); |
| 13473 } else { | 13473 } else { |
| 13474 DCHECK(op->IsStackSlot()); | 13474 DCHECK(op->IsStackSlot()); |
| 13475 trace_.Add(" \"stack:%d\"", op->index()); | 13475 trace_.Add(" \"stack:%d\"", op->index()); |
| 13476 } | 13476 } |
| 13477 } | 13477 } |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13597 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13597 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
| 13598 } | 13598 } |
| 13599 | 13599 |
| 13600 #ifdef DEBUG | 13600 #ifdef DEBUG |
| 13601 graph_->Verify(false); // No full verify. | 13601 graph_->Verify(false); // No full verify. |
| 13602 #endif | 13602 #endif |
| 13603 } | 13603 } |
| 13604 | 13604 |
| 13605 } // namespace internal | 13605 } // namespace internal |
| 13606 } // namespace v8 | 13606 } // namespace v8 |
| OLD | NEW |