Lines Matching refs:wm
305 zend_weakmap *wm = zend_object_alloc(sizeof(zend_weakmap), ce); in zend_weakmap_create_object() local
306 zend_object_std_init(&wm->std, ce); in zend_weakmap_create_object()
307 wm->std.handlers = &zend_weakmap_handlers; in zend_weakmap_create_object()
309 zend_hash_init(&wm->ht, 0, NULL, ZVAL_PTR_DTOR, 0); in zend_weakmap_create_object()
310 return &wm->std; in zend_weakmap_create_object()
315 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_free_obj() local
317 ZEND_HASH_MAP_FOREACH_NUM_KEY(&wm->ht, obj_key) { in zend_weakmap_free_obj()
322 zend_weakref_key_to_object(obj_key), ZEND_WEAKREF_ENCODE(&wm->ht, ZEND_WEAKREF_TAG_MAP), 0); in zend_weakmap_free_obj()
324 zend_hash_destroy(&wm->ht); in zend_weakmap_free_obj()
325 zend_object_std_dtor(&wm->std); in zend_weakmap_free_obj()
341 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_read_dimension() local
343 zval *zv = zend_hash_index_find(&wm->ht, zend_object_to_weakref_key(obj_addr)); in zend_weakmap_read_dimension()
372 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_write_dimension() local
377 zval *zv = zend_hash_index_find(&wm->ht, obj_key); in zend_weakmap_write_dimension()
388 zend_weakref_register(obj_addr, ZEND_WEAKREF_ENCODE(&wm->ht, ZEND_WEAKREF_TAG_MAP)); in zend_weakmap_write_dimension()
389 zend_hash_index_add_new(&wm->ht, obj_key, value); in zend_weakmap_write_dimension()
401 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_has_dimension() local
402 zval *zv = zend_hash_index_find(&wm->ht, zend_object_to_weakref_key(Z_OBJ_P(offset))); in zend_weakmap_has_dimension()
421 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_unset_dimension() local
423 if (!zend_hash_index_exists(&wm->ht, zend_object_to_weakref_key(obj_addr))) { in zend_weakmap_unset_dimension()
428 zend_weakref_unregister(obj_addr, ZEND_WEAKREF_ENCODE(&wm->ht, ZEND_WEAKREF_TAG_MAP), 1); in zend_weakmap_unset_dimension()
433 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_count_elements() local
434 *count = zend_hash_num_elements(&wm->ht); in zend_weakmap_count_elements()
444 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_get_properties_for() local
447 zend_hash_init(ht, zend_hash_num_elements(&wm->ht), NULL, ZVAL_PTR_DTOR, 0); in zend_weakmap_get_properties_for()
451 ZEND_HASH_MAP_FOREACH_NUM_KEY_VAL(&wm->ht, obj_key, val) { in zend_weakmap_get_properties_for()
469 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_get_gc() local
472 ZEND_HASH_MAP_FOREACH_VAL(&wm->ht, val) { in zend_weakmap_get_gc()
511 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_valid() local
513 return zend_hash_has_more_elements_ex(&wm->ht, pos); in zend_weakmap_iterator_valid()
519 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_get_current_data() local
521 return zend_hash_get_current_data_ex(&wm->ht, pos); in zend_weakmap_iterator_get_current_data()
527 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_get_current_key() local
532 int key_type = zend_hash_get_current_key_ex(&wm->ht, &string_key, &num_key, pos); in zend_weakmap_iterator_get_current_key()
547 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_move_forward() local
549 zend_hash_move_forward_ex(&wm->ht, pos); in zend_weakmap_iterator_move_forward()
555 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_rewind() local
557 zend_hash_internal_pointer_reset_ex(&wm->ht, pos); in zend_weakmap_iterator_rewind()
575 zend_weakmap *wm = zend_weakmap_fetch(object); in zend_weakmap_get_iterator() local
580 iter->ht_iter = zend_hash_iterator_add(&wm->ht, 0); in zend_weakmap_get_iterator()