/art/runtime/base/ |
H A D | variant_map.h | 27 // A variant map is a heterogenous, type safe key->value map. It allows 34 // TValue* Get(Key<T> key); // null if the value was never set, otherwise the value. 37 // void Set(Key<T> key, TValue value); 40 // Since the key is strongly typed at compile-time, it is impossible to accidentally 41 // read/write a value with a different type than the key at either compile-time or run-time. 92 // Clone the key, creating a copy of the contents. 95 // Delete a value whose runtime type is that of the non-erased key's TValue. 98 // Clone a value whose runtime type is that of the non-erased key's TValue. 101 // Compare one key to another (same as operator<). 134 // Instantiate a default value for this key 224 Get(const TKey<TValue>& key) argument 240 ScopedRemove(VariantMap& map, const TKey<TValue>& key) argument 253 ReleaseOrDefault(const TKey<TValue>& key) argument 273 Set(const TKey<TValue>& key, const TValue& value) argument 284 SetIfMissing(const TKey<TValue>& key, const TValue& value) argument 295 Remove(const TKey<TValue>& key) argument 375 InitializeParameters(const TK& key, const TValue& value, const Rest& ... rest) argument 401 GetKeyValueIterator(const TKey<TValue>& key) argument 419 GetValuePtr(const TKey<TValue>& key) argument [all...] |
H A D | hash_map.h | 35 size_t operator()(const Key& key) const { 36 return fn_(key);
|
/art/tools/dexfuzz/src/dexfuzz/ |
H A D | Options.java | 209 * Given a key-value option (one that features an =), handle it 210 * accordingly. Report an error and print usage info if the key is not 213 private static void handleKeyValueOption(String key, String value) { argument 214 if (key.equals("input")) { 216 } else if (key.equals("inputs")) { 226 } else if (key.equals("output")) { 228 } else if (key.equals("seed")) { 231 } else if (key.equals("method-mutations")) { 233 } else if (key.equals("min-methods")) { 235 } else if (key [all...] |
/art/compiler/utils/ |
H A D | dedupe_set.h | 74 StoreKey* Add(Thread* self, const InKey& key) { argument 79 HashType raw_hash = HashFunc()(key); 86 HashedInKey hashed_in_key(shard_hash, &key); 96 hashed_key.store_ptr = CreateStoreKey(key); 128 for (const HashedKey& key : keys_[shard]) { 129 DCHECK(key.store_ptr != nullptr); 130 if (key.store_hash == last_hash) { 140 last_hash = key.store_hash; 149 StoreKey* CreateStoreKey(const InKey& key) { argument 151 allocator_.construct(ret, key 155 DeleteStoreKey(StoreKey* key) argument [all...] |
H A D | test_dex_file_builder.h | 55 FieldKey key = { class_descriptor, type, name }; local 56 fields_.emplace(key, 0u); 236 FieldKey key = { class_descriptor, type, name }; local 237 auto it = fields_.find(key); 318 ProtoKey key = { local 324 key.shorty += (*args == '[') ? 'L' : *args; 336 key.args.emplace_back(arg_start, args); 338 return key;
|
/art/cmdline/ |
H A D | cmdline_parser_test.cc | 90 const TKey& key) { 91 auto* actual = map.Get(key); 101 return ::testing::AssertionFailure() << "key was not in the map"; 146 #define EXPECT_KEY_EXISTS(map, key) EXPECT_TRUE((map).Exists(key)) 147 #define EXPECT_KEY_VALUE(map, key, expected) EXPECT_TRUE(IsExpectedKeyValue(expected, map, key)) 155 #define _EXPECT_SINGLE_PARSE_EXISTS(argv, key) \ 160 EXPECT_KEY_EXISTS(args, key); \ 162 #define EXPECT_SINGLE_PARSE_EXISTS(argv, key) \ 88 IsExpectedKeyValue(const T& expected, const TMap& map, const TKey& key) argument [all...] |
H A D | cmdline_parser.h | 68 void SaveToMap(const TVariantMapKey<TArg>& key, TArg& value) { argument 69 variant_map_->Set(key, value); 74 TArg& GetOrCreateFromMap(const TVariantMapKey<TArg>& key) { argument 75 auto* ptr = variant_map_->Get(key); 77 variant_map_->Set(key, TArg()); 78 ptr = variant_map_->Get(key); 168 // Convenience type alias for the variant map key type definition. 171 // Write the results of this argument into the key. 172 // To look up the parsed arguments, get the map and then use this key with VariantMap::Get 173 CmdlineParser::Builder& IntoKey(const MapKey& key) { argument 311 IntoKey(const TVariantMapKey<Unit>& key) argument [all...] |
/art/test/701-easy-div-rem/ |
H A D | genMain.py | 28 for key, value in variables.iteritems(): 29 text = text.replace(str(key), str(value))
|
/art/compiler/dex/ |
H A D | global_value_numbering.h | 102 uint64_t key = BuildKey(op, operand1, operand2, modifier); local 103 auto lb = global_value_map_.lower_bound(key); 104 if (lb != global_value_map_.end() && lb->first == key) { 108 global_value_map_.PutBefore(lb, key, res); 116 uint64_t key = BuildKey(op, operand1, operand2, modifier); local 117 auto lb = global_value_map_.lower_bound(key); 118 if (lb != global_value_map_.end() && lb->first == key) {
|
H A D | global_value_numbering.cc | 151 ArrayLocation key = { base, index }; local 152 auto lb = array_location_map_.lower_bound(key); 153 if (lb != array_location_map_.end() && !cmp(key, lb->first)) { 158 auto it = array_location_map_.PutBefore(lb, key, location);
|
H A D | local_value_numbering.cc | 203 Map* map, const typename Map::key_type& key) { 204 auto lb = map->lower_bound(key); 205 if (lb == map->end() || map->key_comp()(key, lb->first)) { 206 lb = map->PutBefore(lb, key, AliasingValues(this)); 212 void LocalValueNumbering::UpdateAliasingValuesLoadVersion(const KeyType& key, argument 219 memory_version = Versions::StartMemoryVersion(gvn_, this, key); 233 Map* map, const typename Map::key_type& key, 236 // const_cast<LocalValueNumbering*>(lvn)->HandleAliasingValueGet(map. key, location) 239 auto it = map->find(key); 241 uint16_t start_version = Versions::StartMemoryVersion(gvn, lvn, key); 202 GetAliasingValues( Map* map, const typename Map::key_type& key) argument 231 AliasingValuesMergeGet(GlobalValueNumbering* gvn, const LocalValueNumbering* lvn, Map* map, const typename Map::key_type& key, uint16_t location) argument 257 HandleAliasingValuesGet(Map* map, const typename Map::key_type& key, uint16_t location) argument 278 HandleAliasingValuesPut(Map* map, const typename Map::key_type& key, uint16_t location, uint16_t value) argument 814 const typename Map::key_type& key = entry.first; local 1065 EscapedArrayClobberKey key = { reg, type }; local 1084 RangeCheckKey key = { array, index }; local 1569 RangeCheckKey key = { array, index }; local [all...] |
H A D | local_value_numbering.h | 284 AliasingValues* GetAliasingValues(Map* map, const typename Map::key_type& key); 287 void UpdateAliasingValuesLoadVersion(const KeyType& key, AliasingValues* values); 292 Map* map, const typename Map::key_type& key, 296 uint16_t HandleAliasingValuesGet(Map* map, const typename Map::key_type& key, 300 bool HandleAliasingValuesPut(Map* map, const typename Map::key_type& key,
|
/art/tools/dexfuzz/src/dexfuzz/executors/ |
H A D | Device.java | 64 private String checkForEnvVar(Map<String, String> envVars, String key) { argument 65 if (!envVars.containsKey(key)) { 66 Log.errorAndQuit("Cannot run a fuzzed program if $" + key + " is not set!"); 68 return envVars.get(key);
|
/art/compiler/optimizing/ |
H A D | stack_map_stream.h | 45 size_t operator()(DexRegisterLocation key) const { 46 // Concatenate `key`s fields to create a 64-bit value to be hashed. 48 (static_cast<int64_t>(key.kind_) << 32) | static_cast<int64_t>(key.value_);
|
/art/runtime/ |
H A D | oat.h | 101 const char* GetStoreValueByKey(const char* key) const; 102 bool GetStoreKeyValuePairByIndex(size_t index, const char** key, const char** value) const; 116 // Returns true if the value of the given key is "true", false otherwise. 117 bool IsKeyEnabled(const char* key) const;
|
H A D | oat.cc | 387 const char* OatHeader::GetStoreValueByKey(const char* key) const { 395 if (strcmp(key, ptr) == 0) { 396 // Same as key. Check if value is OK. 401 // Different from key. Advance over the value. 412 bool OatHeader::GetStoreKeyValuePairByIndex(size_t index, const char** key, argument 426 *key = maybe_key; 455 bool OatHeader::IsKeyEnabled(const char* key) const { 456 const char* key_value = GetStoreValueByKey(key);
|
H A D | instrumentation.cc | 542 void Instrumentation::ConfigureStubs(const char* key, InstrumentationLevel desired_level) { argument 543 // Store the instrumentation level for this key or remove it. 546 requested_instrumentation_levels_.erase(key); 549 requested_instrumentation_levels_.Overwrite(key, desired_level); 789 void Instrumentation::DisableDeoptimization(const char* key) { argument 793 UndeoptimizeEverything(key); 819 void Instrumentation::DeoptimizeEverything(const char* key) { argument 821 ConfigureStubs(key, InstrumentationLevel::kInstrumentWithInterpreter); 824 void Instrumentation::UndeoptimizeEverything(const char* key) { argument 827 ConfigureStubs(key, InstrumentationLeve 830 EnableMethodTracing(const char* key, bool needs_interpreter) argument 840 DisableMethodTracing(const char* key) argument [all...] |
H A D | instrumentation_test.cc | 138 void CheckConfigureStubs(const char* key, Instrumentation::InstrumentationLevel level) { argument 145 instr->ConfigureStubs(key, level); 215 const char* key, bool disable_deoptimization) 223 instrumentation->DisableDeoptimization(key); 229 void DeoptimizeEverything(Thread* self, const char* key, bool enable_deoptimization) 238 instrumentation->DeoptimizeEverything(key); 243 void UndeoptimizeEverything(Thread* self, const char* key, bool disable_deoptimization) 249 instrumentation->UndeoptimizeEverything(key); 251 instrumentation->DisableDeoptimization(key); 257 void EnableMethodTracing(Thread* self, const char* key, boo [all...] |
H A D | instrumentation.h | 144 void DisableDeoptimization(const char* key) 153 void DeoptimizeEverything(const char* key) 158 void UndeoptimizeEverything(const char* key) 182 void EnableMethodTracing(const char* key, 188 void DisableMethodTracing(const char* key) 367 // the caller must pass a unique key (a string) identifying it so we remind which 370 void ConfigureStubs(const char* key, InstrumentationLevel desired_instrumentation_level) 464 // by a string key.
|
H A D | oat_file.cc | 496 StringPiece key(oat_dex_file->GetDexFileLocation()); 497 oat_dex_files_.Put(key, oat_dex_file); 540 StringPiece key(dex_location); 541 // Try to find the key cheaply in the oat_dex_files_ map which holds dex locations 543 auto primary_it = oat_dex_files_.find(key); 552 auto secondary_lb = secondary_oat_dex_files_.lower_bound(key); 553 if (secondary_lb != secondary_oat_dex_files_.end() && key == secondary_lb->first) { 566 // Copy the key to the string_cache_ and store the result in secondary map. 567 string_cache_.emplace_back(key.data(), key [all...] |
/art/test/099-vmdebug/src/ |
H A D | Main.java | 143 long key = Long.valueOf(kv[0]); 145 if (key < 0 || value < 0) { 146 System.out.println("Got negative key or value " + bucket); 149 if (key < last_key) { 150 System.out.println("Got decreasing key " + bucket); 153 last_key = key;
|
/art/runtime/arch/ |
H A D | instruction_set_features_test.cc | 41 std::string key = StringPrintf("dalvik.vm.isa.%s.variant", GetInstructionSetString(kRuntimeISA)); local 43 if (property_get(key.c_str(), dex2oat_isa_variant, nullptr) > 0) {
|
/art/test/055-enum-performance/src/ |
H A D | Main.java | 123 static String basisValueOf(String key) { argument 125 if (s.equals(key)) {
|
/art/compiler/dex/quick/ |
H A D | codegen_util.cc | 565 int key = successor_block_info->key; local 567 LIR* boundary_lir = InsertCaseLabel(target, key); 570 Push32(&code_buffer_, key); 573 LOG(INFO) << " Case[" << elems << "] key: 0x" 574 << std::hex << key << ", disp: 0x" 589 int key = successor_block_info->key; local 590 DCHECK_EQ(elems + low_key, key); 592 LIR* boundary_lir = InsertCaseLabel(target, key); [all...] |
H A D | gen_common.cc | 2178 DCHECK_EQ(starting_key + i, successor_block_info->key); 2190 DCHECK_EQ(starting_key + i, successor_block_info->key); 2192 OpRegImm(kOpAdd, key_temp, 1); // Increment key. 2197 DCHECK_EQ(starting_key + i, successor_block_info->key); 2205 DCHECK_EQ(starting_key + i, successor_block_info->key); 2237 int key = successor_block_info->key; local 2238 OpCmpImmBranch(kCondEq, rl_src.reg, key, &block_label_list_[case_block_id]);
|