From 827eedbfa882496407375f22b08243a38a5bd53b Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 26 Jan 2015 15:18:36 +0000 Subject: Move code around and address growable_array comment. - Move SideEffectsAnalysis to its own file. - Move most of gvn.h to gvn.cc. - Don't call Resize in GrowableArray constructor, but just set num_used directly. Change-Id: I1f1291207945d678d3c99cc0ec1ec155bcae82f6 --- compiler/utils/growable_array.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/utils/growable_array.h') diff --git a/compiler/utils/growable_array.h b/compiler/utils/growable_array.h index b84842910b..6af4853e09 100644 --- a/compiler/utils/growable_array.h +++ b/compiler/utils/growable_array.h @@ -40,8 +40,7 @@ class GrowableArray : public ArenaObject { GrowableArray(ArenaAllocator* arena, size_t init_length, T initial_data) : arena_(arena), num_allocated_(init_length), - num_used_(0) { - SetSize(init_length); + num_used_(init_length) { elem_list_ = static_cast(arena_->Alloc(sizeof(T) * init_length, kArenaAllocGrowableArray)); for (size_t i = 0; i < init_length; ++i) { -- cgit v1.2.3-59-g8ed1b