Home
last modified time | relevance | path

Searched refs:hash (Results 1 – 15 of 15) sorted by relevance

/art/runtime/
Dutf.cc73 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()
Dgc_map.h79 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()
Dclass_linker.h82 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)
Dclass_linker.cc2021 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 …]
Ddex_file.cc422 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()
Delf_file.cc791 Elf32_Word hash = elfhash(symbol_name.c_str()); in FindDynamicSymbol() local
792 Elf32_Word bucket_index = hash % GetHashBucketNum(); in FindDynamicSymbol()
Ddex_file.h656 const ClassDef* FindClassDef(const char* descriptor, size_t hash) const;
/art/compiler/utils/
Ddedupe_set_test.cc30 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/
Dcompiler_driver.h865 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/
Dhash_set.h55 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()
Dhash_map.h52 class HashFn = std::hash<Key>, class Pred = std::equal_to<Key>,
/art/test/004-SignalTest/src/
DMain.java33 int hash = o.hashCode(); in main() local
36 System.out.println("hash: " + hash); in main()
/art/compiler/
Delf_writer_quick.cc394 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/
Dinfo.txt1 Check that object hashCode and System.identityHashCode never cause the hash to change.
/art/runtime/native/
Ddalvik_system_DexFile.cc182 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()