[svn:parrot] r43981 - trunk/compilers/pirc/src
mikehh at svn.parrot.org
mikehh at svn.parrot.org
Tue Feb 16 01:25:13 UTC 2010
Author: mikehh
Date: Tue Feb 16 01:25:10 2010
New Revision: 43981
URL: https://trac.parrot.org/parrot/changeset/43981
Log:
add ASSERT_ARGS
Modified:
trunk/compilers/pirc/src/pirsymbol.c
Modified: trunk/compilers/pirc/src/pirsymbol.c
==============================================================================
--- trunk/compilers/pirc/src/pirsymbol.c Tue Feb 16 01:16:30 2010 (r43980)
+++ trunk/compilers/pirc/src/pirsymbol.c Tue Feb 16 01:25:10 2010 (r43981)
@@ -126,6 +126,8 @@
*/
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 @@
*/
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 @@
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;
More information about the parrot-commits
mailing list