summaryrefslogtreecommitdiff
path: root/compiler/optimizing/side_effects_analysis.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2015-09-25 13:59:08 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2015-09-25 13:59:08 +0000
commitec7e44f7afe0ff48d4d1ae54a12d375e0392d24c (patch)
tree30ce5725c7258d6584a56f2c6382cee529df2cc2 /compiler/optimizing/side_effects_analysis.h
parente92ed9d31bae7ccd48b60aa921e9dd2ca96ac9db (diff)
parent2aaa4b5532d30c4e65d8892b556400bb61f9dc8c (diff)
Merge "Optimizing: Tag more arena allocations."
Diffstat (limited to 'compiler/optimizing/side_effects_analysis.h')
-rw-r--r--compiler/optimizing/side_effects_analysis.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/compiler/optimizing/side_effects_analysis.h b/compiler/optimizing/side_effects_analysis.h
index 9888140fb6..bac6088bf7 100644
--- a/compiler/optimizing/side_effects_analysis.h
+++ b/compiler/optimizing/side_effects_analysis.h
@@ -17,6 +17,7 @@
#ifndef ART_COMPILER_OPTIMIZING_SIDE_EFFECTS_ANALYSIS_H_
#define ART_COMPILER_OPTIMIZING_SIDE_EFFECTS_ANALYSIS_H_
+#include "base/arena_containers.h"
#include "nodes.h"
#include "optimization.h"
@@ -27,8 +28,10 @@ class SideEffectsAnalysis : public HOptimization {
explicit SideEffectsAnalysis(HGraph* graph)
: HOptimization(graph, kSideEffectsAnalysisPassName),
graph_(graph),
- block_effects_(graph->GetArena(), graph->GetBlocks().size(), SideEffects::None()),
- loop_effects_(graph->GetArena(), graph->GetBlocks().size(), SideEffects::None()) {}
+ block_effects_(graph->GetBlocks().size(),
+ graph->GetArena()->Adapter(kArenaAllocSideEffectsAnalysis)),
+ loop_effects_(graph->GetBlocks().size(),
+ graph->GetArena()->Adapter(kArenaAllocSideEffectsAnalysis)) {}
SideEffects GetLoopEffects(HBasicBlock* block) const;
SideEffects GetBlockEffects(HBasicBlock* block) const;
@@ -51,11 +54,11 @@ class SideEffectsAnalysis : public HOptimization {
// Side effects of individual blocks, that is the union of the side effects
// of the instructions in the block.
- GrowableArray<SideEffects> block_effects_;
+ ArenaVector<SideEffects> block_effects_;
// Side effects of loops, that is the union of the side effects of the
// blocks contained in that loop.
- GrowableArray<SideEffects> loop_effects_;
+ ArenaVector<SideEffects> loop_effects_;
ART_FRIEND_TEST(GVNTest, LoopSideEffects);
DISALLOW_COPY_AND_ASSIGN(SideEffectsAnalysis);