Index: src/heap/heap.h |
diff --git a/src/heap/heap.h b/src/heap/heap.h |
index ab121873ed1606a54eddb512c7478e558713152c..59d7dfcf002f9229018a4965cdc0617eeef70541 100644 |
--- a/src/heap/heap.h |
+++ b/src/heap/heap.h |
@@ -162,6 +162,7 @@ |
V(HeapNumber, minus_infinity_value, MinusInfinityValue) \ |
V(JSObject, message_listeners, MessageListeners) \ |
V(UnseededNumberDictionary, code_stubs, CodeStubs) \ |
+ V(UnseededNumberDictionary, non_monomorphic_cache, NonMonomorphicCache) \ |
V(Code, js_entry_code, JsEntryCode) \ |
V(Code, js_construct_entry_code, JsConstructEntryCode) \ |
V(FixedArray, natives_source_cache, NativesSourceCache) \ |
@@ -976,6 +977,11 @@ |
roots_[kCodeStubsRootIndex] = value; |
} |
+ // Sets the non_monomorphic_cache_ (only used when expanding the dictionary). |
+ void SetRootNonMonomorphicCache(UnseededNumberDictionary* value) { |
+ roots_[kNonMonomorphicCacheRootIndex] = value; |
+ } |
+ |
void SetRootMaterializedObjects(FixedArray* objects) { |
roots_[kMaterializedObjectsRootIndex] = objects; |
} |