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

Unified Diff: runtime/vm/object_store.cc

Issue 19106008: Fix for issue 11680 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
Index: runtime/vm/object_store.cc
===================================================================
--- runtime/vm/object_store.cc (revision 25435)
+++ runtime/vm/object_store.cc (working copy)
@@ -5,9 +5,11 @@
#include "vm/object_store.h"
#include "vm/exceptions.h"
+#include "vm/dart_entry.h"
#include "vm/isolate.h"
#include "vm/object.h"
#include "vm/raw_object.h"
+#include "vm/symbols.h"
#include "vm/visitor.h"
namespace dart {
@@ -41,6 +43,7 @@
float32x4_class_(Class::null()),
uint32x4_class_(Class::null()),
typed_data_classes_(Array::null()),
+ error_class_(Class::null()),
stacktrace_class_(Class::null()),
jsregexp_class_(Class::null()),
weak_property_class_(Class::null()),
@@ -103,15 +106,21 @@
ASSERT(this->preallocated_stack_trace() == Stacktrace::null());
Object& result = Object::Handle();
+ const Library& library = Library::Handle(Library::CoreLibrary());
- result = Exceptions::Create(Exceptions::kStackOverflow,
- Object::empty_array());
+ result = DartLibraryCalls::InstanceCreate(library,
+ Symbols::StackOverflowError(),
+ Symbols::Dot(),
+ Object::empty_array());
if (result.IsError()) {
return false;
}
set_stack_overflow(Instance::Cast(result));
- result = Exceptions::Create(Exceptions::kOutOfMemory, Object::empty_array());
+ result = DartLibraryCalls::InstanceCreate(library,
+ Symbols::OutOfMemoryError(),
+ Symbols::Dot(),
+ Object::empty_array());
if (result.IsError()) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698