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

Unified Diff: src/v8.cc

Issue 10990076: Short term JSON eval cache Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 8 years, 3 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/runtime.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/v8.cc
===================================================================
--- src/v8.cc (revision 12582)
+++ src/v8.cc (working copy)
@@ -43,6 +43,7 @@
#include "runtime-profiler.h"
#include "serialize.h"
#include "store-buffer.h"
+#include "compilation-cache.h"
namespace v8 {
namespace internal {
@@ -189,8 +190,10 @@
// IdleNotification again.
if (!FLAG_use_idle_notification) return true;
- // Tell the heap that it may want to adjust.
- return HEAP->IdleNotification(hint);
+ // Tell the heap that it may want to adjust. If the heap has nothing more
+ // to clean, we are really idle, so we can clear the short term caches.
+ return HEAP->IdleNotification(hint) &&
ulan 2012/09/28 14:26:23 This concerns me. The embedder is not required to
+ ISOLATE->compilation_cache()->ClearShortTerm();
}
« no previous file with comments | « src/runtime.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698