Commit d73595a2 authored by bak@chromium.org's avatar bak@chromium.org

-Fixed non debug build with an ifdef.


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@526 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 63670bea
...@@ -3106,12 +3106,13 @@ const char* GCTracer::CollectorString() { ...@@ -3106,12 +3106,13 @@ const char* GCTracer::CollectorString() {
} }
#ifdef DEBUG
bool Heap::GarbageCollectionGreedyCheck() { bool Heap::GarbageCollectionGreedyCheck() {
ASSERT(FLAG_gc_greedy); ASSERT(FLAG_gc_greedy);
if (Bootstrapper::IsActive()) return true; if (Bootstrapper::IsActive()) return true;
if (disallow_allocation_failure()) return true; if (disallow_allocation_failure()) return true;
return CollectGarbage(0, NEW_SPACE); return CollectGarbage(0, NEW_SPACE);
} }
#endif
} } // namespace v8::internal } } // namespace v8::internal
...@@ -565,8 +565,10 @@ class Heap : public AllStatic { ...@@ -565,8 +565,10 @@ class Heap : public AllStatic {
// ensure correct callback for weak global handles. // ensure correct callback for weak global handles.
static void PerformScavenge(); static void PerformScavenge();
#ifdef DEBUG
// Utility used with flag gc-greedy. // Utility used with flag gc-greedy.
static bool GarbageCollectionGreedyCheck(); static bool GarbageCollectionGreedyCheck();
#endif
static void SetGlobalGCPrologueCallback(GCCallback callback) { static void SetGlobalGCPrologueCallback(GCCallback callback) {
global_gc_prologue_callback_ = callback; global_gc_prologue_callback_ = callback;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment