diff options
author | 2017-10-09 10:24:27 +0000 | |
---|---|---|
committer | 2017-10-09 10:24:27 +0000 | |
commit | 464f8cd7385a9958c3171e2feaa93c726043bbf8 (patch) | |
tree | 3ad72d1411c91c68361a1179581decc0e4d96f03 /compiler/optimizing/liveness_test.cc | |
parent | e4c00b3af3ccf460e4b0332a04dc9eaeffee5c7a (diff) | |
parent | ca6fff898afcb62491458ae8bcd428bfb3043da1 (diff) |
Merge "ART: Use ScopedArenaAllocator for pass-local data."
Diffstat (limited to 'compiler/optimizing/liveness_test.cc')
-rw-r--r-- | compiler/optimizing/liveness_test.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/compiler/optimizing/liveness_test.cc b/compiler/optimizing/liveness_test.cc index 37b58ded59..7793965148 100644 --- a/compiler/optimizing/liveness_test.cc +++ b/compiler/optimizing/liveness_test.cc @@ -29,7 +29,10 @@ namespace art { -class LivenessTest : public CommonCompilerTest {}; +class LivenessTest : public OptimizingUnitTest { + protected: + void TestCode(const uint16_t* data, const char* expected); +}; static void DumpBitVector(BitVector* vector, std::ostream& buffer, @@ -43,10 +46,8 @@ static void DumpBitVector(BitVector* vector, buffer << ")\n"; } -static void TestCode(const uint16_t* data, const char* expected) { - ArenaPool pool; - ArenaAllocator allocator(&pool); - HGraph* graph = CreateCFG(&allocator, data); +void LivenessTest::TestCode(const uint16_t* data, const char* expected) { + HGraph* graph = CreateCFG(data); // `Inline` conditions into ifs. PrepareForRegisterAllocation(graph).Run(); std::unique_ptr<const X86InstructionSetFeatures> features_x86( |