| Index: src/heap/heap.h
|
| diff --git a/src/heap/heap.h b/src/heap/heap.h
|
| index 254b19f83cb54714fd80a897f14242331ff0fb59..af033bb6865bd0c78d9609e972f2d1ad107a3384 100644
|
| --- a/src/heap/heap.h
|
| +++ b/src/heap/heap.h
|
| @@ -1215,21 +1215,33 @@ class Heap {
|
| Object** roots_array_start() { return roots_; }
|
|
|
| // Sets the stub_cache_ (only used when expanding the dictionary).
|
| - void public_set_code_stubs(UnseededNumberDictionary* value) {
|
| + void SetRootCodeStubs(UnseededNumberDictionary* value) {
|
| roots_[kCodeStubsRootIndex] = value;
|
| }
|
|
|
| // Sets the non_monomorphic_cache_ (only used when expanding the dictionary).
|
| - void public_set_non_monomorphic_cache(UnseededNumberDictionary* value) {
|
| + void SetRootNonMonomorphicCache(UnseededNumberDictionary* value) {
|
| roots_[kNonMonomorphicCacheRootIndex] = value;
|
| }
|
|
|
| - void public_set_empty_script(Script* script) {
|
| - roots_[kEmptyScriptRootIndex] = script;
|
| + void SetRootMaterializedObjects(FixedArray* objects) {
|
| + roots_[kMaterializedObjectsRootIndex] = objects;
|
| }
|
|
|
| - void public_set_materialized_objects(FixedArray* objects) {
|
| - roots_[kMaterializedObjectsRootIndex] = objects;
|
| + void SetRootCodeStubContext(Object* value) {
|
| + roots_[kCodeStubContextRootIndex] = value;
|
| + }
|
| +
|
| + void SetRootCodeStubExportsObject(JSObject* value) {
|
| + roots_[kCodeStubExportsObjectRootIndex] = value;
|
| + }
|
| +
|
| + void SetRootScriptList(Object* value) {
|
| + roots_[kScriptListRootIndex] = value;
|
| + }
|
| +
|
| + void SetRootStringTable(StringTable* value) {
|
| + roots_[kStringTableRootIndex] = value;
|
| }
|
|
|
| // Set the stack limit in the roots_ array. Some architectures generate
|
| @@ -2407,21 +2419,23 @@ class Heap {
|
|
|
| StrongRootsList* strong_roots_list_;
|
|
|
| + // Classes in "heap" can be friends.
|
| friend class AlwaysAllocateScope;
|
| - friend class Bootstrapper;
|
| - friend class Deserializer;
|
| - friend class Factory;
|
| friend class GCCallbacksScope;
|
| friend class GCTracer;
|
| friend class HeapIterator;
|
| friend class IncrementalMarking;
|
| - friend class Isolate;
|
| friend class MarkCompactCollector;
|
| friend class MarkCompactMarkingVisitor;
|
| - friend class MapCompact;
|
| friend class Page;
|
| friend class StoreBuffer;
|
|
|
| + // The allocator interface.
|
| + friend class Factory;
|
| +
|
| + // The Isolate constructs us.
|
| + friend class Isolate;
|
| +
|
| // Used in cctest.
|
| friend class HeapTester;
|
|
|
|
|