Lines Matching refs:dasm_buf
85 static void *dasm_buf = NULL; variable
829 if (dasm_buf) { in zend_jit_status()
830 add_assoc_long(&stats, "buffer_size", (char*)dasm_end - (char*)dasm_buf); in zend_jit_status()
3417 if (mprotect(dasm_buf, dasm_size, opts) != 0) { in zend_jit_unprotect()
3429 if (!VirtualProtect(dasm_buf, dasm_size, new, &old)) { in zend_jit_unprotect()
3448 if (mprotect(dasm_buf, dasm_size, PROT_READ | PROT_EXEC) != 0) { in zend_jit_protect()
3456 if (!VirtualProtect(dasm_buf, dasm_size, PAGE_EXECUTE_READ, &old)) { in zend_jit_protect()
3677 dasm_buf = buf; in zend_jit_startup()
3679 dasm_ptr = dasm_end = (void*)(((char*)dasm_buf) + size - sizeof(*dasm_ptr) * 2); in zend_jit_startup()
3688 if (mprotect(dasm_buf, dasm_size, PROT_READ | PROT_WRITE | PROT_EXEC) != 0) { in zend_jit_startup()
3692 if (mprotect(dasm_buf, dasm_size, PROT_READ | PROT_EXEC) != 0) { in zend_jit_startup()
3700 if (!VirtualProtect(dasm_buf, dasm_size, PAGE_EXECUTE_READWRITE, &old)) { in zend_jit_startup()
3709 if (!VirtualProtect(dasm_buf, dasm_size, PAGE_EXECUTE_READ, &old)) { in zend_jit_startup()
3720 *dasm_ptr = dasm_buf; in zend_jit_startup()
3722 zend_jit_stub_handlers = dasm_buf; in zend_jit_startup()
3725 zend_jit_stub_handlers = dasm_buf; in zend_jit_startup()
3733 zend_jit_stub_handlers = dasm_buf; in zend_jit_startup()
3754 fprintf(stderr, "\nJIT memory usage: %td\n", (ptrdiff_t)((char*)*dasm_ptr - (char*)dasm_buf)); in zend_jit_shutdown()
3880 if (dasm_buf) { in zend_jit_restart()