mirror of
https://github.com/zeek/zeek.git
synced 2025-10-17 14:08:20 +00:00
speed up ZAM compilation by capping function size when inlining
This commit is contained in:
parent
0c2f04548a
commit
7d00ce0082
13 changed files with 79 additions and 14 deletions
|
@ -59,6 +59,8 @@ const char* stmt_name(StmtTag t)
|
|||
return stmt_names[int(t)];
|
||||
}
|
||||
|
||||
int Stmt::num_stmts = 0;
|
||||
|
||||
Stmt::Stmt(StmtTag arg_tag)
|
||||
{
|
||||
tag = arg_tag;
|
||||
|
@ -69,6 +71,8 @@ Stmt::Stmt(StmtTag arg_tag)
|
|||
opt_info = new StmtOptInfo();
|
||||
|
||||
SetLocationInfo(&start_location, &end_location);
|
||||
|
||||
++num_stmts;
|
||||
}
|
||||
|
||||
Stmt::~Stmt()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue