From aaaebbe50f11b6a32c98c7749b8e30c9072f2171 Mon Sep 17 00:00:00 2001 From: "sgjesse@chromium.org" Date: Tue, 8 Jun 2010 11:23:48 +0000 Subject: [PATCH] Fix building without debugger suport. Review URL: http://codereview.chromium.org/2733003 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4818 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/heap.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/heap.cc b/src/heap.cc index aebf609..3115cb3 100644 --- a/src/heap.cc +++ b/src/heap.cc @@ -2249,8 +2249,10 @@ static void FlushCodeForFunction(SharedFunctionInfo* function_info) { void Heap::FlushCode() { +#ifdef ENABLE_DEBUGGER_SUPPORT // Do not flush code if the debugger is loaded or there are breakpoints. if (Debug::IsLoaded() || Debug::has_break_points()) return; +#endif HeapObjectIterator it(old_pointer_space()); for (HeapObject* obj = it.next(); obj != NULL; obj = it.next()) { if (obj->IsJSFunction()) { -- 2.7.4