Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Unified Diff: src/debug.cc

Issue 113625: Disable compilation cache when debugger is active (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compilation-cache.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
+ }
}
« no previous file with comments | « src/compilation-cache.cc ('k') | src/flag-definitions.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698