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

Unified Diff: src/objects.h

Issue 14604007: Only flush SharedFunctionInfo optimized code cache when necessary (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 7 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
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index eebf3c1b6675dd6dd4e686ade63fabb235e7f820..d744023f0d4bdf63c303aa4a98675d22fbf19619 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -5822,6 +5822,10 @@ class SharedFunctionInfo: public HeapObject {
// Clear optimized code map.
void ClearOptimizedCodeMap(const char* reason);
+ // Removed a specific optimized code object from the optimized code map, or
+ // all code objects if |optimized_code| is null.
Michael Starzinger 2013/05/13 14:26:46 The second part of the comment is out-dated, let's
danno 2013/05/13 15:23:10 Done.
+ void EvictFromOptimizedCodeMap(Code* optimized_code, const char* reason);
+
// Add a new entry to the optimized code map.
static void AddToOptimizedCodeMap(Handle<SharedFunctionInfo> shared,
Handle<Context> native_context,

Powered by Google App Engine
This is Rietveld 408576698