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

Unified Diff: vm/snapshot.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/object_store.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/snapshot.cc
===================================================================
--- vm/snapshot.cc (revision 16285)
+++ vm/snapshot.cc (working copy)
@@ -1251,8 +1251,8 @@
Isolate::Current()->object_store()->clear_sticky_error();
UnmarkAll();
const String& msg_obj = String::Handle(String::New(msg));
- GrowableArray<const Object*> args(1);
- args.Add(&msg_obj);
+ const Array& args = Array::Handle(Array::New(1));
+ args.SetAt(0, msg_obj);
Exceptions::ThrowByType(type, args);
UNREACHABLE();
}
« no previous file with comments | « vm/object_store.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698