Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 52) sorted by relevance

123

/art/runtime/base/
Dhash_map.h31 size_t operator()(const std::pair<Key, Value>& pair) const { in operator()
32 return fn_(pair.first); in operator()
39 bool operator()(const std::pair<Key, Value>& a, const std::pair<Key, Value>& b) const { in operator()
43 bool operator()(const std::pair<Key, Value>& a, const Element& element) const { in operator()
53 class Alloc = std::allocator<std::pair<Key, Value>>>
54 class HashMap : public HashSet<std::pair<Key, Value>, EmptyFn, HashMapWrapper<HashFn>,
Dhash_set_test.cc203 void MakeEmpty(std::pair<std::string, int>& pair) const { in MakeEmpty()
204 pair.first.clear(); in MakeEmpty()
206 bool IsEmpty(const std::pair<std::string, int>& pair) const { in IsEmpty()
207 return pair.first.empty(); in IsEmpty()
Dmutex.cc243 for (const auto& pair : most_common_blocked) { in DumpContention() local
244 if (pair.second > max_tid_count) { in DumpContention()
245 max_tid = pair.first; in DumpContention()
246 max_tid_count = pair.second; in DumpContention()
254 for (const auto& pair : most_common_blocker) { in DumpContention() local
255 if (pair.second > max_tid_count) { in DumpContention()
256 max_tid = pair.first; in DumpContention()
257 max_tid_count = pair.second; in DumpContention()
Dallocator.h149 Key, T, Compare, TrackingAllocator<std::pair<Key, T>, kTag>> {
/art/compiler/dex/quick/mips/
Dutility_mips.cc470 bool pair = r_dest.IsPair(); in LoadBaseDispBody() local
475 if (!pair) { in LoadBaseDispBody()
478 pair = 1; in LoadBaseDispBody()
518 if (!pair) { in LoadBaseDispBody()
525 if (pair) { in LoadBaseDispBody()
542 AnnotateDalvikRegAccess(load, (displacement + (pair ? LOWORD_OFFSET : 0)) >> 2, in LoadBaseDispBody()
543 true /* is_load */, pair /* is64bit */); in LoadBaseDispBody()
544 if (pair) { in LoadBaseDispBody()
546 true /* is_load */, pair /* is64bit */); in LoadBaseDispBody()
581 bool pair = r_src.IsPair(); in StoreBaseDispBody() local
[all …]
/art/runtime/
Dsafe_map.h31 typename Allocator = TrackingAllocator<std::pair<const K, V>, kAllocatorTagSafeMap>>
90 std::pair<iterator, bool> result = map_.emplace(k, v); in Put()
107 std::pair<iterator, bool> result = map_.insert(std::make_pair(k, v)); in Overwrite()
136 Key, T, Compare, TrackingAllocator<std::pair<Key, T>, kTag>> {
Dtransaction.cc167 typedef std::pair<mirror::Object*, mirror::Object*> ObjectPair; in VisitObjectLogs()
182 for (const ObjectPair& pair : moving_roots) { in VisitObjectLogs() local
183 mirror::Object* old_root = pair.first; in VisitObjectLogs()
184 mirror::Object* new_root = pair.second; in VisitObjectLogs()
195 typedef std::pair<mirror::Array*, mirror::Array*> ArrayPair; in VisitArrayLogs()
209 for (const ArrayPair& pair : moving_roots) { in VisitArrayLogs() local
210 mirror::Array* old_root = pair.first; in VisitArrayLogs()
211 mirror::Array* new_root = pair.second; in VisitArrayLogs()
Dclass_reference.h28 typedef std::pair<const DexFile*, uint32_t> ClassReference;
Dmonitor_test.cc37 for (std::pair<std::string, const void*>& pair : *options) { in SetUpRuntimeOptions()
38 if (pair.first.find("-Xmx") == 0) { in SetUpRuntimeOptions()
39 pair.first = "-Xmx4M"; // Smallest we can go. in SetUpRuntimeOptions()
Ddex_file.h999 void MakeEmpty(std::pair<const char*, const ClassDef*>& pair) const { in MakeEmpty()
1000 pair.first = nullptr; in MakeEmpty()
1001 pair.second = nullptr; in MakeEmpty()
1003 bool IsEmpty(const std::pair<const char*, const ClassDef*>& pair) const { in IsEmpty()
1004 if (pair.first == nullptr) { in IsEmpty()
1005 DCHECK(pair.second == nullptr); in IsEmpty()
Dprofiler.h44 typedef std::pair<mirror::ArtMethod*, uint32_t> InstructionLocation;
134 typedef std::map<std::pair<uint32_t, std::string>, uint32_t> PreviousContextMap;
Dparsed_options.h35 typedef std::vector<std::pair<std::string, const void*>> RuntimeOptions;
Dcommon_runtime_test.h36 typedef std::vector<std::pair<std::string, const void*>> RuntimeOptions;
/art/compiler/dex/quick/x86/
Dutility_x86.cc639 bool pair = r_dest.IsPair(); in LoadBaseIndexedDisp() local
647 } else if (!pair) { in LoadBaseIndexedDisp()
691 if (!pair) { in LoadBaseIndexedDisp()
707 AnnotateDalvikRegAccess(load, (displacement + (pair ? LOWORD_OFFSET : 0)) >> 2, in LoadBaseIndexedDisp()
709 if (pair) { in LoadBaseIndexedDisp()
715 if (!pair) { in LoadBaseIndexedDisp()
786 bool pair = r_src.IsPair(); in StoreBaseIndexedDisp() local
794 } else if (!pair) { in StoreBaseIndexedDisp()
833 if (!pair) { in StoreBaseIndexedDisp()
842 AnnotateDalvikRegAccess(store, (displacement + (pair ? LOWORD_OFFSET : 0)) >> 2, in StoreBaseIndexedDisp()
[all …]
/art/compiler/dex/
Dmir_field_info.cc66 std::pair<bool, bool> fast_path = compiler_driver->IsFastInstanceField( in Resolve()
114 std::pair<bool, bool> fast_path = compiler_driver->IsFastStaticField( in Resolve()
/art/compiler/utils/
Dscoped_hashtable.h52 scopes.front().insert(std::pair< K, V >(k, v)); in Add()
/art/compiler/sea_ir/code_gen/
Dcode_gen.h46 blocks_.insert(std::pair<int, llvm::BasicBlock*>(region_id, block)); in AddBlock()
64 values_.insert(std::pair<int, llvm::Value*>(instruction_id, value)); in AddValue()
/art/compiler/sea_ir/ir/
Dsea.cc213 target_regions.insert(std::pair<const uint16_t*, Region*>(&code[i + offset], region)); in BuildMethodSeaGraph()
219 std::pair<const uint16_t*, Region*>(&code[i + inst->SizeInCodeUnits()], region)); in BuildMethodSeaGraph()
314 blocks.insert(std::pair<int, std::set<Region*>>(reg_def, std::set<Region*>())); in ConvertToSSA()
486 de_defs_.insert(std::pair<int, InstructionNode*>(reg_no, *inst_it)); in ComputeDownExposedDefs()
524 std::pair<int const, std::set<InstructionNode*>*>(de_def->first, solo_def)); in UpdateReachingDefs()
539 std::pair<int, std::set<sea_ir::InstructionNode*>*>( in UpdateReachingDefs()
/art/runtime/entrypoints/quick/
Dquick_trampoline_entrypoints.cc556 std::vector<std::pair<jobject, StackReference<mirror::Object>*>> references_;
598 for (const auto& pair : references_) { in FixupReferences() local
599 pair.second->Assign(soa_->Decode<mirror::Object*>(pair.first)); in FixupReferences()
600 soa_->Env()->DeleteLocalRef(pair.first); in FixupReferences()
675 std::vector<std::pair<jobject, StackReference<mirror::Object>*> > references_;
692 for (const auto& pair : references_) { in FixupReferences() local
693 pair.second->Assign(soa_->Decode<mirror::Object*>(pair.first)); in FixupReferences()
694 soa_->Env()->DeleteLocalRef(pair.first); in FixupReferences()
/art/runtime/jdwp/
Dobject_registry.cc113 for (const auto& pair : object_to_entry_) { in Clear() local
114 const ObjectRegistryEntry* entry = pair.second; in Clear()
/art/compiler/driver/
Dcompiler_driver-inl.h95 inline std::pair<bool, bool> CompilerDriver::IsFastInstanceField( in IsFastInstanceField()
107 inline std::pair<bool, bool> CompilerDriver::IsFastStaticField( in IsFastStaticField()
Dcompiler_driver.cc438 for (auto& pair : compiled_methods_) { in ~CompilerDriver() local
439 CompiledMethod::ReleaseSwapAllocatedCompiledMethod(this, pair.second); in ~CompilerDriver()
649 std::set<std::pair<uint16_t, const DexFile*>>& exceptions_to_resolve) in ResolveExceptionsForMethod()
673 std::pair<uint16_t, const DexFile*>(encoded_catch_handler_handlers_type_idx, in ResolveExceptionsForMethod()
688 std::set<std::pair<uint16_t, const DexFile*>>* exceptions_to_resolve = in ResolveCatchBlockExceptionsClassVisitor()
689 reinterpret_cast<std::set<std::pair<uint16_t, const DexFile*>>*>(arg); in ResolveCatchBlockExceptionsClassVisitor()
742 std::set<std::pair<uint16_t, const DexFile*>> unresolved_exception_types; in LoadImageClasses()
750 for (const std::pair<uint16_t, const DexFile*>& exception_type : unresolved_exception_types) { in LoadImageClasses()
786 std::pair<std::set<std::string>::iterator, bool> result = image_classes->insert(descriptor); in MaybeAddToImageClasses()
1086 std::pair<bool, bool> fast_path = IsFastInstanceField( in ComputeInstanceFieldInfo()
[all …]
/art/runtime/gc/space/
Dmalloc_space.h164 std::pair<const mirror::Object*, mirror::Class*> recent_freed_objects_[kRecentFreeCount];
Dlarge_object_space_test.cc46 std::vector<std::pair<mirror::Object*, size_t>> requests; in LargeObjectTest()
/art/compiler/
Dimage_writer.cc211 std::pair<BinSlot, uint32_t> slot_hash = *hash_it; in SetImageOffset()
500 bool operator()(const std::pair<size_t, size_t>& a, const std::pair<size_t, size_t>& b) { in operator ()()
548 std::set<std::pair<size_t, size_t>, SubstringComparator> existing_strings(( in ProcessStrings()
559 std::pair<size_t, size_t> new_string(num_chars - length, length); in ProcessStrings()
966 for (const std::pair<mirror::Object*, uint32_t>& hash_pair : saved_hashes_) { in CopyAndFixupObjects()

123