diff options
author | 2024-06-24 08:02:27 +0000 | |
---|---|---|
committer | 2024-06-24 16:03:27 +0000 | |
commit | b63adc919ba9a53f4fbad476356c702845821149 (patch) | |
tree | 8d286560ebaa6959ea90d68a06cea67c68196ebc /compiler/optimizing/code_generation_data.h | |
parent | 6a4404c7108ffe5cb3f63d1cfd01341c4ab8b189 (diff) |
Revert^3 "x86_64: Add JIT support for LoadMethodType."
This reverts commit d92a43f4310e2d634d6e8f24103fc1e27557d784.
Reason for revert: Failing 979-const-method-handle
https://ci.chromium.org/ui/p/art/builders/ci/host-x86_64-cms/10095/overview
Change-Id: I9b44d8cc66e98db074edfa90ce2ebab087e4b115
Diffstat (limited to 'compiler/optimizing/code_generation_data.h')
-rw-r--r-- | compiler/optimizing/code_generation_data.h | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/compiler/optimizing/code_generation_data.h b/compiler/optimizing/code_generation_data.h index 0d4db66ab4..e78ba8f574 100644 --- a/compiler/optimizing/code_generation_data.h +++ b/compiler/optimizing/code_generation_data.h @@ -23,12 +23,10 @@ #include "base/scoped_arena_allocator.h" #include "base/scoped_arena_containers.h" #include "code_generator.h" -#include "dex/proto_reference.h" #include "dex/string_reference.h" #include "dex/type_reference.h" #include "handle.h" #include "mirror/class.h" -#include "mirror/method_type.h" #include "mirror/object.h" #include "mirror/string.h" #include "stack_map_stream.h" @@ -84,24 +82,8 @@ class CodeGenerationData : public DeletableArenaObject<kArenaAllocCodeGenerator> return jit_class_roots_.size(); } - void ReserveJitMethodTypeRoot(ProtoReference proto_reference, - Handle<mirror::MethodType> method_type) { - jit_method_type_roots_.Overwrite(proto_reference, - reinterpret_cast64<uint64_t>(method_type.GetReference())); - } - - uint64_t GetJitMethodTypeRootIndex(ProtoReference proto_reference) const { - return jit_method_type_roots_.Get(proto_reference); - } - - size_t GetNumberOfJitMethodTypeRoots() const { - return jit_method_type_roots_.size(); - } - size_t GetNumberOfJitRoots() const { - return GetNumberOfJitStringRoots() + - GetNumberOfJitClassRoots() + - GetNumberOfJitMethodTypeRoots(); + return GetNumberOfJitStringRoots() + GetNumberOfJitClassRoots(); } void EmitJitRoots(/*out*/std::vector<Handle<mirror::Object>>* roots) @@ -115,9 +97,7 @@ class CodeGenerationData : public DeletableArenaObject<kArenaAllocCodeGenerator> jit_string_roots_(StringReferenceValueComparator(), allocator_.Adapter(kArenaAllocCodeGenerator)), jit_class_roots_(TypeReferenceValueComparator(), - allocator_.Adapter(kArenaAllocCodeGenerator)), - jit_method_type_roots_(ProtoReferenceValueComparator(), - allocator_.Adapter(kArenaAllocCodeGenerator)) { + allocator_.Adapter(kArenaAllocCodeGenerator)) { slow_paths_.reserve(kDefaultSlowPathsCapacity); } @@ -136,12 +116,6 @@ class CodeGenerationData : public DeletableArenaObject<kArenaAllocCodeGenerator> // Entries are initially added with a pointer in the handle zone, and `EmitJitRoots` // will compute all the indices. ScopedArenaSafeMap<TypeReference, uint64_t, TypeReferenceValueComparator> jit_class_roots_; - - // Maps a ProtoReference (dex_file, proto_index) to the index in the literal table. - // Entries are initially added with a pointer in the handle zone, and `EmitJitRoots` - // will compute all the indices. - ScopedArenaSafeMap<ProtoReference, uint64_t, ProtoReferenceValueComparator> - jit_method_type_roots_; }; } // namespace art |