Home
last modified time | relevance | path

Searched refs:GetJSThread (Results 1 – 25 of 160) sorted by relevance

1234567

/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi_expo.cpp155 vm->GetJSThread()->GlobalConstants()->GetHandledUndefined()); in Undefined()
161 vm->GetJSThread()->GlobalConstants()->GetHandledNull()); in Null()
167 vm->GetJSThread()->GlobalConstants()->GetHandledHole()); in Hole()
173 vm->GetJSThread()->GlobalConstants()->GetHandledTrue()); in True()
179 vm->GetJSThread()->GlobalConstants()->GetHandledFalse()); in False()
188 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in ToObject()
198 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in ToEcmaObject()
212 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in ToString()
225 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in ToNativePointer()
234 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in BooleaValue()
[all …]
Djsnapi.cpp150 …ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); \
176 …ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); \
201 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in SENDABLE_TYPED_ARRAY_ALL()
219 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in Stringify()
246 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in GetOriginalFlags()
276 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in IsGlobal()
288 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in IsIgnoreCase()
300 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in IsMultiline()
312 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in IsDotAll()
324 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in IsUtf16()
[all …]
Ddfx_jsnapi.cpp118 vm->GetJSThread()->SetStackTraceFd(stackTraceFd); in DumpHeapSnapshot()
275 JSThread *thread = vm->GetJSThread(); in TriggerSharedGCWithVm()
309 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in TriggerGCWithVm()
324 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in DestroyHeapProfiler()
355 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in StartHeapTracking()
369 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in UpdateHeapTracking()
396 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in StopHeapTracking()
417 vm->GetJSThread()->GetCurrentEcmaContext()->SetRuntimeStatEnable(true); in StartRuntimeStat()
422 vm->GetJSThread()->GetCurrentEcmaContext()->SetRuntimeStatEnable(false); in StopRuntimeStat()
427 ecmascript::ThreadManagedScope managedScope(vm->GetJSThread()); in GetArrayBufferSize()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/
Daot_snapshot.cpp34 cp->SetAotSymbolInfo(vm_->GetJSThread(), snapshotData_.GetSymbolInfo()); in NewSnapshotConstantPool()
35 cp->SetAotHClassInfo(vm_->GetJSThread(), snapshotData_.GetHClassInfo()); in NewSnapshotConstantPool()
36 cp->SetAotArrayInfo(vm_->GetJSThread(), snapshotData_.GetArrayInfo()); in NewSnapshotConstantPool()
37 cp->SetConstantIndexInfo(vm_->GetJSThread(), snapshotData_.GetConstantIndexInfo()); in NewSnapshotConstantPool()
38 cp->SetProtoTransTableInfo(vm_->GetJSThread(), snapshotData_.GetProtoTransTableInfo()); in NewSnapshotConstantPool()
71 const CMap<int32_t, JSTaggedValue> &allConstantPools = vm_->GetJSThread()-> in StoreConstantPoolInfo()
/arkcompiler/ets_runtime/test/fuzztest/setrefgetvalue_fuzzer/
Dsetrefgetvalue_fuzzer.cpp48 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(vm->GetJSThread()); in SetRefGetValueFuzztest()
49 jsSet->SetLinkedSet(vm->GetJSThread(), hashSet); in SetRefGetValueFuzztest()
54 JSSet::Add(vm->GetJSThread(), jsSet, fristValue); in SetRefGetValueFuzztest()
56 JSSet::Add(vm->GetJSThread(), jsSet, secondValue); in SetRefGetValueFuzztest()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
Dpgo_profiler_test.cpp248 vm_->GetJSThread()->ManagedCodeBegin(); in HWTEST_F_L0()
256 method->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
259 func->SetModule(vm_->GetJSThread(), recordName); in HWTEST_F_L0()
261 vm_->GetJSThread()->ManagedCodeEnd(); in HWTEST_F_L0()
288 vm_->GetJSThread()->ManagedCodeBegin(); in HWTEST_F_L0()
298 method->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
299 method1->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
300 method2->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
306 func->SetModule(vm_->GetJSThread(), recordName); in HWTEST_F_L0()
307 func1->SetModule(vm_->GetJSThread(), recordName); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.cpp61 FrameHandler frameHandler(ecmaVm->GetJSThread()); in GetStackDepth()
73 return std::make_shared<FrameHandler>(ecmaVm->GetJSThread()); in NewFrameHandler()
78 FrameHandler frameHandler(ecmaVm->GetJSThread()); in StackWalker()
98 FrameHandler frameHandler(ecmaVm->GetJSThread()); in GetStackDepthOverBuiltin()
116 return FrameHandler(ecmaVm->GetJSThread()).GetBytecodeOffset(); in GetBytecodeOffset()
121 FrameHandler frameHandler(ecmaVm->GetJSThread()); in GetMethod()
145 FrameHandler frameHandler(ecmaVm->GetJSThread()); in IsNativeMethod()
160 Method *method = FrameHandler(ecmaVm->GetJSThread()).GetMethod(); in GetJSPandaFile()
213 JSHandle<JSTaggedValue> handledValue(ecmaVm->GetJSThread(), value); in GetVRegValue()
220 auto exception = ecmaVm->GetJSThread()->GetException(); in GetAndClearException()
[all …]
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.cpp40 FrameHandler frameHandler(vm_->GetJSThread()); in GetCurrentModule()
53 return SendableClassModule::GenerateSendableFuncModule(vm_->GetJSThread(), module); in GenerateSendableFuncModule()
62 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
71 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
79 …extModule::Cast(currentModule->GetTaggedObject())->GetModuleValue(vm_->GetJSThread(), index, false… in GetModuleValueInner()
101 JSThread *thread = vm_->GetJSThread(); in GetModuleValueOutterInternal()
172 JSThread *thread = vm_->GetJSThread(); in GetLazyModuleValueOutterInternal()
239 JSThread *thread = vm_->GetJSThread(); in StoreModuleValue()
246 JSThread *thread = vm_->GetJSThread(); in StoreModuleValue()
258 JSThread *thread = vm_->GetJSThread(); in StoreModuleValueInternal()
[all …]
Dmodule_logger.cpp66 JSThread *thread = vm_->GetJSThread(); in InsertModuleLoadInfo()
96 RuntimeLockHolder locker(vm_->GetJSThread(), mutex_); in InsertParentModule()
105 RuntimeLockHolder locker(vm_->GetJSThread(), mutex_); in InsertEntryPointModule()
203 RuntimeLockHolder locker(vm_->GetJSThread(), mutex_); in ProcessModuleExecuteTime()
241 RuntimeLockHolder locker(vm_->GetJSThread(), mutex_); in SetStartTime()
249 RuntimeLockHolder locker(vm_->GetJSThread(), mutex_); in SetEndTime()
276 vm_->GetJSThread()->GetCurrentEcmaContext()->GetModuleLogger(); in Run()
/arkcompiler/ets_runtime/test/fuzztest/setrefgettotalelements_fuzzer/
Dsetrefgettotalelements_fuzzer.cpp48 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(vm->GetJSThread()); in SetRefGetTotalElementsFuzztest()
49 jsSet->SetLinkedSet(vm->GetJSThread(), hashSet); in SetRefGetTotalElementsFuzztest()
53 JSSet::Add(vm->GetJSThread(), jsSet, fristValue); in SetRefGetTotalElementsFuzztest()
/arkcompiler/ets_runtime/test/fuzztest/setrefgetsize_fuzzer/
Dsetrefgetsize_fuzzer.cpp48 JSHandle<LinkedHashSet> hashSet = LinkedHashSet::Create(vm->GetJSThread()); in SetRefGetSizeFuzztest()
49 jsSet->SetLinkedSet(vm->GetJSThread(), hashSet); in SetRefGetSizeFuzztest()
53 JSSet::Add(vm->GetJSThread(), jsSet, fristValue); in SetRefGetSizeFuzztest()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/
Djsvaluerefismodulenamespace_fuzzer.cpp50 …SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry1, 0, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest()
52 …SourceTextModule::AddLocalExportEntry(vm->GetJSThread(), module, localExportEntry2, 1, ERROR_TYPE_… in IsModuleNamespaceObjectFuzztest()
53 … JSHandle<TaggedArray> localExportEntries(vm->GetJSThread(), module->GetLocalExportEntries()); in IsModuleNamespaceObjectFuzztest()
56 … ModuleManager *moduleManager = vm->GetJSThread()->GetCurrentEcmaContext()->GetModuleManager(); in IsModuleNamespaceObjectFuzztest()
58 JSHandle<ModuleNamespace> np = ModuleNamespace::ModuleNamespaceCreate(vm->GetJSThread(), in IsModuleNamespaceObjectFuzztest()
79 auto thread = vm->GetJSThread(); in IsProxyFuzztest()
104 auto thread = vm->GetJSThread(); in IsJSCollatorFuzztest()
131 auto thread = vm->GetJSThread(); in IsJSPluralRulesFuzztest()
188 auto thread = vm->GetJSThread(); in IsJSPrimitiveRefFuzztest()
211 auto thread = vm->GetJSThread(); in IsDequeFuzztest()
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dincremental_marker.cpp76 heap_->GetJSThread()->SetMarkStatus(MarkStatus::MARKING); in Initialize()
101 heap_->GetJSThread()->SetMarkStatus(MarkStatus::MARK_FINISHED); in ProcessIncrementalMark()
110 heap_->GetJSThread()->SetMarkStatus(MarkStatus::READY_TO_MARK); in Finish()
131 heap_->GetJSThread()->SetMarkStatus(MarkStatus::READY_TO_MARK); in Reset()
Didle_gc_trigger.cpp46 …if (heap_->GetJSThread()->IsMarkFinished() && heap_->GetConcurrentMarker()->IsTriggeredConcurrentM… in TryTriggerHandleMarkFinished()
65 if (heap_->GetJSThread()->IsMarkFinished() && in TryTriggerIdleLocalOldGC()
74 if (heap_->GetJSThread()->FullMarkRequest() && !heap_->NeedStopCollection()) { in TryTriggerIdleLocalOldGC()
75 heap_->GetJSThread()->ResetFullMarkRequest(); in TryTriggerIdleLocalOldGC()
101 bool isFullMarking = heap_->IsConcurrentFullMark() && heap_->GetJSThread()->IsMarking(); in ReachIdleLocalOldGCThresholds()
Dconcurrent_sweeper.cpp33 … std::make_unique<SweeperTask>(heap_->GetJSThread()->GetThreadId(), this, OLD_SPACE)); in PostTask()
36 std::make_unique<SweeperTask>(heap_->GetJSThread()->GetThreadId(), this, NON_MOVABLE)); in PostTask()
38 … std::make_unique<SweeperTask>(heap_->GetJSThread()->GetThreadId(), this, MACHINE_CODE_SPACE)); in PostTask()
/arkcompiler/ets_runtime/test/fuzztest/publicapilocalregexpref_fuzzer/
Dpublicapilocalregexpref_fuzzer.cpp38 JSThread *thread = vm->GetJSThread(); in LocalRegExpGetOriginalSourceFuzzTest()
67 JSThread *thread = vm->GetJSThread(); in LocalRegExpRefGetOriginalFlagsFuzzTest()
96 JSThread *thread = vm->GetJSThread(); in LocalRegExpIsGlobalRefFuzzTest()
118 JSThread *thread = vm->GetJSThread(); in LocalRegExpIsIgnoreCaseFuzzTest()
142 JSThread *thread = vm->GetJSThread(); in LocalRegExpIsMultilineFuzzTest()
166 JSThread *thread = vm->GetJSThread(); in LocalRegExpIsDotAllFuzzTest()
190 JSThread *thread = vm->GetJSThread(); in LocalRegExpIsUtf16FuzzTest()
214 JSThread *thread = vm->GetJSThread(); in LocalRegExpIsSticklFuzzTest()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_second_tests.cpp91 thread_ = vm_->GetJSThread(); in SetUp()
157 EXPECT_TRUE(vm->GetJSThread()->GetThreadId() != JSThread::GetCurrentThreadId()); in ThreadCheck()
220 thread_ = vm_->GetJSThread(); in HWTEST_F_L0()
242 thread_ = vm_->GetJSThread(); in HWTEST_F_L0()
278 ecmascript::ThreadManagedScope managedScope(vm_->GetJSThread()); in HWTEST_F_L0()
280 JSThread *thread = vm_->GetJSThread(); in HWTEST_F_L0()
307 JSThread *thread = vm_->GetJSThread(); in HWTEST_F_L0()
348 ecmascript::ThreadManagedScope managedScope(vm_->GetJSThread()); in HWTEST_F_L0()
350 JSThread *thread = vm_->GetJSThread(); in HWTEST_F_L0()
378 ecmascript::ThreadManagedScope managedScope(vm_->GetJSThread()); in HWTEST_F_L0()
[all …]
Djsnapi_sendable_tests.cpp41 thread_ = vm_->GetJSThread(); in SetUp()
207 ASSERT_FALSE(vm_->GetJSThread()->HasPendingException()); in HWTEST_F_L0()
209 ASSERT_TRUE(vm_->GetJSThread()->HasPendingException()); in HWTEST_F_L0()
214 ASSERT_FALSE(vm_->GetJSThread()->HasPendingException()); in HWTEST_F_L0()
216 ASSERT_TRUE(vm_->GetJSThread()->HasPendingException()); in HWTEST_F_L0()
241 ASSERT_FALSE(vm_->GetJSThread()->HasPendingException()); in HWTEST_F_L0()
243 ASSERT_TRUE(vm_->GetJSThread()->HasPendingException()); in HWTEST_F_L0()
248 ASSERT_FALSE(vm_->GetJSThread()->HasPendingException()); in HWTEST_F_L0()
250 ASSERT_TRUE(vm_->GetJSThread()->HasPendingException()); in HWTEST_F_L0()
282 ASSERT_FALSE(vm_->GetJSThread()->HasPendingException()); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Decma_string_table.cpp183 thread = signalState ? vm->GetJSThreadNoCheck() : vm->GetJSThread(); in GetOrInternString()
225 RuntimeLockHolder locker(vm->GetJSThread(), stringTable_[GetTableId(hashcode)].mutex_); in GetOrInternString()
255 RuntimeLockHolder locker(vm->GetJSThread(), stringTable_[GetTableId(hashcode)].mutex_); in GetOrInternCompressedSubString()
282 RuntimeLockHolder locker(vm->GetJSThread(), stringTable_[GetTableId(hashcode)].mutex_); in CreateAndInternStringNonMovable()
306 RuntimeLockHolder locker(vm->GetJSThread(), stringTable_[GetTableId(hashcode)].mutex_); in CreateAndInternStringReadOnly()
327 RuntimeLockHolder locker(vm->GetJSThread(), stringTable_[GetTableId(hashcode)].mutex_); in GetOrInternString()
350 auto thread = vm->GetJSThread(); in GetOrInternString()
381 JSHandle<EcmaString> strHandle(vm->GetJSThread(), string); in GetOrInternStringThreadUnsafe()
409 JSHandle<EcmaString> strFlatHandle(vm->GetJSThread(), strFlat); in InsertStringToTable()
411 RuntimeLockHolder locker(vm->GetJSThread(), stringTable_[GetTableId(hashcode)].mutex_); in InsertStringToTable()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/pgo_type/
Dpgo_type_parser.cpp69 auto thread = ptManager_->GetJSThread(); in GenerateHClass()
108 auto hclassIdx = ptManager_->GetJSThread()->GetArrayHClassIndexMap().at(kind).first; in RecordTypeInfo()
122 auto thread = ptManager_->GetJSThread(); in GenerateHClass()
156 auto thread = ptManager_->GetJSThread(); in GenerateHClass()
244 auto thread = ptManager_->GetJSThread(); in GenerateHClassForClassType()
261 auto thread = ptManager_->GetJSThread(); in GenerateHClassForPrototype()
Dpgo_hclass_generator.cpp35 auto thread = ptManager_->GetJSThread(); in GenerateHClass()
90 auto thread = ptManager_->GetJSThread(); in GenerateIHClass()
170 auto thread = ptManager_->GetJSThread(); in CreateRootHClass()
189 auto thread = ptManager_->GetJSThread(); in CreateChildHClass()
/arkcompiler/ets_runtime/ecmascript/snapshot/mem/
Dsnapshot_env.cpp25 auto globalConst = const_cast<GlobalEnvConstants *>(vm_->GetJSThread()->GlobalConstants()); in AddGlobalConstToMap()
36 auto globalConst = const_cast<GlobalEnvConstants *>(vm_->GetJSThread()->GlobalConstants()); in RelocateRootObjectAddr()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_dump_test.cpp200 … auto emptySLayout = instance->GetJSThread()->GlobalConstants()->GetHandledEmptySLayoutInfo(); in NewSObject()
208 JSThread *thread = instance->GetJSThread(); in NewJSSet()
220 JSThread *thread = instance->GetJSThread(); in NewJSSharedSet()
234 JSThread *thread = instance->GetJSThread(); in NewJSMap()
246 JSThread *thread = instance->GetJSThread(); in NewJSSharedMap()
260 JSThread *thread = instance->GetJSThread(); in NewJSWeakSet()
272 JSThread *thread = instance->GetJSThread(); in NewJSWeakMap()
284 JSThread *thread = instance->GetJSThread(); in NewJSProxy()
297 JSThread *thread = instance->GetJSThread(); in NewJSForInIterator()
318 JSThread *thread = instance->GetJSThread(); in NewPromiseIteratorRecord()
[all …]
Dheap_tracker_second_test.cpp133 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
169 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
205 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
241 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefiscontainer_fuzzer/
Djsvaluerefiscontainer_fuzzer.cpp46 JSThread *thread = vm->GetJSThread(); in JSValueRefIsVectorFuzzTest()
85 JSThread *thread = vm->GetJSThread(); in JSValueRefIsRegExpFuzzTest()
114 JSThread *thread = vm->GetJSThread(); in JSValueRefIsSetFuzzTest()
140 JSThread *thread = vm->GetJSThread(); in JSValueRefIsTreeMapFuzzTest()
165 JSThread *thread = vm->GetJSThread(); in JSValueRefIsTreeSetFuzzTest()

1234567