From f0cf78f09eff934698fd0844b05b9b026505e52b Mon Sep 17 00:00:00 2001 From: "mikhail.naganov@gmail.com" Date: Tue, 1 Mar 2011 14:49:07 +0000 Subject: [PATCH] Small fix for when not building with OBJECT_PRINT defined. Patch by Mark Lam from Hewlett-Packard Development Company, LP Review URL: http://codereview.chromium.org/6602034 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6997 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/heap.cc b/src/heap.cc index 1fadec3831..2ed99f776f 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -5336,7 +5336,11 @@ void PathTracer::ProcessResults() { for (int i = 0; i < object_stack_.length(); i++) { if (i > 0) PrintF("\n |\n |\n V\n\n"); Object* obj = object_stack_[i]; +#ifdef OBJECT_PRINT obj->Print(); +#else + obj->ShortPrint(); +#endif } PrintF("=====================================\n"); }