diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2014-03-17 10:20:19 +0000 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2014-03-18 11:20:20 +0000 |
commit | 787c3076635cf117eb646c5a89a9014b2072fb44 (patch) | |
tree | 3c9c6c6d56e3900cf2255a5d1ade008ec6a40681 /compiler/optimizing/pretty_printer.h | |
parent | b9d50a9829b795932eac4cc50a99b4ce80b0ecb4 (diff) | |
download | art-787c3076635cf117eb646c5a89a9014b2072fb44.zip art-787c3076635cf117eb646c5a89a9014b2072fb44.tar.gz art-787c3076635cf117eb646c5a89a9014b2072fb44.tar.bz2 |
Plug new optimizing compiler in compilation pipeline.
Also rename accessors to ART's conventions.
Change-Id: I344807055b98aa4b27215704ec362191464acecc
Diffstat (limited to 'compiler/optimizing/pretty_printer.h')
-rw-r--r-- | compiler/optimizing/pretty_printer.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/compiler/optimizing/pretty_printer.h b/compiler/optimizing/pretty_printer.h index 0c0f702..606c915 100644 --- a/compiler/optimizing/pretty_printer.h +++ b/compiler/optimizing/pretty_printer.h @@ -27,7 +27,7 @@ class HPrettyPrinter : public HGraphVisitor { virtual void VisitInstruction(HInstruction* instruction) { PrintString(" "); - PrintInt(instruction->id()); + PrintInt(instruction->GetId()); PrintString(": "); PrintString(instruction->DebugName()); if (instruction->InputCount() != 0) { @@ -39,7 +39,7 @@ class HPrettyPrinter : public HGraphVisitor { } else { PrintString(", "); } - PrintInt(it.Current()->id()); + PrintInt(it.Current()->GetId()); } PrintString(")"); } @@ -52,7 +52,7 @@ class HPrettyPrinter : public HGraphVisitor { } else { PrintString(", "); } - PrintInt(it.Current()->id()); + PrintInt(it.Current()->GetId()); } PrintString("]"); } @@ -61,24 +61,24 @@ class HPrettyPrinter : public HGraphVisitor { virtual void VisitBasicBlock(HBasicBlock* block) { PrintString("BasicBlock "); - PrintInt(block->block_id()); - const GrowableArray<HBasicBlock*>* blocks = block->predecessors(); + PrintInt(block->GetBlockId()); + const GrowableArray<HBasicBlock*>* blocks = block->GetPredecessors(); if (!blocks->IsEmpty()) { PrintString(", pred: "); for (size_t i = 0; i < blocks->Size() -1; i++) { - PrintInt(blocks->Get(i)->block_id()); + PrintInt(blocks->Get(i)->GetBlockId()); PrintString(", "); } - PrintInt(blocks->Peek()->block_id()); + PrintInt(blocks->Peek()->GetBlockId()); } - blocks = block->successors(); + blocks = block->GetSuccessors(); if (!blocks->IsEmpty()) { PrintString(", succ: "); for (size_t i = 0; i < blocks->Size() - 1; i++) { - PrintInt(blocks->Get(i)->block_id()); + PrintInt(blocks->Get(i)->GetBlockId()); PrintString(", "); } - PrintInt(blocks->Peek()->block_id()); + PrintInt(blocks->Peek()->GetBlockId()); } PrintNewLine(); HGraphVisitor::VisitBasicBlock(block); |