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

Unified Diff: runtime/vm/class_finalizer.cc

Issue 1309113004: Change trail from GrowableObjectArray to ZoneGrowableArray. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Address comments Created 5 years, 4 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/class_finalizer.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/class_finalizer.cc
diff --git a/runtime/vm/class_finalizer.cc b/runtime/vm/class_finalizer.cc
index fc7dd589bb226aae8adb6eeae1052522fa021ea5..80e73ad28f82991ddfc9c07aa494771a3c3d909f 100644
--- a/runtime/vm/class_finalizer.cc
+++ b/runtime/vm/class_finalizer.cc
@@ -655,7 +655,7 @@ void ClassFinalizer::FinalizeTypeArguments(
intptr_t num_uninitialized_arguments,
Error* bound_error,
GrowableObjectArray* pending_types,
- GrowableObjectArray* trail) {
+ TrailPtr trail) {
ASSERT(arguments.Length() >= cls.NumTypeArguments());
if (!cls.is_type_finalized()) {
FinalizeTypeParameters(cls, pending_types);
@@ -1092,10 +1092,9 @@ RawAbstractType* ClassFinalizer::FinalizeType(
owner_class = type_class.raw();
}
if (offset > 0) {
- GrowableObjectArray& trail =
- GrowableObjectArray::Handle(isolate, GrowableObjectArray::New());
+ TrailPtr trail = new Trail(4);
FinalizeTypeArguments(owner_class, full_arguments, offset,
- &bound_error, pending_types, &trail);
+ &bound_error, pending_types, trail);
}
if (full_arguments.IsRaw(0, num_type_arguments)) {
// The parameterized_type is raw. Set its argument vector to null, which
« no previous file with comments | « runtime/vm/class_finalizer.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698