Improved printing of HForceRepresentation.

Review URL: https://codereview.chromium.org/11745011

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13301 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
svenpanne@chromium.org 2013-01-03 10:05:40 +00:00
parent 04ccb975f4
commit 252fbddc67
2 changed files with 8 additions and 0 deletions

View File

@ -1019,6 +1019,12 @@ void HTypeof::PrintDataTo(StringStream* stream) {
}
void HForceRepresentation::PrintDataTo(StringStream* stream) {
stream->Add("%s ", representation().Mnemonic());
value()->PrintNameTo(stream);
}
void HChange::PrintDataTo(StringStream* stream) {
HUnaryOperation::PrintDataTo(stream);
stream->Add(" %s to %s", from().Mnemonic(), to().Mnemonic());

View File

@ -1262,6 +1262,8 @@ class HForceRepresentation: public HTemplateInstruction<1> {
return representation(); // Same as the output representation.
}
virtual void PrintDataTo(StringStream* stream);
DECLARE_CONCRETE_INSTRUCTION(ForceRepresentation)
};