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

Unified Diff: vm/bigint_operations.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 | « lib/string.cc ('k') | vm/dart_entry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/bigint_operations.cc
===================================================================
--- vm/bigint_operations.cc (revision 16285)
+++ vm/bigint_operations.cc (working copy)
@@ -207,9 +207,9 @@
}
DoubleInternals internals = DoubleInternals(d);
if (internals.IsSpecial()) {
- GrowableArray<const Object*> exception_arguments;
- exception_arguments.Add(
- &Object::ZoneHandle(String::New("BigintOperations::NewFromDouble")));
+ const Array& exception_arguments = Array::Handle(Array::New(1));
+ exception_arguments.SetAt(
+ 0, Object::Handle(String::New("BigintOperations::NewFromDouble")));
Exceptions::ThrowByType(Exceptions::kInternalError, exception_arguments);
}
uint64_t significand = internals.Significand();
« no previous file with comments | « lib/string.cc ('k') | vm/dart_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698