From 33f7c8aa87831945c567f57c8b860f216c4371ae Mon Sep 17 00:00:00 2001 From: Vladimir Marko Date: Mon, 19 Nov 2018 10:22:01 +0000 Subject: Remove CompiledMethod dependency on CompilerDriver. Test: m test-art-host-gtest Change-Id: Ibee78d5c54d3ff8162258963fde25065b579a000 --- compiler/compiled_method.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'compiler/compiled_method.h') diff --git a/compiler/compiled_method.h b/compiler/compiled_method.h index 864ce585cf..75790c9f08 100644 --- a/compiler/compiled_method.h +++ b/compiler/compiled_method.h @@ -28,7 +28,6 @@ namespace art { template class ArrayRef; -class CompilerDriver; class CompiledMethodStorage; template class LengthPrefixedArray; @@ -39,7 +38,7 @@ class LinkerPatch; class CompiledCode { public: // For Quick to supply an code blob - CompiledCode(CompilerDriver* compiler_driver, + CompiledCode(CompiledMethodStorage* storage, InstructionSet instruction_set, const ArrayRef& quick_code); @@ -78,8 +77,8 @@ class CompiledCode { template static ArrayRef GetArray(const LengthPrefixedArray* array); - CompilerDriver* GetCompilerDriver() { - return compiler_driver_; + CompiledMethodStorage* GetStorage() { + return storage_; } template @@ -96,7 +95,7 @@ class CompiledCode { private: using InstructionSetField = BitField; - CompilerDriver* const compiler_driver_; + CompiledMethodStorage* const storage_; // Used to store the compiled code. const LengthPrefixedArray* const quick_code_; @@ -109,7 +108,7 @@ class CompiledMethod final : public CompiledCode { // Constructs a CompiledMethod. // Note: Consider using the static allocation methods below that will allocate the CompiledMethod // in the swap space. - CompiledMethod(CompilerDriver* driver, + CompiledMethod(CompiledMethodStorage* storage, InstructionSet instruction_set, const ArrayRef& quick_code, const ArrayRef& vmap_table, @@ -119,14 +118,14 @@ class CompiledMethod final : public CompiledCode { virtual ~CompiledMethod(); static CompiledMethod* SwapAllocCompiledMethod( - CompilerDriver* driver, + CompiledMethodStorage* storage, InstructionSet instruction_set, const ArrayRef& quick_code, const ArrayRef& vmap_table, const ArrayRef& cfi_info, const ArrayRef& patches); - static void ReleaseSwapAllocatedCompiledMethod(CompilerDriver* driver, CompiledMethod* m); + static void ReleaseSwapAllocatedCompiledMethod(CompiledMethodStorage* storage, CompiledMethod* m); bool IsIntrinsic() const { return GetPackedField(); -- cgit v1.2.3-59-g8ed1b