Improved printing of Goto and CompareIDAndBranch instructions.
Review URL: http://codereview.chromium.org/7862031 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9226 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
baab04283d
commit
1a4086c076
@ -1307,6 +1307,12 @@ void HCompareIDAndBranch::PrintDataTo(StringStream* stream) {
|
||||
left()->PrintNameTo(stream);
|
||||
stream->Add(" ");
|
||||
right()->PrintNameTo(stream);
|
||||
HControlInstruction::PrintDataTo(stream);
|
||||
}
|
||||
|
||||
|
||||
void HGoto::PrintDataTo(StringStream* stream) {
|
||||
stream->Add("B%d", SuccessorAt(0)->block_id());
|
||||
}
|
||||
|
||||
|
||||
|
@ -915,6 +915,8 @@ class HGoto: public HTemplateControlInstruction<1, 0> {
|
||||
return Representation::None();
|
||||
}
|
||||
|
||||
virtual void PrintDataTo(StringStream* stream);
|
||||
|
||||
DECLARE_CONCRETE_INSTRUCTION(Goto)
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user