Lines Matching refs:thread_local_
31 RegExpStack::RegExpStack() : thread_local_(this), isolate_(nullptr) {} in RegExpStack()
33 RegExpStack::~RegExpStack() { thread_local_.FreeAndInvalidate(); } in ~RegExpStack()
36 if (!thread_local_.owns_memory_) { in ArchiveStack()
41 EnsureCapacity(thread_local_.memory_size_ + 1); in ArchiveStack()
42 DCHECK(thread_local_.owns_memory_); in ArchiveStack()
45 MemCopy(reinterpret_cast<void*>(to), &thread_local_, kThreadLocalSize); in ArchiveStack()
46 thread_local_ = ThreadLocal(this); in ArchiveStack()
52 MemCopy(&thread_local_, reinterpret_cast<void*>(from), kThreadLocalSize); in RestoreStack()
56 void RegExpStack::Reset() { thread_local_.ResetToStaticStack(this); } in Reset()
84 if (thread_local_.memory_size_ < size) { in EnsureCapacity()
86 if (thread_local_.memory_size_ > 0) { in EnsureCapacity()
88 MemCopy(new_memory + size - thread_local_.memory_size_, in EnsureCapacity()
89 thread_local_.memory_, thread_local_.memory_size_); in EnsureCapacity()
90 if (thread_local_.owns_memory_) DeleteArray(thread_local_.memory_); in EnsureCapacity()
92 thread_local_.memory_ = new_memory; in EnsureCapacity()
93 thread_local_.memory_top_ = new_memory + size; in EnsureCapacity()
94 thread_local_.memory_size_ = size; in EnsureCapacity()
95 thread_local_.limit_ = reinterpret_cast<Address>(new_memory) + in EnsureCapacity()
97 thread_local_.owns_memory_ = true; in EnsureCapacity()
99 return reinterpret_cast<Address>(thread_local_.memory_top_); in EnsureCapacity()