blob: 05e010cc819967a79c4a125715d65ccb9332446b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
from awlsim.common.cython_support cimport *
from awlsim.core.memory cimport *
from awlsim.core.offset cimport *
cdef struct LStackFrame:
uint32_t byteOffset
uint32_t allocBits
LStackFrame *prevFrame
cdef class LStackAllocator(object):
cdef public AwlMemory memory
cdef public uint32_t maxAllocBits
cdef public uint32_t globAllocBits
cdef LStackFrame *topFrame
cdef public AwlOffset topFrameOffset
cdef resize(self, uint32_t maxAllocBytes)
cdef void reset(self)
cdef void enterStackFrame(self)
cdef void exitStackFrame(self)
cdef AwlOffset alloc(self, uint32_t nrBits)
|