Home
last modified time | relevance | path

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

1234567

/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp259 if (vm->GetJSThread()->HasPendingException()) { \
273 if (vm->GetJSThread()->HasPendingException()) { \
315 JSThread *thread = vm->GetJSThread(); in CreateJSContext()
321 JSThread *thread = vm->GetJSThread(); in SwitchCurrentContext()
327 JSThread *thread = vm->GetJSThread(); in DestroyJSContext()
371 if (vm->GetJSThread() != nullptr && vm->IsInitialized()) { in TriggerGC()
391 auto thread = vm->GetJSThread(); in ThrowException()
401 JSThread* thread = vm->GetJSThread(); in PrintExceptionInfo()
545 vm->GetJSThread()->GetCurrentEcmaContext()->LoadAOTFiles(aotFileName); in LoadAotFile()
691 return vm->GetJSThread()->HasPendingException(); in HasPendingException()
[all …]
Ddfx_jsnapi.cpp108 vm->GetJSThread()->SetStackTraceFd(stackTraceFd); in DumpHeapSnapshot()
230 vm->GetJSThread()->GetCurrentEcmaContext()->SetRuntimeStatEnable(true); in StartRuntimeStat()
235 vm->GetJSThread()->GetCurrentEcmaContext()->SetRuntimeStatEnable(false); in StopRuntimeStat()
286 if (workerVm->GetJSThread()->GetIsProfiling()) { in StopCpuProfilerForColdStart()
320 if (vm->GetJSThread()->GetIsProfiling()) { in CpuProfilerSamplingAnyTime()
495 ecmascript::JSThread* thread = vm->GetJSThread(); in CheckSafepoint()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_manager.cpp43 …resolvedModules_ = NameDictionary::Create(vm_->GetJSThread(), DEAULT_DICTIONART_CAPACITY).GetTagge… in ModuleManager()
48 FrameHandler frameHandler(vm_->GetJSThread()); in GetCurrentModule()
59 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
68 …return SourceTextModule::Cast(currentModule.GetTaggedObject())->GetModuleValue(vm_->GetJSThread(),… in GetModuleValueInner()
76 …extModule::Cast(currentModule->GetTaggedObject())->GetModuleValue(vm_->GetJSThread(), index, false… in GetModuleValueInner()
98 JSThread *thread = vm_->GetJSThread(); in GetModuleValueOutterInternal()
192 …return FastRuntimeStub::CallGetter(vm_->GetJSThread(), JSTaggedValue(obj), JSTaggedValue(obj), val… in GetValueFromExportObject()
200 JSThread *thread = vm_->GetJSThread(); in StoreModuleValue()
207 JSThread *thread = vm_->GetJSThread(); in StoreModuleValue()
219 JSThread *thread = vm_->GetJSThread(); in StoreModuleValueInternal()
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dtagged_object-inl.h36 Barriers::SetObject<true>(GetJSThread(), this, 0, JSTaggedValue(hclass).GetRawData()); in SetClass()
60 inline JSThread *TaggedObject::GetJSThread() const in GetJSThread() function
64 return region->GetJSThread(); in GetJSThread()
Dincremental_marker.cpp85 heap_->GetJSThread()->SetMarkStatus(MarkStatus::MARKING); in Initialize()
109 heap_->GetJSThread()->SetMarkStatus(MarkStatus::MARK_FINISHED); in ProcessIncrementalMark()
118 heap_->GetJSThread()->SetMarkStatus(MarkStatus::READY_TO_MARK); in Finish()
139 heap_->GetJSThread()->SetMarkStatus(MarkStatus::READY_TO_MARK); in Reset()
Dconcurrent_sweeper.cpp37 … std::make_unique<SweeperTask>(heap_->GetJSThread()->GetThreadId(), this, OLD_SPACE)); in PostTask()
40 std::make_unique<SweeperTask>(heap_->GetJSThread()->GetThreadId(), this, NON_MOVABLE)); in PostTask()
42 … std::make_unique<SweeperTask>(heap_->GetJSThread()->GetThreadId(), this, MACHINE_CODE_SPACE)); in PostTask()
Dbarriers.cpp23 JSThread* thread = valueRegion->GetJSThread(); in Update()
Dtagged_object.h50 JSThread* GetJSThread() const;
Dconcurrent_marker.cpp39 thread_(vm_->GetJSThread()), in ConcurrentMarker()
65 …Taskpool::GetCurrentTaskpool()->PostTask(std::make_unique<MarkerTask>(heap_->GetJSThread()->GetThr… in Mark()
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddebugger_api.cpp76 FrameHandler frameHandler(ecmaVm->GetJSThread()); in GetStackDepth()
88 return std::make_shared<FrameHandler>(ecmaVm->GetJSThread()); in NewFrameHandler()
93 FrameHandler frameHandler(ecmaVm->GetJSThread()); in StackWalker()
112 return FrameHandler(ecmaVm->GetJSThread()).GetBytecodeOffset(); in GetBytecodeOffset()
117 FrameHandler frameHandler(ecmaVm->GetJSThread()); in GetMethod()
141 FrameHandler frameHandler(ecmaVm->GetJSThread()); in IsNativeMethod()
156 Method *method = FrameHandler(ecmaVm->GetJSThread()).GetMethod(); in GetJSPandaFile()
195 JSHandle<JSTaggedValue> handledValue(ecmaVm->GetJSThread(), value); in GetVRegValue()
202 auto exception = ecmaVm->GetJSThread()->GetException(); in GetAndClearException()
203 JSHandle<JSTaggedValue> handledException(ecmaVm->GetJSThread(), exception); in GetAndClearException()
[all …]
Djs_debugger.cpp93 JSThread *thread = ecmaVm_->GetJSThread(); in HandleBreakpoint()
97 auto handlerPtr = std::make_shared<FrameHandler>(ecmaVm_->GetJSThread()); in HandleBreakpoint()
215 FrameHandler frameHandler(ecmaVm_->GetJSThread()); in MethodEntry()
228 FrameHandler frameHandler(ecmaVm_->GetJSThread()); in MethodExit()
/arkcompiler/ets_runtime/ecmascript/ts_types/tests/
Dts_type_table_generator_test.cpp59 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
78 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
82 table->SetNumberOfTypes(ecmaVm->GetJSThread()); in HWTEST_F_L0()
114 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
Dts_type_parser_test.cpp61 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
73 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
144 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
217 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
283 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
344 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
410 auto tsManager = ecmaVm->GetJSThread()->GetCurrentEcmaContext()->GetTSManager(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/pgo_profiler/tests/
Dpgo_profiler_test.cpp135 method->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
138 func->SetModule(vm_->GetJSThread(), recordName); in HWTEST_F_L0()
185 method->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
186 method1->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
187 method2->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
193 func->SetModule(vm_->GetJSThread(), recordName); in HWTEST_F_L0()
194 func1->SetModule(vm_->GetJSThread(), recordName); in HWTEST_F_L0()
195 func2->SetModule(vm_->GetJSThread(), recordName); in HWTEST_F_L0()
251 method->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
252 method1->SetConstantPool(vm_->GetJSThread(), constPool.GetTaggedValue()); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dpass_manager.cpp30 …(profilerDecoder_.IsLoaded() || vm_->GetJSThread()->GetCurrentEcmaContext()->GetTSManager()->Asser… in ShouldCollect()
36 [[maybe_unused]] EcmaHandleScope handleScope(vm_->GetJSThread()); in Compile()
159 …vm_->GetJSThread()->GetCurrentEcmaContext()->GetTSManager()->ProcessSnapshotConstantPool(collector… in ProcessConstantPool()
180 JSThread *thread = vm_->GetJSThread(); in ResolveModule()
/arkcompiler/ets_runtime/ecmascript/
Decma_string_table.cpp105 …auto firstFlat = JSHandle<EcmaString>(vm_->GetJSThread(), EcmaStringAccessor::Flatten(vm_, firstSt… in GetOrInternString()
106 …auto secondFlat = JSHandle<EcmaString>(vm_->GetJSThread(), EcmaStringAccessor::Flatten(vm_, second… in GetOrInternString()
111 JSHandle<EcmaString> concatHandle(vm_->GetJSThread(), in GetOrInternString()
163 JSHandle<EcmaString> strHandle(vm_->GetJSThread(), string); in GetOrInternString()
177 JSHandle<EcmaString> resultHandle(vm_->GetJSThread(), strFlat); in GetOrInternString()
Decma_string.cpp140 auto srcFlat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, src)); in FastSubString()
198 auto leftFlat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, left)); in Compare()
199 auto rightFlat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, right)); in Compare()
324 auto receiverFlat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, receiver)); in IndexOf()
325 auto searchFlat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, search)); in IndexOf()
377 auto receiverFlat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, receiver)); in LastIndexOf()
378 auto searchFlat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, search)); in LastIndexOf()
531 auto str1Flat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, str1)); in StringsAreEqual()
532 auto str2Flat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, str2)); in StringsAreEqual()
774 auto srcFlat = JSHandle<EcmaString>(vm->GetJSThread(), Flatten(vm, src)); in ToLower()
[all …]
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dprogram_object.cpp22 auto context = vm->GetJSThread()->GetCurrentEcmaContext(); in GetDeserializedConstantPool()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dheap_tracker_test.cpp129 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
183 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
238 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
325 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
356 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
387 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
418 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
458 …JSHandle<JSTaggedValue> undefined = instance->GetJSThread()->GlobalConstants()->GetHandledUndefine… in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/cpu_profiler/
Dcpu_profiler.cpp77 vm_->GetJSThread()->SetIsProfiling(true); in StartCpuProfilerForInfo()
87 … std::make_unique<SamplingProcessor>(vm_->GetJSThread()->GetThreadId(), generator_, interval_)); in StartCpuProfilerForInfo()
137 vm_->GetJSThread()->SetIsProfiling(true); in StartCpuProfilerForFile()
147 … std::make_unique<SamplingProcessor>(vm_->GetJSThread()->GetThreadId(), generator_, interval_)); in StartCpuProfilerForFile()
164 vm_->GetJSThread()->SetIsProfiling(false); in StopCpuProfilerForInfo()
199 vm_->GetJSThread()->SetIsProfiling(false); in StopCpuProfilerForFile()
514 AOTFileManager *loader = vm_->GetJSThread()->GetCurrentEcmaContext()->GetAOTFileManager(); in IsAddrAtStubOrAot()
/arkcompiler/ets_runtime/ecmascript/tests/
Dtest_helper.h117 thread = instance->GetJSThread();
128 auto thread = instance->GetJSThread(); in DestroyEcmaVMWithScope()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferallocatearraybuffer_fuzzer/
Dbuiltinsarraybufferallocatearraybuffer_fuzzer.cpp38 JSThread *thread = vm->GetJSThread(); in BuiltinsArrayBufferAllocateArrayBufferFuzzTest()
/arkcompiler/ets_runtime/ecmascript/dfx/vmstat/
Druntime_stat.cpp141 vm_->GetJSThread()->GetCurrentEcmaContext()->SetRuntimeStatEnable(true); in EcmaRuntimeStatScope()
148 vm_->GetJSThread()->GetCurrentEcmaContext()->SetRuntimeStatEnable(false); in ~EcmaRuntimeStatScope()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybuffersetvalueinbufferforbyte_fuzzer/
Dbuiltinsarraybuffersetvalueinbufferforbyte_fuzzer.cpp39 JSThread *thread = vm->GetJSThread(); in BuiltinsArrayBufferSetValueInBufferForByteFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/builtinsarraybufferfastsetvalueinbuffer_fuzzer/
Dbuiltinsarraybufferfastsetvalueinbuffer_fuzzer.cpp39 JSThread *thread = vm->GetJSThread(); in BuiltinsArrayBufferFastSetValueInBufferFuzzTest()

1234567