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 13508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13519 void HTracer::TraceLiveRange(LiveRange* range, const char* type, | 13519 void HTracer::TraceLiveRange(LiveRange* range, const char* type, |
13520 Zone* zone) { | 13520 Zone* zone) { |
13521 if (range != NULL && !range->IsEmpty()) { | 13521 if (range != NULL && !range->IsEmpty()) { |
13522 PrintIndent(); | 13522 PrintIndent(); |
13523 trace_.Add("%d %s", range->id(), type); | 13523 trace_.Add("%d %s", range->id(), type); |
13524 if (range->HasRegisterAssigned()) { | 13524 if (range->HasRegisterAssigned()) { |
13525 LOperand* op = range->CreateAssignedOperand(zone); | 13525 LOperand* op = range->CreateAssignedOperand(zone); |
13526 int assigned_reg = op->index(); | 13526 int assigned_reg = op->index(); |
13527 if (op->IsDoubleRegister()) { | 13527 if (op->IsDoubleRegister()) { |
13528 trace_.Add(" \"%s\"", | 13528 trace_.Add(" \"%s\"", |
13529 DoubleRegister::AllocationIndexToString(assigned_reg)); | 13529 DoubleRegister::from_code(assigned_reg).ToString()); |
13530 } else { | 13530 } else { |
13531 DCHECK(op->IsRegister()); | 13531 DCHECK(op->IsRegister()); |
13532 trace_.Add(" \"%s\"", Register::AllocationIndexToString(assigned_reg)); | 13532 trace_.Add(" \"%s\"", Register::from_code(assigned_reg).ToString()); |
13533 } | 13533 } |
13534 } else if (range->IsSpilled()) { | 13534 } else if (range->IsSpilled()) { |
13535 LOperand* op = range->TopLevel()->GetSpillOperand(); | 13535 LOperand* op = range->TopLevel()->GetSpillOperand(); |
13536 if (op->IsDoubleStackSlot()) { | 13536 if (op->IsDoubleStackSlot()) { |
13537 trace_.Add(" \"double_stack:%d\"", op->index()); | 13537 trace_.Add(" \"double_stack:%d\"", op->index()); |
13538 } else { | 13538 } else { |
13539 DCHECK(op->IsStackSlot()); | 13539 DCHECK(op->IsStackSlot()); |
13540 trace_.Add(" \"stack:%d\"", op->index()); | 13540 trace_.Add(" \"stack:%d\"", op->index()); |
13541 } | 13541 } |
13542 } | 13542 } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13662 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); | 13662 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); |
13663 } | 13663 } |
13664 | 13664 |
13665 #ifdef DEBUG | 13665 #ifdef DEBUG |
13666 graph_->Verify(false); // No full verify. | 13666 graph_->Verify(false); // No full verify. |
13667 #endif | 13667 #endif |
13668 } | 13668 } |
13669 | 13669 |
13670 } // namespace internal | 13670 } // namespace internal |
13671 } // namespace v8 | 13671 } // namespace v8 |
OLD | NEW |