Skip to content

Commit

Permalink
add ASSERT_ARGS
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.parrot.org/parrot/trunk@43981 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information
mikehh committed Feb 16, 2010
1 parent 08f4d91 commit 4dd8c07
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pirsymbol.c
Expand Up @@ -126,6 +126,8 @@ This is the vanilla register allocator.
*/
static int
next_register(NOTNULL(lexer_state * const lexer), pir_type type) {
ASSERT_ARGS(next_register)

CURRENT_SUB(lexer)->info.regs_used[type]++; /* count number of registers used */
/* fprintf(stderr, "vanilla reg: %d of type %d\n", lexer->curregister[type], type); */
return lexer->curregister[type]++;
Expand Down Expand Up @@ -485,6 +487,8 @@ The function returns the allocated PASM register.
*/
static int
use_register(NOTNULL(lexer_state * const lexer), pir_type type, int regno, int pasmregno) {
ASSERT_ARGS(use_register)

pir_reg *reg;

/* create a new node representing this PIR register */
Expand Down Expand Up @@ -721,6 +725,8 @@ static local_label *
new_local_label(NOTNULL(lexer_state * const lexer), NOTNULL(char const * const name),
unsigned offset)
{
ASSERT_ARGS(new_local_label)

local_label *l = pir_mem_allocate_zeroed_typed(lexer, local_label);
l->name = name;
l->offset = offset;
Expand Down

0 comments on commit 4dd8c07

Please sign in to comment.