Home
last modified time | relevance | path

Searched refs:PARROT_ASSERT (Results 1 – 25 of 88) sorted by relevance

1234

/dports/lang/parrot/parrot-8.1.0/src/call/
H A Dcontext_accessors.c95 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_get_pmc_constants_func()
107 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_set_constants_func()
130 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_get_recursion_depth_func()
151 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_set_recursion_depth_func()
170 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_inc_recursion_depth_func()
189 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_dec_recursion_depth_func()
213 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_get_caller_ctx_func()
222 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_set_caller_ctx_func()
248 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_get_outer_ctx_func()
257 PARROT_ASSERT(ctx->vtable->base_type == enum_class_CallContext); in Parrot_pcc_set_outer_ctx_func()
[all …]
H A Dcontext.c180 PARROT_ASSERT( in Parrot_pcc_set_sub()
241 PARROT_ASSERT(PMC_IS_NULL(pmcold) || pmcold->vtable->base_type == enum_class_CallContext); in init_context()
654 PARROT_ASSERT(PCC_GET_REGS_USED(ctx, REGNO_INT) > idx); in Parrot_pcc_get_INTVAL_reg()
685 PARROT_ASSERT(PCC_GET_REGS_USED(ctx, REGNO_NUM) > idx); in Parrot_pcc_get_FLOATVAL_reg()
713 PARROT_ASSERT(PCC_GET_REGS_USED(ctx, REGNO_STR) > idx); in Parrot_pcc_get_STRING_reg()
742 PARROT_ASSERT(PCC_GET_REGS_USED(ctx, REGNO_PMC) > idx); in Parrot_pcc_get_PMC_reg()
745 PARROT_ASSERT(!*res || !PObj_on_free_list_TEST(*res)); in Parrot_pcc_get_PMC_reg()
/dports/lang/parrot/parrot-8.1.0/src/gc/
H A Dalloc_resources.c320 PARROT_ASSERT(--count); in check_fixed_size_obj_pool()
326 PARROT_ASSERT(--count); in check_fixed_size_obj_pool()
331 PARROT_ASSERT(free_objects == pool->num_free_objects); in check_fixed_size_obj_pool()
340 PARROT_ASSERT(--count); in check_fixed_size_obj_pool()
343 PARROT_ASSERT(total_objects == 0); in check_fixed_size_obj_pool()
345 PARROT_ASSERT(free_objects == 0); in check_fixed_size_obj_pool()
373 PARROT_ASSERT(block_walker->start in check_var_size_obj_pool()
383 PARROT_ASSERT(count > 0); in check_var_size_obj_pool()
413 PARROT_ASSERT(((STRING *) pobj)->strstart >= in check_buffer_ptr()
415 PARROT_ASSERT(((STRING *) pobj)->strstart + in check_buffer_ptr()
[all …]
H A Dapi.c240 PARROT_ASSERT(interp->gc_sys->do_gc_mark); in Parrot_gc_initialize()
241 PARROT_ASSERT(interp->gc_sys->maybe_gc_mark); in Parrot_gc_initialize()
242 PARROT_ASSERT(interp->gc_sys->compact_string_pool); in Parrot_gc_initialize()
248 PARROT_ASSERT(interp->gc_sys->allocate_pmc_header); in Parrot_gc_initialize()
249 PARROT_ASSERT(interp->gc_sys->free_pmc_header); in Parrot_gc_initialize()
252 PARROT_ASSERT(interp->gc_sys->free_string_header); in Parrot_gc_initialize()
260 PARROT_ASSERT(interp->gc_sys->free_pmc_attributes); in Parrot_gc_initialize()
271 PARROT_ASSERT(interp->gc_sys->allocate_memory_chunk); in Parrot_gc_initialize()
275 PARROT_ASSERT(interp->gc_sys->free_memory_chunk); in Parrot_gc_initialize()
277 PARROT_ASSERT(interp->gc_sys->get_gc_info); in Parrot_gc_initialize()
[all …]
H A Dstring_gc.c414 PARROT_ASSERT(PObj_is_movable_TESTALL(str)); in Parrot_gc_str_reallocate_string_storage()
417 PARROT_ASSERT(!(*Buffer_bufflagsptr(str) & Buffer_shared_FLAG)); in Parrot_gc_str_reallocate_string_storage()
420 PARROT_ASSERT(Buffer_pool(str)); in Parrot_gc_str_reallocate_string_storage()
423 PARROT_ASSERT(str->bufused <= Buffer_buflen(str)); in Parrot_gc_str_reallocate_string_storage()
487 PARROT_ASSERT(block); in Parrot_gc_str_free_buffer_storage()
630 PARROT_ASSERT(pool->top_block); in mem_allocate()
797 PARROT_ASSERT(new_block->size >= new_size); in compact_pool()
955 PARROT_ASSERT(PObj_is_COWable_TEST(old_buf)); in move_one_buffer()
972 PARROT_ASSERT(PObj_is_COWable_TEST(old_buf)); in move_one_buffer()
1026 PARROT_ASSERT(new_block == pool->top_block); in free_old_mem_blocks()
H A Dgc_gms.c118 PARROT_ASSERT((pmc) == NULL || (pmc)->orig_interp == (interp))
1106 PARROT_ASSERT(!PObj_GC_on_dirty_list_TEST(pmc)); in gc_gms_process_work_list()
1190 PARROT_ASSERT(!PObj_on_free_list_TEST(str)); in gc_gms_sweep_pools()
1241 PARROT_ASSERT(!PObj_on_free_list_TEST(pmc) in gc_gms_mark_pmc_header()
1574 PARROT_ASSERT(!PObj_GC_on_dirty_list_TEST(pmc)); in gc_gms_free_pmc_header()
2339 PARROT_ASSERT((gen == i) || !PObj_GC_on_dirty_list_TEST(pmc) in gc_gms_check_sanity()
2343 PARROT_ASSERT(PObj_GC_need_write_barrier_TEST(pmc) in gc_gms_check_sanity()
2348 PARROT_ASSERT((POBJ2GEN(str) == i) in gc_gms_check_sanity()
2356 PARROT_ASSERT(PObj_GC_on_dirty_list_TEST(pmc) in gc_gms_check_sanity()
2364 PARROT_ASSERT(!PObj_GC_on_dirty_list_TEST(pmc) in gc_gms_check_sanity()
[all …]
H A Dsystem.c237 PARROT_ASSERT(lo_var_ptr); in trace_system_stack()
413 PARROT_ASSERT(i == bound); in find_common_mask()
/dports/lang/parrot/parrot-8.1.0/include/parrot/
H A Dparrot.h220 #define STRUCT_COPY(d, s) (PARROT_ASSERT(d), PARROT_ASSERT(s), *(d)=*(s))
222 (PARROT_ASSERT(d), PARROT_ASSERT(s), PARROT_ASSERT(sizeof (*(d))==sizeof (*(s))), \
225 #define STRUCT_COPY_FROM_STRUCT(d, s) (PARROT_ASSERT(d), *(d)=(s))
H A Dthr_pthread.h40 PARROT_ASSERT(rc == 0); \
42 PARROT_ASSERT(rc == 0); \
44 PARROT_ASSERT(rc == 0); \
H A Dexceptions.h293 # define PARROT_ASSERT(x) /*@-noeffect@*/((void)0)/*@=noeffect@*/ macro
299 # define PARROT_ASSERT(x) (x) ? ((void)0) : Parrot_confess(#x, __FILE__, __LINE__) macro
/dports/lang/parrot/parrot-8.1.0/src/io/
H A Dbuffer.c117 PARROT_ASSERT(BUFFER_IS_EMPTY(buffer)); in Parrot_io_buffer_allocate()
177 PARROT_ASSERT(buffer); in Parrot_io_buffer_add_to_handle()
299 PARROT_ASSERT(bytes_read <= length); in Parrot_io_buffer_read_b()
301 PARROT_ASSERT(length >= bytes_read); in Parrot_io_buffer_read_b()
344 PARROT_ASSERT(length > 0); in io_buffer_transfer_to_mem()
350 PARROT_ASSERT(copy_length <= length); in io_buffer_transfer_to_mem()
391 PARROT_ASSERT(used_size > 0); in io_buffer_normalize()
401 PARROT_ASSERT(used_size == BUFFER_USED_SIZE(buffer)); in io_buffer_normalize()
481 PARROT_ASSERT(BUFFER_IS_EMPTY(buffer)); in Parrot_io_buffer_write_b()
490 PARROT_ASSERT(BUFFER_USED_SIZE(buffer) == length); in Parrot_io_buffer_write_b()
[all …]
H A Dutilities.c220 PARROT_ASSERT(buffer); in io_verify_has_read_buffer()
293 PARROT_ASSERT(s->encoding); in io_read_encoded_string()
328 PARROT_ASSERT(char_length > 0); in io_read_encoded_string()
369 PARROT_ASSERT(s->encoding); in io_read_chars_append_string()
370 PARROT_ASSERT(byte_length > 0); in io_read_chars_append_string()
386 PARROT_ASSERT(bytes_read <= byte_length); in io_read_chars_append_string()
520 PARROT_ASSERT(BUFFER_IS_EMPTY(write_buffer)); in io_sync_buffers_for_read()
H A Dio_private.h155 PARROT_ASSERT((b)->buffer_ptr <= (b)->buffer_start); \
156 PARROT_ASSERT((b)->buffer_start <= (b)->buffer_end); \
157 PARROT_ASSERT((b)->buffer_end <= (b)->buffer_ptr + (b)->buffer_size); \
158 PARROT_ASSERT(BUFFER_FREE_HEAD_SPACE(b) + BUFFER_USED_SIZE(b) + BUFFER_FREE_END_SPACE(b) \
/dports/lang/parrot/parrot-8.1.0/src/pmc/
H A Dproxy.pmc113 PARROT_ASSERT(!PMC_IS_NULL(target));
114 PARROT_ASSERT(target->vtable->base_type != enum_class_Proxy);
143 PARROT_ASSERT(interp != data->interp);
157 PARROT_ASSERT(((PMC *)result)->orig_interp == interp);
164 PARROT_ASSERT(((PMC *)result)->orig_interp != interp);
180 PARROT_ASSERT(_class->vtable->base_type != enum_class_Proxy);
H A Dimageiothaw.pmc22 #define BYTECODE_SHIFT_OK(interp, pmc) PARROT_ASSERT( \
158 PARROT_ASSERT(image->strstart + Parrot_str_byte_length(interp, image) ==
339 PARROT_ASSERT(id - 1 == VTABLE_elements(INTERP, seen));
347 PARROT_ASSERT(id - 1 == VTABLE_elements(INTERP, seen));
/dports/lang/parrot/parrot-8.1.0/src/
H A Dlist.c125 PARROT_ASSERT(list == item->owner); in Parrot_list_remove()
188 PARROT_ASSERT(tmp->owner == list); in Parrot_list_check()
191 PARROT_ASSERT(counter <= list->count); in Parrot_list_check()
H A Dpmc.c209 PARROT_ASSERT(interp->n_vtable_max > base_type); in Parrot_pmc_new()
210 PARROT_ASSERT(interp->vtables[base_type]); in Parrot_pmc_new()
538 PARROT_ASSERT(pmc); in get_new_pmc_header()
1020 PARROT_ASSERT(!PMC_IS_NULL(mro_list)); in Parrot_pmc_create_mro()
1089 PARROT_ASSERT(interp->gc_registry); in Parrot_pmc_gc_register()
1110 PARROT_ASSERT(interp->gc_registry); in Parrot_pmc_gc_unregister()
H A Dhash.c533 PARROT_ASSERT(_bucket->key); in parrot_mark_hash_keys()
538 PARROT_ASSERT(_bucket->key); in parrot_mark_hash_keys()
561 PARROT_ASSERT(_bucket->value); in parrot_mark_hash_values()
566 PARROT_ASSERT(_bucket->value); in parrot_mark_hash_values()
591 PARROT_ASSERT(_bucket->key); in parrot_mark_hash_both()
593 PARROT_ASSERT(_bucket->value); in parrot_mark_hash_both()
598 PARROT_ASSERT(_bucket->key); in parrot_mark_hash_both()
600 PARROT_ASSERT(_bucket->value); in parrot_mark_hash_both()
/dports/lang/parrot/parrot-8.1.0/compilers/imcc/
H A Dsets.c164 PARROT_ASSERT(s1->length == s2->length); in set_equal()
297 PARROT_ASSERT(s1->length == s2->length); in set_union()
328 PARROT_ASSERT(s1->length == s2->length); in set_intersec()
355 PARROT_ASSERT(s1->length == s2->length); in set_intersec_inplace()
H A Dpbc.c491 PARROT_ASSERT(current_bc); in e_pbc_open()
977 PARROT_ASSERT(s1->unit); in fixup_globals()
983 PARROT_ASSERT(ins); in fixup_globals()
986 PARROT_ASSERT(r1); in fixup_globals()
1003 PARROT_ASSERT(op); in fixup_globals()
1069 PARROT_ASSERT(p && p[-1] == ':'); in IMCC_string_from_reg()
1135 PARROT_ASSERT(p && p[-1] == ':'); in IMCC_string_from__STRINGC()
1291 PARROT_ASSERT(r->set == 'K'); in mk_multi_sig()
1343 PARROT_ASSERT(n); in create_lexinfo()
1350 PARROT_ASSERT(k >= 0); in create_lexinfo()
[all …]
/dports/lang/parrot/parrot-8.1.0/src/string/encoding/
H A Dutf16.c484 PARROT_ASSERT((i->charpos + offset) <= str->strlen); in utf16_iter_get()
514 PARROT_ASSERT(i->charpos <= str->strlen); in utf16_iter_skip()
523 PARROT_ASSERT(i->bytepos <= str->bufused); in utf16_iter_skip()
553 PARROT_ASSERT(i->bytepos <= str->bufused); in utf16_iter_get_and_advance()
581 PARROT_ASSERT(i->bytepos <= str->bufused); in utf16_iter_set_and_advance()
H A Dutf8.c529 PARROT_ASSERT(i->charpos + offset < str->strlen); in utf8_iter_get()
560 PARROT_ASSERT(i->charpos <= str->strlen); in utf8_iter_skip()
569 PARROT_ASSERT(i->bytepos <= str->bufused); in utf8_iter_skip()
596 PARROT_ASSERT(i->bytepos <= str->bufused); in utf8_iter_get_and_advance()
/dports/lang/parrot/parrot-8.1.0/src/runcore/
H A Dcores.c539 PARROT_ASSERT(debugger); in runops_trace_core()
549 PARROT_ASSERT(interp->pdb); in runops_trace_core()
551 PARROT_ASSERT(debugger); in runops_trace_core()
690 PARROT_ASSERT(interp->pdb); in runops_debugger_core()
/dports/lang/parrot/parrot-8.1.0/t/tools/dev/headerizer/testlib/
H A Dlist.in126 PARROT_ASSERT(list == item->owner);
188 PARROT_ASSERT(tmp->owner == list);
191 PARROT_ASSERT(counter <= list->count);
/dports/lang/parrot/parrot-8.1.0/src/embed/
H A Dembed_private.h36 PARROT_ASSERT((i)->lo_var_ptr == &_oldtop); \

1234