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

Unified Diff: runtime/vm/object.h

Issue 14273021: Report OOM errors instead of asserting on allocation failures when sending (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months 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/exceptions.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 21956)
+++ runtime/vm/object.h (working copy)
@@ -329,6 +329,10 @@
ASSERT(bool_false_ != NULL);
return *bool_false_;
}
+ static const LanguageError& snapshot_writer_error() {
+ ASSERT(snapshot_writer_error_ != NULL);
+ return *snapshot_writer_error_;
+ }
static RawClass* class_class() { return class_class_; }
static RawClass* null_class() { return null_class_; }
@@ -520,6 +524,7 @@
static Instance* transition_sentinel_;
static Bool* bool_true_;
static Bool* bool_false_;
+ static LanguageError* snapshot_writer_error_;
friend void ClassTable::Register(const Class& cls);
friend void RawObject::Validate(Isolate* isolate) const;
« no previous file with comments | « runtime/vm/exceptions.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698