• Home
  • Raw
  • Download

Lines Matching full:vm

26     auto vm = thread_->GetEcmaVM();  in EcmaHandleScope()  local
27 OpenHandleScope(vm); in EcmaHandleScope()
28 OpenPrimitiveScope(vm); in EcmaHandleScope()
30 auto heapProfiler = reinterpret_cast<HeapProfiler *>(HeapProfilerInterface::GetInstance(vm)); in EcmaHandleScope()
36 void EcmaHandleScope::OpenHandleScope(EcmaVM *vm) in OpenHandleScope() argument
38 prevNext_ = vm->GetHandleScopeStorageNext(); in OpenHandleScope()
39 prevEnd_ = vm->GetHandleScopeStorageEnd(); in OpenHandleScope()
40 prevHandleStorageIndex_ = vm->GetCurrentHandleStorageIndex(); in OpenHandleScope()
43 void EcmaHandleScope::OpenPrimitiveScope(EcmaVM *vm) in OpenPrimitiveScope() argument
45 prevPrimitiveNext_ = vm->GetPrimitiveScopeStorageNext(); in OpenPrimitiveScope()
46 prevPrimitiveEnd_ = vm->GetPrimitiveScopeStorageEnd(); in OpenPrimitiveScope()
47 prevPrimitiveStorageIndex_ = vm->GetCurrentPrimitiveStorageIndex(); in OpenPrimitiveScope()
52 auto vm = thread_->GetEcmaVM(); in ~EcmaHandleScope() local
53 CloseHandleScope(vm); in ~EcmaHandleScope()
54 ClosePrimitiveScope(vm); in ~EcmaHandleScope()
56 auto heapProfiler = reinterpret_cast<HeapProfiler *>(HeapProfilerInterface::GetInstance(vm)); in ~EcmaHandleScope()
62 void EcmaHandleScope::CloseHandleScope(EcmaVM *vm) in CloseHandleScope() argument
64 vm->SetHandleScopeStorageNext(prevNext_); in CloseHandleScope()
65 if (vm->GetHandleScopeStorageEnd() != prevEnd_) { in CloseHandleScope()
66 vm->SetHandleScopeStorageEnd(prevEnd_); in CloseHandleScope()
67 vm->ShrinkHandleStorage(prevHandleStorageIndex_); in CloseHandleScope()
71 void EcmaHandleScope::ClosePrimitiveScope(EcmaVM *vm) in ClosePrimitiveScope() argument
73 vm->SetPrimitiveScopeStorageNext(prevPrimitiveNext_); in ClosePrimitiveScope()
74 if (vm->GetPrimitiveScopeStorageEnd() != prevPrimitiveEnd_) { in ClosePrimitiveScope()
75 vm->SetPrimitiveScopeStorageEnd(prevPrimitiveEnd_); in ClosePrimitiveScope()
76 vm->ShrinkPrimitiveStorage(prevPrimitiveStorageIndex_); in ClosePrimitiveScope()
91 auto vm = thread->GetEcmaVM(); in NewHandle() local
92 auto result = vm->GetHandleScopeStorageNext(); in NewHandle()
93 if (result == vm->GetHandleScopeStorageEnd()) { in NewHandle()
94 result = reinterpret_cast<JSTaggedType *>(vm->ExpandHandleStorage()); in NewHandle()
104 vm->SetHandleScopeStorageNext(result + 1); in NewHandle()
107 auto heapProfiler = reinterpret_cast<HeapProfiler *>(HeapProfilerInterface::GetInstance(vm)); in NewHandle()
118 auto vm = thread->GetEcmaVM(); in NewPrimitiveHandle() local
119 auto result = vm->GetPrimitiveScopeStorageNext(); in NewPrimitiveHandle()
120 if (result == vm->GetPrimitiveScopeStorageEnd()) { in NewPrimitiveHandle()
121 result = reinterpret_cast<JSTaggedType *>(vm->ExpandPrimitiveStorage()); in NewPrimitiveHandle()
131 vm->SetPrimitiveScopeStorageNext(result + 1); in NewPrimitiveHandle()
134 auto heapProfiler = reinterpret_cast<HeapProfiler *>(HeapProfilerInterface::GetInstance(vm)); in NewPrimitiveHandle()