Lines Matching refs:ZCG
92 if (EXPECTED(!ZCG(current_persistent_script)->corrupted)) { in zend_hash_persist()
102 if (EXPECTED(!ZCG(current_persistent_script)->corrupted)) { in zend_hash_persist()
129 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_hash_persist()
130 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist()
131 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE((hash_size * sizeof(uint32_t)) + (ht->nNumU… in zend_hash_persist()
154 void *data = ZCG(mem); in zend_hash_persist()
157 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_hash_persist()
158 ZCG(mem) = (void*)((char*)data + HT_USED_SIZE(ht)); in zend_hash_persist()
186 if (EXPECTED(!ZCG(current_persistent_script)->corrupted)) { in zend_hash_persist_immutable()
196 if (EXPECTED(!ZCG(current_persistent_script)->corrupted)) { in zend_hash_persist_immutable()
221 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_hash_persist_immutable()
222 HT_SET_DATA_ADDR(ht, ZCG(mem)); in zend_hash_persist_immutable()
223 …ZCG(mem) = (void*)((char*)ZCG(mem) + (hash_size * sizeof(uint32_t)) + (ht->nNumUsed * sizeof(Bucke… in zend_hash_persist_immutable()
246 void *data = ZCG(mem); in zend_hash_persist_immutable()
248 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_hash_persist_immutable()
249 ZCG(mem) = (void*)((char*)data + HT_USED_SIZE(ht)); in zend_hash_persist_immutable()
550 if (ZCG(accel_directives).save_comments) { in zend_persist_op_array_ex()
592 …ZCG(mem) = (void*)((char*)ZCG(mem) + ZEND_ALIGNED_SIZE(zend_extensions_op_array_persist(op_array, … in zend_persist_op_array_ex()
606 memcpy(ZCG(arena_mem), Z_PTR_P(zv), sizeof(zend_op_array)); in zend_persist_op_array()
607 zend_shared_alloc_register_xlat_entry(Z_PTR_P(zv), ZCG(arena_mem)); in zend_persist_op_array()
608 Z_PTR_P(zv) = ZCG(arena_mem); in zend_persist_op_array()
609 ZCG(arena_mem) = (void*)((char*)ZCG(arena_mem) + ZEND_ALIGNED_SIZE(sizeof(zend_op_array))); in zend_persist_op_array()
621 memcpy(ZCG(arena_mem), Z_PTR_P(zv), sizeof(zend_property_info)); in zend_persist_property_info()
622 zend_shared_alloc_register_xlat_entry(Z_PTR_P(zv), ZCG(arena_mem)); in zend_persist_property_info()
623 prop = Z_PTR_P(zv) = ZCG(arena_mem); in zend_persist_property_info()
624 ZCG(arena_mem) = (void*)((char*)ZCG(arena_mem) + ZEND_ALIGNED_SIZE(sizeof(zend_property_info))); in zend_persist_property_info()
628 if (ZCG(accel_directives).save_comments) { in zend_persist_property_info()
648 memcpy(ZCG(arena_mem), Z_PTR_P(zv), sizeof(zend_class_constant)); in zend_persist_class_constant()
649 zend_shared_alloc_register_xlat_entry(Z_PTR_P(zv), ZCG(arena_mem)); in zend_persist_class_constant()
650 c = Z_PTR_P(zv) = ZCG(arena_mem); in zend_persist_class_constant()
651 ZCG(arena_mem) = (void*)((char*)ZCG(arena_mem) + ZEND_ALIGNED_SIZE(sizeof(zend_class_constant))); in zend_persist_class_constant()
655 if (ZCG(accel_directives).save_comments) { in zend_persist_class_constant()
678 memcpy(ZCG(arena_mem), Z_PTR_P(zv), sizeof(zend_class_entry)); in zend_persist_class_entry()
679 zend_shared_alloc_register_xlat_entry(Z_PTR_P(zv), ZCG(arena_mem)); in zend_persist_class_entry()
680 ce = Z_PTR_P(zv) = ZCG(arena_mem); in zend_persist_class_entry()
681 ZCG(arena_mem) = (void*)((char*)ZCG(arena_mem) + ZEND_ALIGNED_SIZE(sizeof(zend_class_entry))); in zend_persist_class_entry()
709 if (ZCG(accel_directives).save_comments) { in zend_persist_class_entry()
854 script->mem = ZCG(mem); in zend_accel_script_persist()
856 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_accel_script_persist()
865 ZCG(current_persistent_script) = script; in zend_accel_script_persist()
876 ZCG(mem) = (void*)(((zend_uintptr_t)ZCG(mem) + 63L) & ~63L); in zend_accel_script_persist()
878 ZEND_ASSERT(((zend_uintptr_t)ZCG(mem) & 0x7) == 0); /* should be 8 byte aligned */ in zend_accel_script_persist()
881 script->arena_mem = ZCG(arena_mem) = ZCG(mem); in zend_accel_script_persist()
882 ZCG(mem) = (void*)((char*)ZCG(mem) + script->arena_size); in zend_accel_script_persist()
889 ZCG(current_persistent_script) = NULL; in zend_accel_script_persist()