Lines Matching refs:mem
123 (((char*)(ptr) >= (char*)script->mem && (char*)(ptr) <= (char*)script->mem + script->size) || \
128 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \
148 (ptr) = (void*)((char*)(ptr) - (char*)script->mem); \
258 zend_string *s = (zend_string*)ZCG(mem);
265 ZCG(mem) = (void*)s;
278 str = (zend_string*)((char*)ZCG(mem) + ((size_t)(str) & ~Z_UL(1)));
936 info->script_offset = (char*)script - (char*)script->mem;
939 memcpy(buf, script->mem, script->size);
950 new_script->mem = NULL;
1069 void *mem, *buf; local
1103 mem = emalloc(script->size + 64);
1104 buf = (void*)(((uintptr_t)mem + 63L) & ~63L);
1106 mem = buf = emalloc(script->size);
1109 ZCG(mem) = zend_string_alloc(4096 - (_ZSTR_HEADER_SIZE + 1), 0);
1121 zend_string *const s = (zend_string*)ZCG(mem);
1138 efree(mem);
1145 efree(mem);
1756 script->mem = buf;
1777 void *mem, *checkpoint, *buf; local
1841 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size + 64);
1842 mem = (void*)(((uintptr_t)mem + 63L) & ~63L);
1844 mem = zend_arena_alloc(&CG(arena), info.mem_size + info.str_size);
1847 if (read(fd, mem, info.mem_size + info.str_size) != (ssize_t)(info.mem_size + info.str_size)) {
1863 …(actual_checksum = zend_adler32(ADLER32_INIT, mem, info.mem_size + info.str_size)) != info.checksu…
1908 memcpy(buf, mem, info.mem_size);
1912 buf = mem;
1916 ZCG(mem) = ((char*)mem + info.mem_size);