Skip to content

Commit

Permalink
Remove VISITED_STAT and SET_VISITED_STAT
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisJefferson committed Dec 12, 2022
1 parent 3fe5bbf commit bb4d9ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
6 changes: 0 additions & 6 deletions src/code.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,6 @@ static StatHeader * STAT_HEADER(Stat stat)
return (StatHeader *)ADDR_STAT(stat) - 1;
}

void SET_VISITED_STAT(Stat stat)
{
STAT_HEADER(stat)->visited = 1;
}


#define SET_FUNC_CALL(call,x) WRITE_EXPR(call, 0, x)
#define SET_ARGI_CALL(call,i,x) WRITE_EXPR(call, i, x)
#define SET_ARGI_INFO(info,i,x) WRITE_STAT(info, (i) - 1, x)
Expand Down
25 changes: 0 additions & 25 deletions src/code.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
**
*/
typedef struct {
unsigned int visited : 1;
unsigned int line : 31;
unsigned int size : 24;
unsigned int type : 8;
Expand Down Expand Up @@ -342,30 +341,6 @@ EXPORT_INLINE Int LINE_STAT(Stat stat)
return CONST_STAT_HEADER(stat)->line;
}


/****************************************************************************
**
*F VISITED_STAT(<stat>) . . . . . . . . . . . if statement has even been run
**
** 'VISITED_STAT' returns true if the statement has ever been executed
** while profiling is turned on.
*/
EXPORT_INLINE Int VISITED_STAT(Stat stat)
{
return CONST_STAT_HEADER(stat)->visited;
}


/****************************************************************************
**
*F SET_VISITED_STAT(<stat>) . . . . . . . . . . mark statement as having run
**
** 'SET_VISITED_STAT' marks the statement as having been executed while
** profiling was turned on.
*/
void SET_VISITED_STAT(Stat stat);


/****************************************************************************
**
*F IS_REF_LVAR(<expr>) . . . test if an expression is a reference to a local
Expand Down

0 comments on commit bb4d9ab

Please sign in to comment.