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

Unified Diff: src/objects.h

Issue 1433923002: Maintain a FixedArray for the optimized code map. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Missed a case, also turn on flag for testing. Created 5 years, 1 month 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 69053ee570135722593c303e96ff62192de3abcf..b80bf7465bf00fdc930d3585f938a7f9579ab671 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -6519,8 +6519,8 @@ class SharedFunctionInfo: public HeapObject {
inline void ReplaceCode(Code* code);
// [optimized_code_map]: Map from native context to optimized code
- // and a shared literals array or Smi(0) if none.
- DECL_ACCESSORS(optimized_code_map, Object)
+ // and a shared literals array.
+ DECL_ACCESSORS(optimized_code_map, FixedArray)
// Returns entry from optimized code map for specified context and OSR entry.
// Note that {code == nullptr, literals == nullptr} indicates no matching
@@ -6558,6 +6558,8 @@ class SharedFunctionInfo: public HeapObject {
static void SetScript(Handle<SharedFunctionInfo> shared,
Handle<Object> script_object);
+ inline bool OptimizedCodeMapIsCleared() const;
Michael Starzinger 2015/11/13 12:14:22 nit: Needs a comment explaining the nature of the
mvstanton 2015/11/17 20:32:12 Done.
+
// Layout description of the optimized code map.
static const int kSharedCodeIndex = 0;
static const int kEntriesStart = 1;

Powered by Google App Engine
This is Rietveld 408576698