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, const JniIdType& rhs);
Dparsed_options.cc376 .WithType<JniIdType>() in MakeParser()
377 .WithValueMap({{"true", JniIdType::kIndices}, in MakeParser()
378 {"false", JniIdType::kPointer}, in MakeParser()
379 {"swapable", JniIdType::kSwapablePointer}, in MakeParser()
380 {"pointer", JniIdType::kPointer}, in MakeParser()
381 {"indices", JniIdType::kIndices}, in MakeParser()
382 {"default", JniIdType::kDefault}}) in MakeParser()
Druntime.h914 JniIdType GetJniIdType() const { in GetJniIdType()
919 return GetJniIdType() == JniIdType::kSwapablePointer; in CanSetJniIdType()
924 void SetJniIdType(JniIdType t);
1302 JniIdType jni_ids_indirection_;
Druntime_options.def81 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.cc1078 SetJniIdType(JniIdType::kIndices); in InitNonZygoteOrPostFork()
1080 SetJniIdType(JniIdType::kPointer); in InitNonZygoteOrPostFork()
3029 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.cc227 uintptr_t JniIdManager::GetNextId<ArtField>(JniIdType type) { in GetNextId()
228 DCHECK_EQ(type, JniIdType::kIndices); in GetNextId()
236 uintptr_t JniIdManager::GetNextId<ArtMethod>(JniIdType type) { in GetNextId()
237 DCHECK_EQ(type, JniIdType::kIndices); in GetNextId()
273 JniIdType id_type = runtime->GetJniIdType(); in EncodeGenericId()
274 if (id_type == JniIdType::kPointer || t == nullptr) { in EncodeGenericId()
505 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.cc2966 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()
632 if (runtime->GetJniIdType() == art::JniIdType::kIndices && in GetExtensionEvents()
/art/runtime/mirror/
Dclass_ext-inl.h50 if (UNLIKELY(Runtime::Current()->GetJniIdType() == JniIdType::kSwapablePointer)) { in EnsureJniIdsArrayPresent()
Dclass.cc1715 DCHECK_NE(Runtime::Current()->GetJniIdType(), JniIdType::kPointer) << "JNI Ids are pointers!"; in EnsureMethodIds()
1734 DCHECK_NE(Runtime::Current()->GetJniIdType(), JniIdType::kPointer) << "JNI Ids are pointers!"; in EnsureStaticFieldIds()
1752 DCHECK_NE(Runtime::Current()->GetJniIdType(), JniIdType::kPointer) << "JNI Ids are pointers!"; in EnsureInstanceFieldIds()