Improved printing of CheckPrototypeMaps instruction.

Review URL: https://chromiumcodereview.appspot.com/10696139

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12012 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
svenpanne@chromium.org 2012-07-09 10:46:17 +00:00
parent 36513befa1
commit b6ebc22de8
2 changed files with 7 additions and 0 deletions

View File

@ -1073,6 +1073,11 @@ void HCheckInstanceType::PrintDataTo(StringStream* stream) {
}
void HCheckPrototypeMaps::PrintDataTo(StringStream* stream) {
stream->Add("[receiver_prototype=%p,holder=%p]", *prototype(), *holder());
}
void HCallStub::PrintDataTo(StringStream* stream) {
stream->Add("%s ",
CodeStub::MajorName(major_key_, false));

View File

@ -2281,6 +2281,8 @@ class HCheckPrototypeMaps: public HTemplateInstruction<0> {
return Representation::None();
}
virtual void PrintDataTo(StringStream* stream);
virtual intptr_t Hashcode() {
ASSERT(!HEAP->IsAllocationAllowed());
intptr_t hash = reinterpret_cast<intptr_t>(*prototype());