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

Unified Diff: runtime/vm/object_store.h

Issue 8823001: Use preallocated StackOverflowException (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698