| Index: runtime/vm/object_store.h
|
| ===================================================================
|
| --- runtime/vm/object_store.h (revision 2103)
|
| +++ runtime/vm/object_store.h (working copy)
|
| @@ -279,6 +279,11 @@
|
| empty_context_ = value.raw();
|
| }
|
|
|
| + RawInstance* stack_overflow() const { return stack_overflow_; }
|
| + void set_stack_overflow(const Instance& value) {
|
| + stack_overflow_ = value.raw();
|
| + }
|
| +
|
| // Visit all object pointers.
|
| void VisitObjectPointers(ObjectPointerVisitor* visitor);
|
|
|
| @@ -287,6 +292,11 @@
|
| RawType* GetType(int index);
|
| int GetTypeIndex(const RawType* raw_type);
|
|
|
| + // Called to initialize objects required by the vm but which invoke
|
| + // dart code. If an error occurs then false is returned and error
|
| + // information is stored in sticky_error().
|
| + bool PreallocateObjects();
|
| +
|
| static void Init(Isolate* isolate);
|
|
|
| private:
|
| @@ -334,8 +344,11 @@
|
| RawArray* pending_classes_;
|
| RawString* sticky_error_;
|
| RawContext* empty_context_;
|
| - RawObject** to() { return reinterpret_cast<RawObject**>(&empty_context_); }
|
| + RawInstance* stack_overflow_;
|
| + RawObject** to() { return reinterpret_cast<RawObject**>(&stack_overflow_); }
|
|
|
| + bool preallocate_objects_called_;
|
| +
|
| friend class SnapshotReader;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ObjectStore);
|
|
|