Home
last modified time | relevance | path

Searched refs:GetCurrent (Results 1 – 25 of 305) sorted by relevance

12345678910>>...13

/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_string.h33 … LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::ETS); in CreateFromMUtf8()
35 ThrowNullPointerException(ctx, ManagedThread::GetCurrent()); in CreateFromMUtf8()
39 …coretypes::String *s = coretypes::String::CreateFromMUtf8(data, ctx, Runtime::GetCurrent()->GetPan… in CreateFromMUtf8()
46 … LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::ETS); in CreateFromMUtf8()
49 coretypes::String::CreateEmptyString(ctx, Runtime::GetCurrent()->GetPandaVM())); in CreateFromMUtf8()
52 ThrowNullPointerException(ctx, ManagedThread::GetCurrent()); in CreateFromMUtf8()
57 … coretypes::String::CreateFromMUtf8(data, length, ctx, Runtime::GetCurrent()->GetPandaVM()); in CreateFromMUtf8()
64 … LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::ETS); in CreateFromUtf8()
67 coretypes::String::CreateEmptyString(ctx, Runtime::GetCurrent()->GetPandaVM())); in CreateFromUtf8()
70 ThrowNullPointerException(ctx, ManagedThread::GetCurrent()); in CreateFromUtf8()
[all …]
/arkcompiler/runtime_core/static_core/compiler/tests/
Dpanda_runner.cpp23 ManagedThread::GetCurrent()->SetCurrentFrameIsCompiled(true); in PandaRunnerHookAArch64()
24 auto fp = reinterpret_cast<uintptr_t>(ManagedThread::GetCurrent()->GetCurrentFrame()); in PandaRunnerHookAArch64()
25 auto lr = ManagedThread::GetCurrent()->GetNativePc(); in PandaRunnerHookAArch64()
32 ManagedThread::GetCurrent()->SetCurrentFrameIsCompiled(true); in PandaRunnerHook()
33 ManagedThread::GetCurrent()->SetCurrentFrame(reinterpret_cast<Frame *>(fp)); in PandaRunnerHook()
34 ManagedThread::GetCurrent()->SetNativePc(lr); in PandaRunnerHook()
/arkcompiler/runtime_core/static_core/runtime/
Dhandle_scope-inl.h27 ASSERT(!MTManagedThread::ThreadIsMTManagedThread(Thread::GetCurrent()) || in HandleScope()
28 …!PandaVM::GetCurrent()->GetGC()->IsGCRunning() || PandaVM::GetCurrent()->GetMutatorLock()->HasLock… in HandleScope()
40 ASSERT(!MTManagedThread::ThreadIsMTManagedThread(Thread::GetCurrent()) || in HandleScope()
41 …!PandaVM::GetCurrent()->GetGC()->IsGCRunning() || PandaVM::GetCurrent()->GetMutatorLock()->HasLock… in HandleScope()
53 ASSERT(!MTManagedThread::ThreadIsMTManagedThread(Thread::GetCurrent()) || in ~HandleScope()
54 …!PandaVM::GetCurrent()->GetGC()->IsGCRunning() || PandaVM::GetCurrent()->GetMutatorLock()->HasLock… in ~HandleScope()
Dexceptions.cpp52 auto *thread = ManagedThread::GetCurrent(); in ThrowNullPointerException()
71 auto *thread = ManagedThread::GetCurrent(); in ThrowArrayIndexOutOfBoundsException()
88 auto *thread = ManagedThread::GetCurrent(); in ThrowIndexOutOfBoundsException()
98 auto *thread = ManagedThread::GetCurrent(); in ThrowIllegalStateException()
105 auto *thread = ManagedThread::GetCurrent(); in ThrowStringIndexOutOfBoundsException()
117 auto *thread = ManagedThread::GetCurrent(); in ThrowNegativeArraySizeException()
127 auto *thread = ManagedThread::GetCurrent(); in ThrowNegativeArraySizeException()
135 auto *thread = ManagedThread::GetCurrent(); in ThrowArithmeticException()
143 auto *thread = ManagedThread::GetCurrent(); in ThrowClassCastException()
154 auto *thread = ManagedThread::GetCurrent(); in ThrowAbstractMethodError()
[all …]
Dlocks.cpp62 Thread::GetCurrent()->SetLockState(RDLOCK); in ReadLock()
70 Thread::GetCurrent()->SetLockState(WRLOCK); in WriteLock()
78 Thread::GetCurrent()->SetLockState(RDLOCK); in TryReadLock()
88 Thread::GetCurrent()->SetLockState(WRLOCK); in TryWriteLock()
98 Thread::GetCurrent()->SetLockState(UNLOCKED); in Unlock()
103 return Thread::GetCurrent()->GetLockState(); in GetState()
108 auto state = Thread::GetCurrent()->GetLockState(); in HasLock()
/arkcompiler/runtime_core/static_core/runtime/tests/
Dstring_test.cpp58 return Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY); in GetLanguageContext()
63 thread_ = panda::MTManagedThread::GetCurrent(); in SetUp()
88 …String::CreateFromMUtf8(data.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->Get… in TEST_F()
103 …String::CreateFromMUtf8(data.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->Get… in TEST_F()
113 …ateFromMUtf8(data1.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F()
123 …ateFromMUtf8(data1.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F()
133 …ateFromMUtf8(data1.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F()
143 …ateFromMUtf8(data1.data(), utf16Length, GetLanguageContext(), Runtime::GetCurrent()->GetPandaVM()); in TEST_F()
151 …String::CreateFromUtf16(data.data(), data.size(), GetLanguageContext(), Runtime::GetCurrent()->Get… in TEST_F()
166 Runtime::GetCurrent()->GetPandaVM()); in TEST_F()
[all …]
Dmonitor_test.cpp40 thread_ = panda::MTManagedThread::GetCurrent(); in MonitorTest()
65 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in TEST_F()
66 …Class *cls = Runtime::GetCurrent()->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::O… in TEST_F()
76 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in TEST_F()
77 …Class *cls = Runtime::GetCurrent()->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::O… in TEST_F()
91 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in TEST_F()
92 …Class *cls = Runtime::GetCurrent()->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::O… in TEST_F()
111 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in TEST_F()
112 …Class *cls = Runtime::GetCurrent()->GetClassLinker()->GetExtension(ctx)->GetClassRoot(ClassRoot::O… in TEST_F()
114 auto thread = MTManagedThread::GetCurrent(); in TEST_F()
[all …]
Dexception_test.cpp86 thread_ = panda::MTManagedThread::GetCurrent(); in CreateRuntime()
151 ClassLinker *classLinker = Runtime::GetCurrent()->GetClassLinker(); in TEST_F()
166 Value result = method->Invoke(ManagedThread::GetCurrent(), args.data()); in TEST_F()
234 ClassLinker *classLinker = Runtime::GetCurrent()->GetClassLinker(); in TEST_F()
249 Value result = method->Invoke(ManagedThread::GetCurrent(), args.data()); in TEST_F()
320 ClassLinker *classLinker = Runtime::GetCurrent()->GetClassLinker(); in TEST_F()
335 Value result = method->Invoke(ManagedThread::GetCurrent(), args.data()); in TEST_F()
406 ClassLinker *classLinker = Runtime::GetCurrent()->GetClassLinker(); in TEST_F()
421 Value result = method->Invoke(ManagedThread::GetCurrent(), args.data()); in TEST_F()
493 ClassLinker *classLinker = Runtime::GetCurrent()->GetClassLinker(); in TEST_F()
[all …]
Dtest_utils.h32 auto *vm = Runtime::GetCurrent()->GetPandaVM(); in AllocateNullifiedPayloadString()
34 auto *stringClass = Runtime::GetCurrent() in AllocateNullifiedPayloadString()
47 Runtime *runtime = Runtime::GetCurrent(); in AllocNonMovableObject()
57 Runtime *runtime = Runtime::GetCurrent(); in AllocArray()
69 Runtime *runtime = Runtime::GetCurrent(); in AllocString()
78 Runtime *runtime = Runtime::GetCurrent(); in AllocObjectInYoung()
Dinterpreter_test_resolve_field.cpp73 thread_ = panda::MTManagedThread::GetCurrent(); in InterpreterTestResolveField()
95 ClassLinker *classLinker = Runtime::GetCurrent()->GetClassLinker(); in TEST_F()
109 Value v = method->Invoke(ManagedThread::GetCurrent(), args.data()); in TEST_F()
110 ASSERT_FALSE(ManagedThread::GetCurrent()->HasPendingException()); in TEST_F()
124 Value v = method->Invoke(ManagedThread::GetCurrent(), args.data()); in TEST_F()
125 ASSERT_FALSE(ManagedThread::GetCurrent()->HasPendingException()); in TEST_F()
Dstring_table_test.cpp60 thread_ = panda::MTManagedThread::GetCurrent(); in StringTableTest()
73 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in AllocUtf8String()
75 Runtime::GetCurrent()->GetPandaVM(), isMovable); in AllocUtf8String()
106 … Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY)); in InternCompressedUtf8AndString()
108 … string, Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY)); in InternCompressedUtf8AndString()
120 …data.data(), 2, Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY)); in InternUncompressedUtf8AndString()
122 … string, Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSEMBLY)); in InternUncompressedUtf8AndString()
133 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in InternTheSameUtf16String()
135 …coretypes::String::CreateFromUtf16(data.data(), data.size(), ctx, Runtime::GetCurrent()->GetPandaV… in InternTheSameUtf16String()
137 …coretypes::String::CreateFromUtf16(data.data(), data.size(), ctx, Runtime::GetCurrent()->GetPandaV… in InternTheSameUtf16String()
[all …]
Dmultithreaded_intern_string_table_test.cpp61 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in AllocUtf8String()
63 Runtime::GetCurrent()->GetPandaVM()); in AllocUtf8String()
69 thread_ = panda::MTManagedThread::GetCurrent(); in SetUp()
156 …panda::MTManagedThread::Create(panda::Runtime::GetCurrent(), panda::Runtime::GetCurrent()->GetPand… in TestThreadEntry()
158 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in TestThreadEntry()
176 …panda::MTManagedThread::Create(panda::Runtime::GetCurrent(), panda::Runtime::GetCurrent()->GetPand… in TestConcurrentInsertion()
178 …LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(panda_file::SourceLang::PANDA_ASSE… in TestConcurrentInsertion()
Dg1gc_test.cpp89 Runtime *runtime = Runtime::GetCurrent(); in GetHumongousArrayLength()
105 Runtime *runtime = Runtime::GetCurrent(); in GetAllocator()
122 obj_(MTManagedThread::GetCurrent(), obj), in RemSetChecker()
123 ref_(MTManagedThread::GetCurrent(), ref) in RemSetChecker()
162 MTManagedThread *thread = MTManagedThread::GetCurrent(); in TEST_F()
199 MTManagedThread *thread = MTManagedThread::GetCurrent(); in TEST_F()
208 Runtime *runtime = Runtime::GetCurrent(); in TEST_F()
210 ClassLinker *classLinker = Runtime::GetCurrent()->GetClassLinker(); in TEST_F()
211 MTManagedThread *thread = MTManagedThread::GetCurrent(); in TEST_F()
247 Runtime *runtime = Runtime::GetCurrent(); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/runtime/scheduler/
Dtask.cpp25 …: ManagedThread(-1, Runtime::GetCurrent()->GetInternalAllocator(), vm, Thread::ThreadType::THREAD_… in Task()
32 auto allocator = Runtime::GetCurrent()->GetInternalAllocator(); in Create()
46 ASSERT(this == Task::GetCurrent()); in Destroy()
49 auto allocator = Runtime::GetCurrent()->GetInternalAllocator(); in Destroy()
57 workerThread_ = WorkerThread::GetCurrent(); in SwitchFromWorkerThread()
64 auto task = Task::GetCurrent(); in SuspendCurrent()
73 auto task = Task::GetCurrent(); in EndCurrent()
Dworker_thread.cpp26 ASSERT(Thread::GetCurrent() == nullptr); in Create()
27 auto allocator = Runtime::GetCurrent()->GetInternalAllocator(); in Create()
46 return WorkerThread::Create(Runtime::GetCurrent()->GetPandaVM()); in AttachThread()
51 ASSERT(this == WorkerThread::GetCurrent()); in Destroy()
53 auto allocator = Runtime::GetCurrent()->GetInternalAllocator(); in Destroy()
/arkcompiler/runtime_core/static_core/runtime/scheduler/tests/
Dworker_thread_test.cpp39 mainThread_ = Thread::GetCurrent(); in WorkerThreadTest()
59 ASSERT_EQ(wt, WorkerThread::GetCurrent()); in TEST_F()
60 auto tk1 = Task::Create(Runtime::GetCurrent()->GetPandaVM()); in TEST_F()
63 ASSERT_EQ(tk1, Task::GetCurrent()); in TEST_F()
64 auto tk2 = Task::Create(Runtime::GetCurrent()->GetPandaVM()); in TEST_F()
68 ASSERT_EQ(tk2, Task::GetCurrent()); in TEST_F()
/arkcompiler/runtime_core/compiler/optimizer/ir/
Dbasicblock.h689 Inst *GetCurrent() const in GetCurrent() function
754 return InstForwardIterator(this->GetCurrent()); in begin()
763 this->SetCurrent(this->GetCurrent()->GetNext());
768 return this->GetCurrent() != other.GetCurrent();
772 return this->GetCurrent() == other.GetCurrent();
799 return this->GetCurrent() != other.GetCurrent();
803 return this->GetCurrent() == other.GetCurrent();
830 return InstBackwardIterator(this->GetCurrent()); in begin()
839 this->SetCurrent(this->GetCurrent()->GetPrev());
844 return this->GetCurrent() != other.GetCurrent();
[all …]
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/
Dbasicblock.h727 Inst *GetCurrent() const in GetCurrent() function
792 return InstForwardIterator(this->GetCurrent()); in begin()
801 this->SetCurrent(this->GetCurrent()->GetNext());
806 return this->GetCurrent() != other.GetCurrent();
810 return this->GetCurrent() == other.GetCurrent();
837 return this->GetCurrent() != other.GetCurrent();
841 return this->GetCurrent() == other.GetCurrent();
868 return InstBackwardIterator(this->GetCurrent()); in begin()
877 this->SetCurrent(this->GetCurrent()->GetPrev());
882 return this->GetCurrent() != other.GetCurrent();
[all …]
/arkcompiler/runtime_core/static_core/runtime/entrypoints/
Dentrypoints.cpp81 StackWalker::Create(ManagedThread::GetCurrent()).Verify(); \
105 ManagedThread *thread = ManagedThread::GetCurrent(); in InterpreterEntryPoint()
140 ASSERT(size <= Thread::GetCurrent()->GetVM()->GetHeapManager()->GetTLABMaxAllocSize()); in WriteTlabStatsEntrypoint()
144 [[maybe_unused]] auto tlab = reinterpret_cast<size_t>(ManagedThread::GetCurrent()->GetTLAB()); in WriteTlabStatsEntrypoint()
145 … EVENT_TLAB_ALLOC(ManagedThread::GetCurrent()->GetId(), tlab, reinterpret_cast<size_t>(mem), size); in WriteTlabStatsEntrypoint()
147 auto memStats = Thread::GetCurrent()->GetVM()->GetHeapManager()->GetMemStats(); in WriteTlabStatsEntrypoint()
166 EVENT_SLOWPATH_ALLOC(ManagedThread::GetCurrent()->GetId()); in CreateArraySlowPathEntrypoint()
203 auto vm = ManagedThread::GetCurrent()->GetVM(); in CreateEmptyStringEntrypoint()
215 auto vm = ManagedThread::GetCurrent()->GetVM(); in CreateStringFromStringEntrypoint()
227 auto vm = ManagedThread::GetCurrent()->GetVM(); in CreateStringFromCharsEntrypoint()
[all …]
/arkcompiler/runtime_core/static_core/runtime/include/
Dclass_linker-inl.h29 ASSERT(!MTManagedThread::ThreadIsMTManagedThread(Thread::GetCurrent()) || in GetClass()
30 …!PandaVM::GetCurrent()->GetGC()->IsGCRunning() || PandaVM::GetCurrent()->GetMutatorLock()->HasLock… in GetClass()
36 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(caller); in GetClass()
49 LanguageContext ctx = Runtime::GetCurrent()->GetLanguageContext(*klass); in AddClassRoot()
62 ASSERT(!MTManagedThread::ThreadIsMTManagedThread(Thread::GetCurrent())); in GetLoadedClass()
Drelayout_profiler.h43 #define ADD_PROFILE_CLASS_ITEM(...) Runtime::GetCurrent()->GetRelayoutProfiler()->AddProfileClassIt…
46 Runtime::GetCurrent()->GetRelayoutProfiler()->AddProfileItem(__VA_ARGS__, \
49 #define ADD_PROFILE_CODE_ITEM(...) Runtime::GetCurrent()->GetRelayoutProfiler()->AddProfileCodeItem…
51 #define WRITE_RELAYOUT_PROFILE_DATA() Runtime::GetCurrent()->GetRelayoutProfiler()->WriteProfileDat…
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
Dstd_core_gc.cpp100 auto *coroutine = EtsCoroutine::GetCurrent(); in GCPhaseStarted()
117 EtsCoroutine::GetCurrent()->GetPandaVM()->GetGlobalObjectStorage()->Remove(callbackRef_); in RemoveId()
170 auto *coroutine = EtsCoroutine::GetCurrent(); in StdGCStartGC()
226 ManagedThread *thread = ManagedThread::GetCurrent(); in StdGCWaitForFinishGC()
243 auto thread = ManagedThread::GetCurrent(); in StdGCIsScheduledGCTriggered()
257 auto coroutine = EtsCoroutine::GetCurrent(); in StdGCPostponeGCStart()
276 auto coroutine = EtsCoroutine::GetCurrent(); in StdGCPostponeGCEnd()
296 auto *coroutine = EtsCoroutine::GetCurrent(); in StdGCAllocatePinnedPrimitiveTypeArray()
366 auto *coroutine = EtsCoroutine::GetCurrent(); in StdGCGetObjectSpaceType()
372 auto *vm = Thread::GetCurrent()->GetVM(); in StdGCGetObjectSpaceType()
[all …]
Dstd_core_Type.cpp150 auto refType = PandaEtsVM::GetCurrent()->GetClassLinker()->GetClass(typeDesc.c_str()); in TypeAPIGetTypeKind()
154 … PandaEtsVM::GetCurrent()->GetClassLinker()->InitializeClass(EtsCoroutine::GetCurrent(), refType); in TypeAPIGetTypeKind()
172 auto type = PandaEtsVM::GetCurrent()->GetClassLinker()->GetClass(className.c_str()); in TypeAPIGetTypeName()
179 auto classLinker = PandaEtsVM::GetCurrent()->GetClassLinker(); in TypeAPIGetClassAttributes()
192 auto classLinker = PandaEtsVM::GetCurrent()->GetClassLinker(); in TypeAPIGetFieldsNum()
200 auto classLinker = PandaEtsVM::GetCurrent()->GetClassLinker(); in TypeAPIGetOwnFieldsNum()
209 auto coroutine = EtsCoroutine::GetCurrent(); in CreateField()
250 auto classLinker = PandaEtsVM::GetCurrent()->GetClassLinker(); in TypeAPIGetField()
260 auto classLinker = PandaEtsVM::GetCurrent()->GetClassLinker(); in TypeAPIGetOwnField()
269 auto coroutine = EtsCoroutine::GetCurrent(); in TypeAPIGetFieldByName()
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dpanda_runner.h114 return Runtime::GetCurrent(); in CreateRuntime()
130 auto *thread = MTManagedThread::GetCurrent(); in GetMethod()
132 auto cls = Runtime::GetCurrent() in GetMethod()
148 ManagedThread::GetCurrent()->SetCurrentFrameIsCompiled(true); in Hook()
151 ManagedThread::GetCurrent()->SetCurrentFrame(reinterpret_cast<Frame *>(fp)); in Hook()
156 ManagedThread::GetCurrent()->SetCurrentFrameIsCompiled(true); in Hook()
165 ManagedThread::GetCurrent()->SetCurrentFrame(reinterpret_cast<Frame *>(fp)); in Hook()
170 ManagedThread::GetCurrent()->SetCurrentFrameIsCompiled(true); in Hook()
173 ManagedThread::GetCurrent()->SetCurrentFrame(reinterpret_cast<Frame *>(fp)); in Hook()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/
Dintrinsics_api_impl.cpp30 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeFinalizationQueueCallback()
40 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueDouble()
47 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueString()
64 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeNewJSValueObject()
93 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeGetValueString()
114 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeGetValueObject()
153 auto coro = EtsCoroutine::GetCurrent(); in JSValueNamedGetter()
170 auto coro = EtsCoroutine::GetCurrent(); in JSValueNamedSetter()
185 auto coro = EtsCoroutine::GetCurrent(); in JSValueIndexedGetter()
209 auto coro = EtsCoroutine::GetCurrent(); in JSRuntimeGetUndefined()
[all …]

12345678910>>...13