Lines Matching refs:wm
286 zend_weakmap *wm = zend_object_alloc(sizeof(zend_weakmap), ce); in zend_weakmap_create_object() local
287 zend_object_std_init(&wm->std, ce); in zend_weakmap_create_object()
288 wm->std.handlers = &zend_weakmap_handlers; in zend_weakmap_create_object()
290 zend_hash_init(&wm->ht, 0, NULL, ZVAL_PTR_DTOR, 0); in zend_weakmap_create_object()
291 return &wm->std; in zend_weakmap_create_object()
296 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_free_obj() local
298 ZEND_HASH_FOREACH_NUM_KEY(&wm->ht, obj_addr) { in zend_weakmap_free_obj()
300 (zend_object *) obj_addr, ZEND_WEAKREF_ENCODE(&wm->ht, ZEND_WEAKREF_TAG_MAP)); in zend_weakmap_free_obj()
302 zend_hash_destroy(&wm->ht); in zend_weakmap_free_obj()
303 zend_object_std_dtor(&wm->std); in zend_weakmap_free_obj()
319 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_read_dimension() local
321 zval *zv = zend_hash_index_find(&wm->ht, (zend_ulong) obj_key); in zend_weakmap_read_dimension()
350 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_write_dimension() local
354 zval *zv = zend_hash_index_find(&wm->ht, (zend_ulong) obj_key); in zend_weakmap_write_dimension()
365 zend_weakref_register(obj_key, ZEND_WEAKREF_ENCODE(&wm->ht, ZEND_WEAKREF_TAG_MAP)); in zend_weakmap_write_dimension()
366 zend_hash_index_add_new(&wm->ht, (zend_ulong) obj_key, value); in zend_weakmap_write_dimension()
378 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_has_dimension() local
379 zval *zv = zend_hash_index_find(&wm->ht, (zend_ulong) Z_OBJ_P(offset)); in zend_weakmap_has_dimension()
398 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_unset_dimension() local
400 if (!zend_hash_index_exists(&wm->ht, (zend_ulong) Z_OBJ_P(offset))) { in zend_weakmap_unset_dimension()
405 zend_weakref_unregister(obj_key, ZEND_WEAKREF_ENCODE(&wm->ht, ZEND_WEAKREF_TAG_MAP)); in zend_weakmap_unset_dimension()
410 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_count_elements() local
411 *count = zend_hash_num_elements(&wm->ht); in zend_weakmap_count_elements()
421 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_get_properties_for() local
424 zend_hash_init(ht, zend_hash_num_elements(&wm->ht), NULL, ZVAL_PTR_DTOR, 0); in zend_weakmap_get_properties_for()
428 ZEND_HASH_FOREACH_NUM_KEY_VAL(&wm->ht, obj_addr, val) { in zend_weakmap_get_properties_for()
446 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_get_gc() local
449 ZEND_HASH_FOREACH_VAL(&wm->ht, val) { in zend_weakmap_get_gc()
488 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_valid() local
490 return zend_hash_has_more_elements_ex(&wm->ht, pos); in zend_weakmap_iterator_valid()
496 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_get_current_data() local
498 return zend_hash_get_current_data_ex(&wm->ht, pos); in zend_weakmap_iterator_get_current_data()
504 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_get_current_key() local
509 int key_type = zend_hash_get_current_key_ex(&wm->ht, &string_key, &num_key, pos); in zend_weakmap_iterator_get_current_key()
520 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_move_forward() local
522 zend_hash_move_forward_ex(&wm->ht, pos); in zend_weakmap_iterator_move_forward()
528 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_rewind() local
530 zend_hash_internal_pointer_reset_ex(&wm->ht, pos); in zend_weakmap_iterator_rewind()
548 zend_weakmap *wm = zend_weakmap_fetch(object); in zend_weakmap_get_iterator() local
553 iter->ht_iter = zend_hash_iterator_add(&wm->ht, 0); in zend_weakmap_get_iterator()