diff options
Diffstat (limited to 'compiler/dex/local_value_numbering.h')
-rw-r--r-- | compiler/dex/local_value_numbering.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/compiler/dex/local_value_numbering.h b/compiler/dex/local_value_numbering.h index dd8d2db8f4..535fba18b3 100644 --- a/compiler/dex/local_value_numbering.h +++ b/compiler/dex/local_value_numbering.h @@ -21,8 +21,7 @@ #include "compiler_internals.h" #include "global_value_numbering.h" -#include "utils/scoped_arena_allocator.h" -#include "utils/scoped_arena_containers.h" +#include "utils/arena_object.h" namespace art { @@ -31,7 +30,7 @@ class DexFile; // Enable/disable tracking values stored in the FILLED_NEW_ARRAY result. static constexpr bool kLocalValueNumberingEnableFilledNewArrayTracking = true; -class LocalValueNumbering { +class LocalValueNumbering : public DeletableArenaObject<kArenaAllocMisc> { private: static constexpr uint16_t kNoValue = GlobalValueNumbering::kNoValue; @@ -69,14 +68,6 @@ class LocalValueNumbering { uint16_t GetValueNumber(MIR* mir); - // LocalValueNumbering should be allocated on the ArenaStack (or the native stack). - static void* operator new(size_t size, ScopedArenaAllocator* allocator) { - return allocator->Alloc(sizeof(LocalValueNumbering), kArenaAllocMisc); - } - - // Allow delete-expression to destroy a LocalValueNumbering object without deallocation. - static void operator delete(void* ptr) { UNUSED(ptr); } - private: // A set of value names. typedef GlobalValueNumbering::ValueNameSet ValueNameSet; |