From b6ebc22de89f485269447fd7fd9d76c71cf4fb62 Mon Sep 17 00:00:00 2001 From: "svenpanne@chromium.org" Date: Mon, 9 Jul 2012 10:46:17 +0000 Subject: [PATCH] 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 --- src/hydrogen-instructions.cc | 5 +++++ src/hydrogen-instructions.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc index 70ed782da3..283e484041 100644 --- a/src/hydrogen-instructions.cc +++ b/src/hydrogen-instructions.cc @@ -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)); diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h index e92d747f54..fb6fe29ed6 100644 --- a/src/hydrogen-instructions.h +++ b/src/hydrogen-instructions.h @@ -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(*prototype());