Home
last modified time | relevance | path

Searched refs:JniIdType (Results 1 – 16 of 16) sorted by relevance

/art/runtime/
Djni_id_type.h24 enum class JniIdType { enum
38 std::ostream& operator<<(std::ostream& os, JniIdType rhs);
Dparsed_options.cc410 .WithType<JniIdType>() in MakeParser()
411 .WithValueMap({{"true", JniIdType::kIndices}, in MakeParser()
412 {"false", JniIdType::kPointer}, in MakeParser()
413 {"swapable", JniIdType::kSwapablePointer}, in MakeParser()
414 {"pointer", JniIdType::kPointer}, in MakeParser()
415 {"indices", JniIdType::kIndices}, in MakeParser()
416 {"default", JniIdType::kDefault}}) in MakeParser()
Druntime.h910 JniIdType GetJniIdType() const { in GetJniIdType()
915 return GetJniIdType() == JniIdType::kSwapablePointer; in CanSetJniIdType()
920 void SetJniIdType(JniIdType t);
1294 JniIdType jni_ids_indirection_;
Druntime_options.def82 RUNTIME_OPTIONS_KEY (JniIdType, OpaqueJniIds, JniIdType::kDefault) // …
Dwell_known_classes.cc186 if (Runtime::Current()->GetJniIdType() != JniIdType::kSwapablePointer) { in CacheField()
212 if (Runtime::Current()->GetJniIdType() != JniIdType::kSwapablePointer) { in CacheMethod()
Druntime.cc1077 SetJniIdType(JniIdType::kIndices); in InitNonZygoteOrPostFork()
1079 SetJniIdType(JniIdType::kPointer); in InitNonZygoteOrPostFork()
3025 void Runtime::SetJniIdType(JniIdType t) { in SetJniIdType()
/art/runtime/jni/
Djni_internal.h95 if (kEnableIndexIds && Runtime::Current()->GetJniIdType() != JniIdType::kPointer) { in EncodeArtField()
105 if (kEnableIndexIds && Runtime::Current()->GetJniIdType() != JniIdType::kPointer) { in EncodeArtField()
116 if (kEnableIndexIds && Runtime::Current()->GetJniIdType() != JniIdType::kPointer) { in EncodeArtMethod()
127 if (kEnableIndexIds && Runtime::Current()->GetJniIdType() != JniIdType::kPointer) { in EncodeArtMethod()
Djni_id_manager.cc228 uintptr_t JniIdManager::GetNextId<ArtField>(JniIdType type) { in GetNextId()
229 DCHECK_EQ(type, JniIdType::kIndices); in GetNextId()
237 uintptr_t JniIdManager::GetNextId<ArtMethod>(JniIdType type) { in GetNextId()
238 DCHECK_EQ(type, JniIdType::kIndices); in GetNextId()
274 JniIdType id_type = runtime->GetJniIdType(); in EncodeGenericId()
275 if (id_type == JniIdType::kPointer || t == nullptr) { in EncodeGenericId()
506 if (Runtime::Current()->GetJniIdType() == JniIdType::kIndices && (t % 2) == 1) { in DecodeGenericId()
Djni_id_manager.h79 template <typename ArtType> uintptr_t GetNextId(JniIdType id)
Djni_internal.cc2999 return Runtime::Current()->GetJniIdType() == JniIdType::kPointer in GetJniNativeInterface()
/art/test/1972-jni-id-swap-indices/
Djni_id.cc53 Runtime::Current()->SetJniIdType(JniIdType::kPointer); in Java_Main_SetToPointerIds()
57 Runtime::Current()->SetJniIdType(JniIdType::kIndices); in Java_Main_SetToIndexIds()
Dinfo.txt1 Tests changing from SwapablePointer to indices for JniIdType
/art/test/1973-jni-id-swap-pointer/
Dinfo.txt1 Tests changing from SwapablePointer to indices for JniIdType
/art/openjdkjvmti/
Dti_extension.cc401 if (runtime->GetJniIdType() == art::JniIdType::kIndices && in GetExtensionFunctions()
654 if (runtime->GetJniIdType() == art::JniIdType::kIndices && in GetExtensionEvents()
/art/runtime/mirror/
Dclass_ext-inl.h49 if (UNLIKELY(Runtime::Current()->GetJniIdType() == JniIdType::kSwapablePointer)) { in EnsureJniIdsArrayPresent()
Dclass.cc1691 DCHECK_NE(Runtime::Current()->GetJniIdType(), JniIdType::kPointer) << "JNI Ids are pointers!"; in EnsureMethodIds()
1710 DCHECK_NE(Runtime::Current()->GetJniIdType(), JniIdType::kPointer) << "JNI Ids are pointers!"; in EnsureStaticFieldIds()
1728 DCHECK_NE(Runtime::Current()->GetJniIdType(), JniIdType::kPointer) << "JNI Ids are pointers!"; in EnsureInstanceFieldIds()