| Index: src/debug.cc
|
| ===================================================================
|
| --- src/debug.cc (revision 2020)
|
| +++ src/debug.cc (working copy)
|
| @@ -31,6 +31,7 @@
|
| #include "arguments.h"
|
| #include "bootstrapper.h"
|
| #include "code-stubs.h"
|
| +#include "compilation-cache.h"
|
| #include "compiler.h"
|
| #include "debug.h"
|
| #include "execution.h"
|
| @@ -2172,6 +2173,13 @@
|
| if (callback->IsUndefined()) {
|
| UnloadDebugger();
|
| }
|
| +
|
| + // Disable the compilation cache when the debugger is active.
|
| + if (IsDebuggerActive()) {
|
| + CompilationCache::Disable();
|
| + } else {
|
| + CompilationCache::Enable();
|
| + }
|
| }
|
|
|
|
|
| @@ -2189,6 +2197,13 @@
|
| ProcessCommand(Vector<const uint16_t>::empty());
|
| }
|
| }
|
| +
|
| + // Disable the compilation cache when the debugger is active.
|
| + if (IsDebuggerActive()) {
|
| + CompilationCache::Disable();
|
| + } else {
|
| + CompilationCache::Enable();
|
| + }
|
| }
|
|
|
|
|
|
|