mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Merge remote-tracking branch 'origin/topic/vern/ZAM-inlining'
* origin/topic/vern/ZAM-inlining: speed up ZAM compilation by capping function size when inlining
This commit is contained in:
commit
73273fc87b
15 changed files with 85 additions and 15 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