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

Unified Diff: vm/isolate.cc

Issue 11639007: Cleanup the exceptions create code to use Arrays instead GrowableArrays so (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 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 | « vm/exceptions.cc ('k') | vm/native_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/isolate.cc
===================================================================
--- vm/isolate.cc (revision 16288)
+++ vm/isolate.cc (working copy)
@@ -155,10 +155,10 @@
Instance::Handle(isolate_, error.stacktrace());
// Wrap these args into an IsolateUncaughtException object.
- GrowableArray<const Object*> exception_args(3);
- exception_args.Add(&message);
- exception_args.Add(&cause);
- exception_args.Add(&stacktrace);
+ const Array& exception_args = Array::Handle(Array::New(3));
+ exception_args.SetAt(0, message);
+ exception_args.SetAt(1, cause);
+ exception_args.SetAt(2, stacktrace);
const Object& exception =
Object::Handle(isolate_,
Exceptions::Create(Exceptions::kIsolateUnhandledException,
« no previous file with comments | « vm/exceptions.cc ('k') | vm/native_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698