Lines Matching refs:int32
34 static const int32 invalidStackId = 0;
35 static const int32 invalidStorageId = 0;
51 int32 line;
55 ScopeDesc(const char* srcFile, int32 srcLine, const char* scopeName) in ScopeDesc()
67 int32 GetSourceLine() const in GetSourceLine()
87 int32 parentIndex;
88 int32 descIndex;
92 ScopeStackEntry(int32 _parentIndex, int32 _descIndex) in ScopeStackEntry()
101 parentIndex = std::numeric_limits<int32>::lowest(); in ~ScopeStackEntry()
102 descIndex = std::numeric_limits<int32>::lowest(); in ~ScopeStackEntry()
106 int32 GetParentId() const in GetParentId()
111 int32 GetDescriptionId() const in GetDescriptionId()
130 static const int32 ALIGNMENT = 16;
131 static const int32 ALIGNMENT_MASK = (ALIGNMENT-1);
133 MT::Atomic32<int32> top;
138 T* IndexToObject(int32 index) in IndexToObject()
146 T* AllocObject(int32 & id) in AllocObject()
149 int32 index = top.IncFetch() - 1; in AllocObject()
150 …MT_VERIFY(index < (int32)capacity, "Area allocator is full. Can't allocate more memory.", return n… in AllocObject()
168 int32 count = top.Exchange(0); in ~PersistentScopeDescriptorStorage()
169 for (int32 i = 0; i < count; i++) in ~PersistentScopeDescriptorStorage()
177 int32 Alloc(const char* srcFile, int32 srcLine, const char* scopeName) in Alloc()
179 int32 id; in Alloc()
191 int32 Alloc(const char* srcFile, int32 srcLine, const char* scopeName, const T1 & p1) in Alloc()
193 int32 id; in Alloc()
204 …int32 Alloc(const char* srcFile, int32 srcLine, const char* scopeName, const T1 & p1, const T1 & p… in Alloc()
206 int32 id; in Alloc()
217 …int32 Alloc(const char* srcFile, int32 srcLine, const char* scopeName, const T1 & p1, const T1 & p… in Alloc()
219 int32 id; in Alloc()
229 T* Get(int32 id) in Get()
233 int32 index = ( id - 1); in Get()
253 static const int32 ALIGNMENT = 16;
254 static const int32 ALIGNMENT_MASK = (ALIGNMENT-1);
256 int32 top;
259 T* IndexToObject(int32 index) in IndexToObject()
269 int32 index = top; in AllocObject()
270 …MT_VERIFY(index < (int32)capacity, "Stack allocator overflow. Can't allocate more memory.", return… in AllocObject()
286 for(int32 i = 0; i < top; i++) in ~WeakScopeStack()
296 T* Get(int32 id) in Get()
299 int32 index = (id - 1); in Get()
303 int32 Top() in Top()
305 int32 id = top; in Top()
312 int32 index = top; in Pop()
372 static const int32 ALIGNMENT = 16;
373 static const int32 ALIGNMENT_MASK = (ALIGNMENT-1);
375 int32 count;
376 int32 top;
379 std::array<int32, 256> stackId;
385 T* IndexToObject(int32 index) in IndexToObject()
394 int32 stackIndex = top; in AllocObject()
395 MT_VERIFY(stackIndex < (int32)stackId.size(), "Stack is too deep.", return nullptr); in AllocObject()
398 int32 index = count; in AllocObject()
399 …MT_VERIFY(index < (int32)capacity, "Stack allocator overflow. Can't allocate more memory.", return… in AllocObject()
423 T* Get(int32 id) in Get()
426 int32 index = (id - 1); in Get()
430 int32 Top() in Top()
443 int32 index = top; in Pop()
484 for(int32 i = 0; i < count; i++) in Reset()
492 int32 stackIdCount = (int32)stackId.size(); in Reset()
493 for(int32 i = 0; i < stackIdCount; i++) in Reset()
495 stackId[i] = std::numeric_limits<int32>::lowest(); in Reset()
515 …static MT::Atomic32Base<int32> SCOPE_CONCAT(scope_descriptorIndex_, line) = { MT_SCOPE_NOT_INITIAL…
516 …static_assert(std::is_pod< MT::Atomic32Base<int32> >::value == true, "AtomicInt32Base type should …
518 int32 SCOPE_CONCAT(scope_descId_, line) = MT_SCOPE_NOT_INITIALIZED; \
520 …int32 SCOPE_CONCAT(scope_state_, line) = SCOPE_CONCAT(scope_descriptorIndex_, line).CompareAndSwap…
590 int32 SCOPE_CONCAT(scope_stackParentId_, __LINE__) = stackPointer -> Top(); \
598 int32 SCOPE_CONCAT(scope_stackParentId_, __LINE__) = stackPointer -> Top(); \
605 int32 SCOPE_CONCAT(scope_stackParentId_, __LINE__) = stackPointer -> Top(); \