Index: src/debug.h |
=================================================================== |
--- src/debug.h (revision 6165) |
+++ src/debug.h (working copy) |
@@ -32,6 +32,7 @@ |
#include "debug-agent.h" |
#include "execution.h" |
#include "factory.h" |
+#include "flags.h" |
#include "hashmap.h" |
#include "platform.h" |
#include "string-stream.h" |
@@ -772,6 +773,15 @@ |
} |
} |
+ if (((event == v8::BeforeCompile) || (event == v8::AfterCompile)) && |
+ !FLAG_debug_compile_events) { |
+ return false; |
+ |
+ } else if ((event == v8::ScriptCollected) && |
+ !FLAG_debug_script_collected_events) { |
+ return false; |
+ } |
+ |
// Currently argument event is not used. |
return !compiling_natives_ && Debugger::IsDebuggerActive(); |
} |