Lines Matching refs:wm

329 	zend_weakmap *wm = zend_object_alloc(sizeof(zend_weakmap), ce);  in zend_weakmap_create_object()  local
330 zend_object_std_init(&wm->std, ce); in zend_weakmap_create_object()
332 zend_hash_init(&wm->ht, 0, NULL, ZVAL_PTR_DTOR, 0); in zend_weakmap_create_object()
333 return &wm->std; in zend_weakmap_create_object()
338 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_free_obj() local
340 ZEND_HASH_MAP_FOREACH_NUM_KEY(&wm->ht, obj_key) { in zend_weakmap_free_obj()
345 zend_weakref_key_to_object(obj_key), ZEND_WEAKREF_ENCODE(&wm->ht, ZEND_WEAKREF_TAG_MAP), 0); in zend_weakmap_free_obj()
347 zend_hash_destroy(&wm->ht); in zend_weakmap_free_obj()
348 zend_object_std_dtor(&wm->std); in zend_weakmap_free_obj()
364 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_read_dimension() local
366 zval *zv = zend_hash_index_find(&wm->ht, zend_object_to_weakref_key(obj_addr)); in zend_weakmap_read_dimension()
395 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_write_dimension() local
400 zval *zv = zend_hash_index_find(&wm->ht, obj_key); in zend_weakmap_write_dimension()
411 zend_weakref_register(obj_addr, ZEND_WEAKREF_ENCODE(&wm->ht, ZEND_WEAKREF_TAG_MAP)); in zend_weakmap_write_dimension()
412 zend_hash_index_add_new(&wm->ht, obj_key, value); in zend_weakmap_write_dimension()
425 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_has_dimension() local
426 zval *zv = zend_hash_index_find(&wm->ht, zend_object_to_weakref_key(Z_OBJ_P(offset))); in zend_weakmap_has_dimension()
445 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_unset_dimension() local
447 if (!zend_hash_index_exists(&wm->ht, zend_object_to_weakref_key(obj_addr))) { in zend_weakmap_unset_dimension()
452 zend_weakref_unregister(obj_addr, ZEND_WEAKREF_ENCODE(&wm->ht, ZEND_WEAKREF_TAG_MAP), 1); in zend_weakmap_unset_dimension()
457 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_count_elements() local
458 *count = zend_hash_num_elements(&wm->ht); in zend_weakmap_count_elements()
468 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_get_properties_for() local
471 zend_hash_init(ht, zend_hash_num_elements(&wm->ht), NULL, ZVAL_PTR_DTOR, 0); in zend_weakmap_get_properties_for()
475 ZEND_HASH_MAP_FOREACH_NUM_KEY_VAL(&wm->ht, obj_key, val) { in zend_weakmap_get_properties_for()
493 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_get_gc() local
496 ZEND_HASH_MAP_FOREACH_VAL(&wm->ht, val) { in zend_weakmap_get_gc()
505 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_get_key_entry_gc() local
509 ZEND_HASH_MAP_FOREACH_NUM_KEY_VAL(&wm->ht, h, val) { in zend_weakmap_get_key_entry_gc()
520 zend_weakmap *wm = zend_weakmap_from(object); in zend_weakmap_get_entry_gc() local
523 ZEND_HASH_MAP_FOREACH_VAL(&wm->ht, val) { in zend_weakmap_get_entry_gc()
545 zend_weakmap *wm = (zend_weakmap*) ZEND_WEAKREF_GET_PTR(tagged_ptr); in zend_weakmap_get_object_key_entry_gc() local
546 zval *zv = zend_hash_index_find(&wm->ht, obj_key); in zend_weakmap_get_object_key_entry_gc()
549 zend_get_gc_buffer_add_obj(gc_buffer, &wm->std); in zend_weakmap_get_object_key_entry_gc()
553 zend_weakmap *wm = (zend_weakmap*) ptr; in zend_weakmap_get_object_key_entry_gc() local
554 zval *zv = zend_hash_index_find(&wm->ht, obj_key); in zend_weakmap_get_object_key_entry_gc()
557 zend_get_gc_buffer_add_obj(gc_buffer, &wm->std); in zend_weakmap_get_object_key_entry_gc()
580 zend_weakmap *wm = (zend_weakmap*) ZEND_WEAKREF_GET_PTR(tagged_ptr); in zend_weakmap_get_object_entry_gc() local
581 zval *zv = zend_hash_index_find(&wm->ht, obj_key); in zend_weakmap_get_object_entry_gc()
587 zend_weakmap *wm = (zend_weakmap*) ptr; in zend_weakmap_get_object_entry_gc() local
588 zval *zv = zend_hash_index_find(&wm->ht, obj_key); in zend_weakmap_get_object_entry_gc()
630 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_valid() local
632 return zend_hash_has_more_elements_ex(&wm->ht, pos); in zend_weakmap_iterator_valid()
638 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_get_current_data() local
640 return zend_hash_get_current_data_ex(&wm->ht, pos); in zend_weakmap_iterator_get_current_data()
646 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_get_current_key() local
651 int key_type = zend_hash_get_current_key_ex(&wm->ht, &string_key, &num_key, pos); in zend_weakmap_iterator_get_current_key()
666 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_move_forward() local
668 zend_hash_move_forward_ex(&wm->ht, pos); in zend_weakmap_iterator_move_forward()
674 zend_weakmap *wm = zend_weakmap_fetch(&iter->it.data); in zend_weakmap_iterator_rewind() local
676 zend_hash_internal_pointer_reset_ex(&wm->ht, pos); in zend_weakmap_iterator_rewind()
694 zend_weakmap *wm = zend_weakmap_fetch(object); in zend_weakmap_get_iterator() local
699 iter->ht_iter = zend_hash_iterator_add(&wm->ht, 0); in zend_weakmap_get_iterator()