/art/runtime/ |
D | utf.cc | 73 int32_t hash = 0; in ComputeUtf16Hash() local 75 hash = hash * 31 + chars->Get(offset + i); in ComputeUtf16Hash() 77 return hash; in ComputeUtf16Hash() 81 int32_t hash = 0; in ComputeUtf16Hash() local 83 hash = hash * 31 + *chars++; in ComputeUtf16Hash() 85 return hash; in ComputeUtf16Hash() 89 size_t hash = 0; in ComputeModifiedUtf8Hash() local 91 hash = hash * 31 + *chars++; in ComputeModifiedUtf8Hash() 93 return hash; in ComputeModifiedUtf8Hash()
|
D | gc_map.h | 79 uint32_t hash = native_offset; in Hash() local 80 hash ^= (hash >> 20) ^ (hash >> 12); in Hash() 81 hash ^= (hash >> 7) ^ (hash >> 4); in Hash() 82 return hash; in Hash()
|
D | class_linker.h | 82 Thread* self, const char* descriptor, size_t hash, 99 mirror::Class* DefineClass(Thread* self, const char* descriptor, size_t hash, 106 mirror::Class* LookupClass(const char* descriptor, size_t hash, 402 mirror::Class* InsertClass(const char* descriptor, mirror::Class* klass, size_t hash) 459 mirror::Class* CreateArrayClass(Thread* self, const char* descriptor, size_t hash, 673 size_t hash) 676 mirror::Class* UpdateClass(const char* descriptor, mirror::Class* klass, size_t hash)
|
D | class_linker.cc | 2021 size_t hash, const std::vector<const DexFile*>& class_path) { in FindInClassPath() argument 2023 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor, hash); in FindInClassPath() 2033 size_t hash, in FindClassInPathClassLoader() argument 2041 ClassPathEntry pair = FindInClassPath(descriptor, hash, boot_class_path_); in FindClassInPathClassLoader() 2044 mirror::Class* klass = LookupClass(descriptor, hash, nullptr); in FindClassInPathClassLoader() 2048 klass = DefineClass(self, descriptor, hash, NullHandle<mirror::ClassLoader>(), *pair.first, in FindClassInPathClassLoader() 2096 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor, hash); in FindClassInPathClassLoader() 2099 mirror::Class* klass = DefineClass(self, descriptor, hash, class_loader, *dex_file, in FindClassInPathClassLoader() 2127 const size_t hash = ComputeModifiedUtf8Hash(descriptor); in FindClass() local 2129 mirror::Class* klass = LookupClass(descriptor, hash, class_loader.Get()); in FindClass() [all …]
|
D | dex_file.cc | 422 const DexFile::ClassDef* DexFile::FindClassDef(const char* descriptor, size_t hash) const { in FindClassDef() 423 DCHECK_EQ(ComputeModifiedUtf8Hash(descriptor), hash); in FindClassDef() 427 auto it = index->FindWithHash(descriptor, hash); in FindClassDef()
|
D | elf_file.cc | 791 Elf32_Word hash = elfhash(symbol_name.c_str()); in FindDynamicSymbol() local 792 Elf32_Word bucket_index = hash % GetHashBucketNum(); in FindDynamicSymbol()
|
D | dex_file.h | 656 const ClassDef* FindClassDef(const char* descriptor, size_t hash) const;
|
/art/compiler/utils/ |
D | dedupe_set_test.cc | 30 size_t hash = 0; in operator ()() local 32 hash += c; in operator ()() 33 hash += hash << 10; in operator ()() 34 hash += hash >> 6; in operator ()() 36 return hash; in operator ()()
|
/art/compiler/driver/ |
D | compiler_driver.h | 865 uint32_t hash = 0; in operator() local 878 hash ^= k; in operator() 879 hash = ((hash << r2) | (hash >> (32 - r2))) * m + n; in operator() 896 hash ^= k1; in operator() 899 hash ^= len; in operator() 900 hash ^= (hash >> 16); in operator() 901 hash *= 0x85ebca6b; in operator() 902 hash ^= (hash >> 13); in operator() 903 hash *= 0xc2b2ae35; in operator() 904 hash ^= (hash >> 16); in operator() [all …]
|
/art/runtime/base/ |
D | hash_set.h | 55 template <class T, class EmptyFn = DefaultEmptyFn<T>, class HashFn = std::hash<T>, 236 Iterator FindWithHash(const K& element, size_t hash) { in FindWithHash() argument 237 DCHECK_EQ(hashfn_(element), hash); in FindWithHash() 238 size_t index = IndexForHash(hash); in FindWithHash() 254 void InsertWithHash(const T& element, size_t hash) { in InsertWithHash() argument 255 DCHECK_EQ(hash, hashfn_(element)); in InsertWithHash() 260 const size_t index = FirstAvailableSlot(IndexForHash(hash)); in InsertWithHash() 322 size_t IndexForHash(size_t hash) const { in IndexForHash() argument 323 return hash % num_buckets_; in IndexForHash()
|
D | hash_map.h | 52 class HashFn = std::hash<Key>, class Pred = std::equal_to<Key>,
|
/art/test/004-SignalTest/src/ |
D | Main.java | 33 int hash = o.hashCode(); in main() local 36 System.out.println("hash: " + hash); in main()
|
/art/compiler/ |
D | elf_writer_quick.cc | 394 std::vector<Elf32_Word> hash = dynsym_builder_.GenerateHashContents(); in Write() local 397 LOG(INFO) << ".hash size (bytes)=" << hash.size() * sizeof(Elf32_Word) in Write() 398 << std::hex << " " << hash.size() * sizeof(Elf32_Word); in Write() 423 hash_builder_.section_.sh_size = hash.size() * sizeof(Elf32_Word); in Write() 580 hash.data(), hash.size() * sizeof(Elf32_Word))); in Write() 775 std::vector<Elf32_Word> hash; in GenerateHashContents() local 776 hash.push_back(nbuckets); in GenerateHashContents() 777 hash.push_back(chain_size); in GenerateHashContents() 778 uint32_t bucket_offset = hash.size(); in GenerateHashContents() 780 hash.resize(hash.size() + nbuckets + chain_size, 0); in GenerateHashContents() [all …]
|
/art/test/120-hashcode/ |
D | info.txt | 1 Check that object hashCode and System.identityHashCode never cause the hash to change.
|
/art/runtime/native/ |
D | dalvik_system_DexFile.cc | 182 const size_t hash(ComputeModifiedUtf8Hash(descriptor.c_str())); in DexFile_defineClassNative() local 184 const DexFile::ClassDef* dex_class_def = dex_file->FindClassDef(descriptor.c_str(), hash); in DexFile_defineClassNative() 192 mirror::Class* result = class_linker->DefineClass(soa.Self(), descriptor.c_str(), hash, in DexFile_defineClassNative()
|