Lines Matching refs:pointer_size
48 PointerSize pointer_size) { in ImtConflictTable() argument
49 const size_t count = other->NumEntries(pointer_size); in ImtConflictTable()
51 SetInterfaceMethod(i, pointer_size, other->GetInterfaceMethod(i, pointer_size)); in ImtConflictTable()
52 SetImplementationMethod(i, pointer_size, other->GetImplementationMethod(i, pointer_size)); in ImtConflictTable()
54 SetInterfaceMethod(count, pointer_size, interface_method); in ImtConflictTable()
55 SetImplementationMethod(count, pointer_size, implementation_method); in ImtConflictTable()
57 SetInterfaceMethod(count + 1, pointer_size, nullptr); in ImtConflictTable()
58 SetImplementationMethod(count + 1, pointer_size, nullptr); in ImtConflictTable()
62 ImtConflictTable(size_t num_entries, PointerSize pointer_size) { in ImtConflictTable() argument
63 SetInterfaceMethod(num_entries, pointer_size, nullptr); in ImtConflictTable()
64 SetImplementationMethod(num_entries, pointer_size, nullptr); in ImtConflictTable()
68 void SetInterfaceMethod(size_t index, PointerSize pointer_size, ArtMethod* method) { in SetInterfaceMethod() argument
69 SetMethod(index * kMethodCount + kMethodInterface, pointer_size, method); in SetInterfaceMethod()
72 void SetImplementationMethod(size_t index, PointerSize pointer_size, ArtMethod* method) { in SetImplementationMethod() argument
73 SetMethod(index * kMethodCount + kMethodImplementation, pointer_size, method); in SetImplementationMethod()
76 ArtMethod* GetInterfaceMethod(size_t index, PointerSize pointer_size) const { in GetInterfaceMethod() argument
77 return GetMethod(index * kMethodCount + kMethodInterface, pointer_size); in GetInterfaceMethod()
80 ArtMethod* GetImplementationMethod(size_t index, PointerSize pointer_size) const { in GetImplementationMethod() argument
81 return GetMethod(index * kMethodCount + kMethodImplementation, pointer_size); in GetImplementationMethod()
84 void** AddressOfInterfaceMethod(size_t index, PointerSize pointer_size) { in AddressOfInterfaceMethod() argument
85 return AddressOfMethod(index * kMethodCount + kMethodInterface, pointer_size); in AddressOfInterfaceMethod()
88 void** AddressOfImplementationMethod(size_t index, PointerSize pointer_size) { in AddressOfImplementationMethod() argument
89 return AddressOfMethod(index * kMethodCount + kMethodImplementation, pointer_size); in AddressOfImplementationMethod()
93 bool Equals(ImtConflictTable* other, PointerSize pointer_size) const { in Equals() argument
94 size_t num = NumEntries(pointer_size); in Equals()
95 if (num != other->NumEntries(pointer_size)) { in Equals()
99 if (GetInterfaceMethod(i, pointer_size) != other->GetInterfaceMethod(i, pointer_size) || in Equals()
100 GetImplementationMethod(i, pointer_size) != in Equals()
101 other->GetImplementationMethod(i, pointer_size)) { in Equals()
112 void Visit(const Visitor& visitor, PointerSize pointer_size) NO_THREAD_SAFETY_ANALYSIS { in Visit() argument
115 ArtMethod* interface_method = GetInterfaceMethod(table_index, pointer_size); in Visit()
119 ArtMethod* implementation_method = GetImplementationMethod(table_index, pointer_size); in Visit()
123 SetInterfaceMethod(table_index, pointer_size, updated.first); in Visit()
126 SetImplementationMethod(table_index, pointer_size, updated.second); in Visit()
134 ArtMethod* Lookup(ArtMethod* interface_method, PointerSize pointer_size) const { in Lookup() argument
137 ArtMethod* current_interface_method = GetInterfaceMethod(table_index, pointer_size); in Lookup()
142 return GetImplementationMethod(table_index, pointer_size); in Lookup()
150 size_t NumEntries(PointerSize pointer_size) const { in NumEntries() argument
152 while (GetInterfaceMethod(table_index, pointer_size) != nullptr) { in NumEntries()
159 size_t ComputeSize(PointerSize pointer_size) const { in ComputeSize() argument
161 return ComputeSize(NumEntries(pointer_size), pointer_size); in ComputeSize()
166 static size_t ComputeSizeWithOneMoreEntry(ImtConflictTable* table, PointerSize pointer_size) { in ComputeSizeWithOneMoreEntry() argument
167 return table->ComputeSize(pointer_size) + EntrySize(pointer_size); in ComputeSizeWithOneMoreEntry()
171 static size_t ComputeSize(size_t num_entries, PointerSize pointer_size) { in ComputeSize() argument
172 return (num_entries + 1) * EntrySize(pointer_size); // Add one for null terminator. in ComputeSize()
175 static size_t EntrySize(PointerSize pointer_size) { in EntrySize() argument
176 return static_cast<size_t>(pointer_size) * static_cast<size_t>(kMethodCount); in EntrySize()
180 void** AddressOfMethod(size_t index, PointerSize pointer_size) { in AddressOfMethod() argument
181 if (pointer_size == PointerSize::k64) { in AddressOfMethod()
188 ArtMethod* GetMethod(size_t index, PointerSize pointer_size) const { in GetMethod() argument
189 if (pointer_size == PointerSize::k64) { in GetMethod()
196 void SetMethod(size_t index, PointerSize pointer_size, ArtMethod* method) { in SetMethod() argument
197 if (pointer_size == PointerSize::k64) { in SetMethod()