From: bak@chromium.org Date: Mon, 20 Oct 2008 07:37:51 +0000 (+0000) Subject: -Fixed non debug build with an ifdef. X-Git-Tag: upstream/4.7.83~25173 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d73595a2a46d0626e5fba4c6168546faccd27f3d;p=platform%2Fupstream%2Fv8.git -Fixed non debug build with an ifdef. git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@526 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/heap.cc b/src/heap.cc index 50befdcb6..384b9d6a1 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -3106,12 +3106,13 @@ const char* GCTracer::CollectorString() { } +#ifdef DEBUG bool Heap::GarbageCollectionGreedyCheck() { ASSERT(FLAG_gc_greedy); if (Bootstrapper::IsActive()) return true; if (disallow_allocation_failure()) return true; return CollectGarbage(0, NEW_SPACE); } - +#endif } } // namespace v8::internal diff --git a/src/heap.h b/src/heap.h index 1f0fc7d89..3d241a689 100644 --- a/src/heap.h +++ b/src/heap.h @@ -565,8 +565,10 @@ class Heap : public AllStatic { // ensure correct callback for weak global handles. static void PerformScavenge(); +#ifdef DEBUG // Utility used with flag gc-greedy. static bool GarbageCollectionGreedyCheck(); +#endif static void SetGlobalGCPrologueCallback(GCCallback callback) { global_gc_prologue_callback_ = callback;