Lines Matching refs:base
209 } base; in sljit_allocate_stack() local
241 base.ptr = VirtualAlloc(NULL, max_limit, MEM_RESERVE, PAGE_READWRITE); in sljit_allocate_stack()
242 if (!base.ptr) { in sljit_allocate_stack()
246 stack->base = base.uw; in sljit_allocate_stack()
247 stack->limit = stack->base; in sljit_allocate_stack()
248 stack->max_limit = stack->base + max_limit; in sljit_allocate_stack()
249 if (sljit_stack_resize(stack, stack->base + limit)) { in sljit_allocate_stack()
255 base.ptr = mmap(NULL, max_limit, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); in sljit_allocate_stack()
263 base.ptr = mmap(NULL, max_limit, PROT_READ | PROT_WRITE, MAP_PRIVATE, dev_zero, 0); in sljit_allocate_stack()
265 if (base.ptr == MAP_FAILED) { in sljit_allocate_stack()
269 stack->base = base.uw; in sljit_allocate_stack()
270 stack->limit = stack->base + limit; in sljit_allocate_stack()
271 stack->max_limit = stack->base + max_limit; in sljit_allocate_stack()
273 stack->top = stack->base; in sljit_allocate_stack()
283 VirtualFree((void*)stack->base, 0, MEM_RELEASE); in sljit_free_stack()
285 munmap((void*)stack->base, stack->max_limit - stack->base); in sljit_free_stack()
295 if ((new_limit > stack->max_limit) || (new_limit < stack->base)) in sljit_stack_resize()