Lines Matching refs:ht

224 static zval* ZEND_FASTCALL zend_jit_symtable_find(HashTable *ht, zend_string *str)  in zend_jit_symtable_find()  argument
242 return zend_hash_index_find(ht, idx); in zend_jit_symtable_find()
246 return zend_hash_find(ht, str); in zend_jit_symtable_find()
249 static zval* ZEND_FASTCALL zend_jit_hash_index_lookup_rw_no_packed(HashTable *ht, zend_long idx) in zend_jit_hash_index_lookup_rw_no_packed() argument
253 if (!HT_IS_PACKED(ht)) { in zend_jit_hash_index_lookup_rw_no_packed()
254 retval = _zend_hash_index_find(ht, idx); in zend_jit_hash_index_lookup_rw_no_packed()
257 if (UNEXPECTED(zend_undefined_offset_write(ht, idx) == FAILURE)) { in zend_jit_hash_index_lookup_rw_no_packed()
260 retval = zend_hash_index_add_new(ht, idx, &EG(uninitialized_zval)); in zend_jit_hash_index_lookup_rw_no_packed()
265 static zval* ZEND_FASTCALL zend_jit_hash_index_lookup_rw(HashTable *ht, zend_long idx) in zend_jit_hash_index_lookup_rw() argument
267 zval *retval = zend_hash_index_find(ht, idx); in zend_jit_hash_index_lookup_rw()
270 if (UNEXPECTED(zend_undefined_offset_write(ht, idx) == FAILURE)) { in zend_jit_hash_index_lookup_rw()
273 retval = zend_hash_index_add_new(ht, idx, &EG(uninitialized_zval)); in zend_jit_hash_index_lookup_rw()
278 static zval* ZEND_FASTCALL zend_jit_hash_index_lookup_w(HashTable *ht, zend_long idx) in zend_jit_hash_index_lookup_w() argument
280 zval *retval = _zend_hash_index_find(ht, idx); in zend_jit_hash_index_lookup_w()
283 retval = zend_hash_index_add_new(ht, idx, &EG(uninitialized_zval)); in zend_jit_hash_index_lookup_w()
288 static zval* ZEND_FASTCALL zend_jit_hash_lookup_rw(HashTable *ht, zend_string *str) in zend_jit_hash_lookup_rw() argument
290 zval *retval = zend_hash_find_ex(ht, str, 1); in zend_jit_hash_lookup_rw()
296 if (UNEXPECTED(zend_undefined_index_write(ht, str) == FAILURE)) { in zend_jit_hash_lookup_rw()
305 if (UNEXPECTED(zend_undefined_index_write(ht, str) == FAILURE)) { in zend_jit_hash_lookup_rw()
309 retval = zend_hash_add_new(ht, str, &EG(uninitialized_zval)); in zend_jit_hash_lookup_rw()
315 static zval* ZEND_FASTCALL zend_jit_hash_lookup_w(HashTable *ht, zend_string *str) in zend_jit_hash_lookup_w() argument
317 zval *retval = zend_hash_find_ex(ht, str, 1); in zend_jit_hash_lookup_w()
327 retval = zend_hash_add_new(ht, str, &EG(uninitialized_zval)); in zend_jit_hash_lookup_w()
332 static zval* ZEND_FASTCALL zend_jit_symtable_lookup_rw(HashTable *ht, zend_string *str) in zend_jit_symtable_lookup_rw() argument
351 retval = zend_hash_index_find(ht, idx); in zend_jit_symtable_lookup_rw()
353 if (UNEXPECTED(zend_undefined_offset_write(ht, idx) == FAILURE)) { in zend_jit_symtable_lookup_rw()
356 retval = zend_hash_index_add_new(ht, idx, &EG(uninitialized_zval)); in zend_jit_symtable_lookup_rw()
362 retval = zend_hash_find(ht, str); in zend_jit_symtable_lookup_rw()
367 if (UNEXPECTED(zend_undefined_index_write(ht, str) == FAILURE)) { in zend_jit_symtable_lookup_rw()
376 if (UNEXPECTED(zend_undefined_index_write(ht, str) == FAILURE)) { in zend_jit_symtable_lookup_rw()
380 retval = zend_hash_add_new(ht, str, &EG(uninitialized_zval)); in zend_jit_symtable_lookup_rw()
386 static zval* ZEND_FASTCALL zend_jit_symtable_lookup_w(HashTable *ht, zend_string *str) in zend_jit_symtable_lookup_w() argument
405 retval = zend_hash_index_find(ht, idx); in zend_jit_symtable_lookup_w()
407 retval = zend_hash_index_add_new(ht, idx, &EG(uninitialized_zval)); in zend_jit_symtable_lookup_w()
413 retval = zend_hash_find(ht, str); in zend_jit_symtable_lookup_w()
422 retval = zend_hash_add_new(ht, str, &EG(uninitialized_zval)); in zend_jit_symtable_lookup_w()
436 static int ZEND_FASTCALL zend_jit_undefined_op_helper_write(HashTable *ht, uint32_t var) in zend_jit_undefined_op_helper_write() argument
443 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_undefined_op_helper_write()
444 GC_ADDREF(ht); in zend_jit_undefined_op_helper_write()
447 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_undefined_op_helper_write()
448 zend_array_destroy(ht); in zend_jit_undefined_op_helper_write()
454 static void ZEND_FASTCALL zend_jit_fetch_dim_r_helper(zend_array *ht, zval *dim, zval *result) in zend_jit_fetch_dim_r_helper() argument
476 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_r_helper()
477 GC_ADDREF(ht); in zend_jit_fetch_dim_r_helper()
482 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_r_helper()
483 zend_array_destroy(ht); in zend_jit_fetch_dim_r_helper()
526 retval = zend_hash_find(ht, offset_key); in zend_jit_fetch_dim_r_helper()
546 ZEND_HASH_INDEX_FIND(ht, hval, retval, num_undef); in zend_jit_fetch_dim_r_helper()
555 static void ZEND_FASTCALL zend_jit_fetch_dim_is_helper(zend_array *ht, zval *dim, zval *result) in zend_jit_fetch_dim_is_helper() argument
577 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_is_helper()
578 GC_ADDREF(ht); in zend_jit_fetch_dim_is_helper()
583 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_is_helper()
584 zend_array_destroy(ht); in zend_jit_fetch_dim_is_helper()
627 retval = zend_hash_find(ht, offset_key); in zend_jit_fetch_dim_is_helper()
645 ZEND_HASH_INDEX_FIND(ht, hval, retval, num_undef); in zend_jit_fetch_dim_is_helper()
653 static int ZEND_FASTCALL zend_jit_fetch_dim_isset_helper(zend_array *ht, zval *dim) in zend_jit_fetch_dim_isset_helper() argument
673 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_isset_helper()
674 GC_ADDREF(ht); in zend_jit_fetch_dim_isset_helper()
677 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_isset_helper()
678 zend_array_destroy(ht); in zend_jit_fetch_dim_isset_helper()
710 retval = zend_hash_find(ht, offset_key); in zend_jit_fetch_dim_isset_helper()
725 ZEND_HASH_INDEX_FIND(ht, hval, retval, num_undef); in zend_jit_fetch_dim_isset_helper()
735 static zval* ZEND_FASTCALL zend_jit_fetch_dim_rw_helper(zend_array *ht, zval *dim) in zend_jit_fetch_dim_rw_helper() argument
760 if (!zend_jit_undefined_op_helper_write(ht, opline->op2.var)) { in zend_jit_fetch_dim_rw_helper()
797 retval = zend_hash_find(ht, offset_key); in zend_jit_fetch_dim_rw_helper()
803 if (UNEXPECTED(zend_undefined_index_write(ht, offset_key) == FAILURE)) { in zend_jit_fetch_dim_rw_helper()
812 if (UNEXPECTED(zend_undefined_index_write(ht, offset_key) == FAILURE)) { in zend_jit_fetch_dim_rw_helper()
816 retval = zend_hash_add_new(ht, offset_key, &EG(uninitialized_zval)); in zend_jit_fetch_dim_rw_helper()
822 ZEND_HASH_INDEX_FIND(ht, hval, retval, num_undef); in zend_jit_fetch_dim_rw_helper()
826 if (UNEXPECTED(zend_undefined_offset_write(ht, hval) == FAILURE)) { in zend_jit_fetch_dim_rw_helper()
829 retval = zend_hash_index_add_new(ht, hval, &EG(uninitialized_zval)); in zend_jit_fetch_dim_rw_helper()
833 static zval* ZEND_FASTCALL zend_jit_fetch_dim_w_helper(zend_array *ht, zval *dim) in zend_jit_fetch_dim_w_helper() argument
855 if (!zend_jit_undefined_op_helper_write(ht, opline->op2.var)) { in zend_jit_fetch_dim_w_helper()
902 retval = zend_hash_find(ht, offset_key); in zend_jit_fetch_dim_w_helper()
912 retval = zend_hash_add_new(ht, offset_key, &EG(uninitialized_zval)); in zend_jit_fetch_dim_w_helper()
917 ZEND_HASH_INDEX_FIND(ht, hval, retval, num_undef); in zend_jit_fetch_dim_w_helper()
921 retval = zend_hash_index_add_new(ht, hval, &EG(uninitialized_zval)); in zend_jit_fetch_dim_w_helper()
2367 static zend_never_inline void ZEND_FASTCALL _zend_hash_iterators_remove(HashTable *ht) in _zend_hash_iterators_remove() argument
2373 if (iter->ht == ht) { in _zend_hash_iterators_remove()
2374 iter->ht = HT_POISONED_PTR; in _zend_hash_iterators_remove()
2380 static void ZEND_FASTCALL zend_jit_array_free(HashTable *ht) in zend_jit_array_free() argument
2382 GC_REMOVE_FROM_BUFFER(ht); in zend_jit_array_free()
2383 if (UNEXPECTED(HT_HAS_ITERATORS(ht))) { in zend_jit_array_free()
2384 _zend_hash_iterators_remove(ht); in zend_jit_array_free()
2386 if (!(EXPECTED(HT_FLAGS(ht) & HASH_FLAG_UNINITIALIZED))) { in zend_jit_array_free()
2387 efree(HT_GET_DATA_ADDR(ht)); in zend_jit_array_free()
2389 FREE_HASHTABLE(ht); in zend_jit_array_free()
2394 HashTable *ht; in zend_jit_zval_array_dup() local
2397 ht = Z_ARRVAL_P(arr); in zend_jit_zval_array_dup()
2398 ht = zend_array_dup(ht); in zend_jit_zval_array_dup()
2399 ZVAL_ARR(arr, ht); in zend_jit_zval_array_dup()
2400 return ht; in zend_jit_zval_array_dup()