Lines Matching refs:context
23 auto context = thread_->GetCurrentEcmaContext(); in EcmaHandleScope() local
24 prevNext_ = context->handleScopeStorageNext_; in EcmaHandleScope()
25 prevEnd_ = context->handleScopeStorageEnd_; in EcmaHandleScope()
26 prevHandleStorageIndex_ = context->currentHandleStorageIndex_; in EcmaHandleScope()
28 context->HandleScopeCountAdd(); in EcmaHandleScope()
29 prevHandleScope_ = context->GetLastHandleScope(); in EcmaHandleScope()
30 context->SetLastHandleScope(this); in EcmaHandleScope()
36 auto context = thread_->GetCurrentEcmaContext(); in ~EcmaHandleScope() local
38 context->HandleScopeCountDec(); in ~EcmaHandleScope()
39 context->SetLastHandleScope(prevHandleScope_); in ~EcmaHandleScope()
42 context->handleScopeStorageNext_ = prevNext_; in ~EcmaHandleScope()
43 if (context->handleScopeStorageEnd_ != prevEnd_) { in ~EcmaHandleScope()
44 context->handleScopeStorageEnd_ = prevEnd_; in ~EcmaHandleScope()
45 context->ShrinkHandleStorage(prevHandleStorageIndex_); in ~EcmaHandleScope()
51 auto context = thread->GetCurrentEcmaContext(); in NewHandle() local
54 if (context->handleScopeCount_ <= 0) { in NewHandle()
55 LOG_ECMA(ERROR) << "New handle must be in handlescope" << context->handleScopeCount_; in NewHandle()
58 if (context->GetLastHandleScope() != nullptr) { in NewHandle()
59 float totalSpentTime = context->GetLastHandleScope()->scope_.TotalSpentTime(); in NewHandle()
61 LOG_ECMA(INFO) << "New handle in scope count:" << context->handleScopeCount_ in NewHandle()
69 auto result = context->handleScopeStorageNext_; in NewHandle()
70 if (result == context->handleScopeStorageEnd_) { in NewHandle()
71 result = reinterpret_cast<JSTaggedType *>(context->ExpandHandleStorage()); in NewHandle()
81 context->handleScopeStorageNext_ = result + 1; in NewHandle()