Permalink
Browse files

add ASSERT_ARGS

git-svn-id: https://svn.parrot.org/parrot/trunk@43981 d31e2699-5ff4-0310-a27c-f18f2fbe73fe
  • Loading branch information...
1 parent 08f4d91 commit 4dd8c076093907e9adc6f8030577e21a6e059e12 @mikehh mikehh committed Feb 16, 2010
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/pirsymbol.c
View
@@ -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]++;
@@ -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 */
@@ -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;

0 comments on commit 4dd8c07

Please sign in to comment.