summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes_test.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-09-15 15:33:14 +0100
committer Vladimir Marko <vmarko@google.com> 2015-09-16 16:41:01 +0100
commit71bf8090663d02869cafafdd530976f7f2a9db7f (patch)
tree70f910498031be392dd1f851cf38fe68bdc3154c /compiler/optimizing/nodes_test.cc
parent4919c34ead9a10d6cbdaba9967952c344b32e5b9 (diff)
Optimizing: Tag arena allocations in SsaBuilder.
Replace GrowableArray with ArenaVector in SsaBuilder and tag allocations with a new arena allocation type. Change-Id: I27312c51d7be9d2ad02a974cce93b365c65c5fc4
Diffstat (limited to 'compiler/optimizing/nodes_test.cc')
-rw-r--r--compiler/optimizing/nodes_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/optimizing/nodes_test.cc b/compiler/optimizing/nodes_test.cc
index fef77aa0ed..8eeac56ceb 100644
--- a/compiler/optimizing/nodes_test.cc
+++ b/compiler/optimizing/nodes_test.cc
@@ -133,8 +133,8 @@ TEST(Node, ParentEnvironment) {
HEnvironment* environment = new (&allocator) HEnvironment(
&allocator, 1, graph->GetDexFile(), graph->GetMethodIdx(), 0, kStatic, with_environment);
- GrowableArray<HInstruction*> array(&allocator, 1);
- array.Add(parameter1);
+ ArenaVector<HInstruction*> array(allocator.Adapter());
+ array.push_back(parameter1);
environment->CopyFrom(array);
with_environment->SetRawEnvironment(environment);