• Home
  • Raw
  • Download

Lines Matching full:context

26     auto context = thread_->GetCurrentEcmaContext();  in EcmaHandleScope()  local
27 OpenHandleScope(context); in EcmaHandleScope()
28 OpenPrimitiveScope(context); in EcmaHandleScope()
37 void EcmaHandleScope::OpenHandleScope(EcmaContext *context) in OpenHandleScope() argument
39 prevNext_ = context->handleScopeStorageNext_; in OpenHandleScope()
40 prevEnd_ = context->handleScopeStorageEnd_; in OpenHandleScope()
41 prevHandleStorageIndex_ = context->currentHandleStorageIndex_; in OpenHandleScope()
44 void EcmaHandleScope::OpenPrimitiveScope(EcmaContext *context) in OpenPrimitiveScope() argument
46 prevPrimitiveNext_ = context->primitiveScopeStorageNext_; in OpenPrimitiveScope()
47 prevPrimitiveEnd_ = context->primitiveScopeStorageEnd_; in OpenPrimitiveScope()
48 prevPrimitiveStorageIndex_ = context->currentPrimitiveStorageIndex_; in OpenPrimitiveScope()
53 auto context = thread_->GetCurrentEcmaContext(); in ~EcmaHandleScope() local
54 CloseHandleScope(context); in ~EcmaHandleScope()
55 ClosePrimitiveScope(context); in ~EcmaHandleScope()
64 void EcmaHandleScope::CloseHandleScope(EcmaContext *context) in CloseHandleScope() argument
66 context->handleScopeStorageNext_ = prevNext_; in CloseHandleScope()
67 if (context->handleScopeStorageEnd_ != prevEnd_) { in CloseHandleScope()
68 context->handleScopeStorageEnd_ = prevEnd_; in CloseHandleScope()
69 context->ShrinkHandleStorage(prevHandleStorageIndex_); in CloseHandleScope()
73 void EcmaHandleScope::ClosePrimitiveScope(EcmaContext *context) in ClosePrimitiveScope() argument
75 context->primitiveScopeStorageNext_ = prevPrimitiveNext_; in ClosePrimitiveScope()
76 if (context->primitiveScopeStorageEnd_ != prevPrimitiveEnd_) { in ClosePrimitiveScope()
77 context->primitiveScopeStorageEnd_ = prevPrimitiveEnd_; in ClosePrimitiveScope()
78 context->ShrinkPrimitiveStorage(prevPrimitiveStorageIndex_); in ClosePrimitiveScope()
93 auto context = thread->GetCurrentEcmaContext(); in NewHandle() local
94 auto result = context->handleScopeStorageNext_; in NewHandle()
95 if (result == context->handleScopeStorageEnd_) { in NewHandle()
96 result = reinterpret_cast<JSTaggedType *>(context->ExpandHandleStorage()); in NewHandle()
106 context->handleScopeStorageNext_ = result + 1; in NewHandle()
121 auto context = thread->GetCurrentEcmaContext(); in NewPrimitiveHandle() local
122 auto result = context->primitiveScopeStorageNext_; in NewPrimitiveHandle()
123 if (result == context->primitiveScopeStorageEnd_) { in NewPrimitiveHandle()
124 result = reinterpret_cast<JSTaggedType *>(context->ExpandPrimitiveStorage()); in NewPrimitiveHandle()
134 context->primitiveScopeStorageNext_ = result + 1; in NewPrimitiveHandle()