Lines Matching refs:ht

314 static zval* ZEND_FASTCALL zend_jit_symtable_find(HashTable *ht, zend_string *str)  in zend_jit_symtable_find()  argument
332 return zend_hash_index_find(ht, idx); in zend_jit_symtable_find()
336 return zend_hash_find(ht, str); in zend_jit_symtable_find()
339 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
343 if (!HT_IS_PACKED(ht)) { in zend_jit_hash_index_lookup_rw_no_packed()
344 retval = _zend_hash_index_find(ht, idx); in zend_jit_hash_index_lookup_rw_no_packed()
347 retval = zend_undefined_offset_write(ht, idx); in zend_jit_hash_index_lookup_rw_no_packed()
352 static zval* ZEND_FASTCALL zend_jit_hash_index_lookup_rw(HashTable *ht, zend_long idx) in zend_jit_hash_index_lookup_rw() argument
354 zval *retval = zend_hash_index_find(ht, idx); in zend_jit_hash_index_lookup_rw()
357 retval = zend_undefined_offset_write(ht, idx); in zend_jit_hash_index_lookup_rw()
362 static zval* ZEND_FASTCALL zend_jit_hash_lookup_rw(HashTable *ht, zend_string *str) in zend_jit_hash_lookup_rw() argument
364 zval *retval = zend_hash_find_known_hash(ht, str); in zend_jit_hash_lookup_rw()
367 retval = zend_undefined_index_write(ht, str); in zend_jit_hash_lookup_rw()
372 static zval* ZEND_FASTCALL zend_jit_symtable_lookup_rw(HashTable *ht, zend_string *str) in zend_jit_symtable_lookup_rw() argument
391 retval = zend_hash_index_find(ht, idx); in zend_jit_symtable_lookup_rw()
393 retval = zend_undefined_offset_write(ht, idx); in zend_jit_symtable_lookup_rw()
399 retval = zend_hash_find(ht, str); in zend_jit_symtable_lookup_rw()
402 retval = zend_undefined_index_write(ht, str); in zend_jit_symtable_lookup_rw()
407 static zval* ZEND_FASTCALL zend_jit_symtable_lookup_w(HashTable *ht, zend_string *str) in zend_jit_symtable_lookup_w() argument
425 return zend_hash_index_lookup(ht, idx); in zend_jit_symtable_lookup_w()
429 return zend_hash_lookup(ht, str); in zend_jit_symtable_lookup_w()
441 static int ZEND_FASTCALL zend_jit_undefined_op_helper_write(HashTable *ht, uint32_t var) in zend_jit_undefined_op_helper_write() argument
448 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_undefined_op_helper_write()
449 GC_ADDREF(ht); in zend_jit_undefined_op_helper_write()
452 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { in zend_jit_undefined_op_helper_write()
453 if (!GC_REFCOUNT(ht)) { in zend_jit_undefined_op_helper_write()
454 zend_array_destroy(ht); in zend_jit_undefined_op_helper_write()
461 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
483 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_r_helper()
484 GC_ADDREF(ht); in zend_jit_fetch_dim_r_helper()
489 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_r_helper()
490 zend_array_destroy(ht); in zend_jit_fetch_dim_r_helper()
515 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_r_helper()
516 GC_ADDREF(ht); in zend_jit_fetch_dim_r_helper()
521 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_r_helper()
522 zend_array_destroy(ht); in zend_jit_fetch_dim_r_helper()
543 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_r_helper()
544 GC_ADDREF(ht); in zend_jit_fetch_dim_r_helper()
549 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_r_helper()
550 zend_array_destroy(ht); in zend_jit_fetch_dim_r_helper()
584 retval = zend_hash_find(ht, offset_key); in zend_jit_fetch_dim_r_helper()
594 ZEND_HASH_INDEX_FIND(ht, hval, retval, num_undef); in zend_jit_fetch_dim_r_helper()
603 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
625 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_is_helper()
626 GC_ADDREF(ht); in zend_jit_fetch_dim_is_helper()
631 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_is_helper()
632 zend_array_destroy(ht); in zend_jit_fetch_dim_is_helper()
657 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_is_helper()
658 GC_ADDREF(ht); in zend_jit_fetch_dim_is_helper()
663 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_is_helper()
664 zend_array_destroy(ht); in zend_jit_fetch_dim_is_helper()
685 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_is_helper()
686 GC_ADDREF(ht); in zend_jit_fetch_dim_is_helper()
691 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_is_helper()
692 zend_array_destroy(ht); in zend_jit_fetch_dim_is_helper()
728 retval = zend_hash_find(ht, offset_key); in zend_jit_fetch_dim_is_helper()
737 ZEND_HASH_INDEX_FIND(ht, hval, retval, num_undef); in zend_jit_fetch_dim_is_helper()
745 static int ZEND_FASTCALL zend_jit_fetch_dim_isset_helper(zend_array *ht, zval *dim) in zend_jit_fetch_dim_isset_helper() argument
765 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_isset_helper()
766 GC_ADDREF(ht); in zend_jit_fetch_dim_isset_helper()
769 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_isset_helper()
770 zend_array_destroy(ht); in zend_jit_fetch_dim_isset_helper()
785 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_isset_helper()
786 GC_ADDREF(ht); in zend_jit_fetch_dim_isset_helper()
789 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_isset_helper()
790 zend_array_destroy(ht); in zend_jit_fetch_dim_isset_helper()
801 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_isset_helper()
802 GC_ADDREF(ht); in zend_jit_fetch_dim_isset_helper()
805 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && !GC_DELREF(ht)) { in zend_jit_fetch_dim_isset_helper()
806 zend_array_destroy(ht); in zend_jit_fetch_dim_isset_helper()
829 retval = zend_hash_find(ht, offset_key); in zend_jit_fetch_dim_isset_helper()
839 ZEND_HASH_INDEX_FIND(ht, hval, retval, num_undef); in zend_jit_fetch_dim_isset_helper()
849 static zval* ZEND_FASTCALL zend_jit_fetch_dim_rw_helper(zend_array *ht, zval *dim) in zend_jit_fetch_dim_rw_helper() argument
874 if (opline && !zend_jit_undefined_op_helper_write(ht, opline->op2.var)) { in zend_jit_fetch_dim_rw_helper()
893 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_rw_helper()
894 GC_ADDREF(ht); in zend_jit_fetch_dim_rw_helper()
899 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { in zend_jit_fetch_dim_rw_helper()
900 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_rw_helper()
901 zend_array_destroy(ht); in zend_jit_fetch_dim_rw_helper()
923 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_rw_helper()
924 GC_ADDREF(ht); in zend_jit_fetch_dim_rw_helper()
929 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { in zend_jit_fetch_dim_rw_helper()
930 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_rw_helper()
931 zend_array_destroy(ht); in zend_jit_fetch_dim_rw_helper()
966 retval = zend_hash_find(ht, offset_key); in zend_jit_fetch_dim_rw_helper()
969 retval = zend_undefined_index_write(ht, offset_key); in zend_jit_fetch_dim_rw_helper()
974 ZEND_HASH_INDEX_FIND(ht, hval, retval, num_undef); in zend_jit_fetch_dim_rw_helper()
978 return zend_undefined_offset_write(ht, hval); in zend_jit_fetch_dim_rw_helper()
981 static zval* ZEND_FASTCALL zend_jit_fetch_dim_w_helper(zend_array *ht, zval *dim) in zend_jit_fetch_dim_w_helper() argument
1003 if (!zend_jit_undefined_op_helper_write(ht, opline->op2.var)) { in zend_jit_fetch_dim_w_helper()
1026 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_w_helper()
1027 GC_ADDREF(ht); in zend_jit_fetch_dim_w_helper()
1032 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { in zend_jit_fetch_dim_w_helper()
1033 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_w_helper()
1034 zend_array_destroy(ht); in zend_jit_fetch_dim_w_helper()
1056 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE)) { in zend_jit_fetch_dim_w_helper()
1057 GC_ADDREF(ht); in zend_jit_fetch_dim_w_helper()
1062 if (!(GC_FLAGS(ht) & IS_ARRAY_IMMUTABLE) && GC_DELREF(ht) != 1) { in zend_jit_fetch_dim_w_helper()
1063 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_w_helper()
1064 zend_array_destroy(ht); in zend_jit_fetch_dim_w_helper()
1106 return zend_hash_lookup(ht, offset_key); in zend_jit_fetch_dim_w_helper()
1109 ZEND_HASH_INDEX_LOOKUP(ht, hval, retval); in zend_jit_fetch_dim_w_helper()
2659 static zend_never_inline void ZEND_FASTCALL _zend_hash_iterators_remove(HashTable *ht) in _zend_hash_iterators_remove() argument
2665 if (iter->ht == ht) { in _zend_hash_iterators_remove()
2666 iter->ht = HT_POISONED_PTR; in _zend_hash_iterators_remove()
2672 static void ZEND_FASTCALL zend_jit_array_free(HashTable *ht) in zend_jit_array_free() argument
2674 GC_REMOVE_FROM_BUFFER(ht); in zend_jit_array_free()
2675 if (UNEXPECTED(HT_HAS_ITERATORS(ht))) { in zend_jit_array_free()
2676 _zend_hash_iterators_remove(ht); in zend_jit_array_free()
2678 if (!(EXPECTED(HT_FLAGS(ht) & HASH_FLAG_UNINITIALIZED))) { in zend_jit_array_free()
2679 efree(HT_GET_DATA_ADDR(ht)); in zend_jit_array_free()
2681 FREE_HASHTABLE(ht); in zend_jit_array_free()
2686 HashTable *ht; in zend_jit_zval_array_dup() local
2689 ht = Z_ARRVAL_P(arr); in zend_jit_zval_array_dup()
2690 ht = zend_array_dup(ht); in zend_jit_zval_array_dup()
2691 ZVAL_ARR(arr, ht); in zend_jit_zval_array_dup()
2692 return ht; in zend_jit_zval_array_dup()