mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +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
|
@ -406,6 +406,12 @@ public:
|
|||
// this statement.
|
||||
ExprOptInfo* GetOptInfo() const { return opt_info; }
|
||||
|
||||
// Returns the number of expressions created since the last reset.
|
||||
static int GetNumExprs() { return num_exprs; }
|
||||
|
||||
// Clears the number of expressions created.
|
||||
static void ResetNumExprs() { num_exprs = 0; }
|
||||
|
||||
~Expr() override;
|
||||
|
||||
protected:
|
||||
|
@ -441,6 +447,9 @@ protected:
|
|||
// Information associated with the Expr for purposes of
|
||||
// script optimization.
|
||||
ExprOptInfo* opt_info;
|
||||
|
||||
// Number of expressions created thus far.
|
||||
static int num_exprs;
|
||||
};
|
||||
|
||||
class NameExpr final : public Expr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue