mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
script optimization tracking of functions called by event engine or indirectly
This commit is contained in:
parent
e9b990254a
commit
dd91790f1e
6 changed files with 640 additions and 490 deletions
|
@ -120,6 +120,7 @@ public:
|
|||
const std::unordered_set<const SwitchStmt*>& TypeSwitches() const { return type_switches; }
|
||||
|
||||
bool DoesIndirectCalls() const { return does_indirect_calls; }
|
||||
const IDSet& IndirectFuncs() const { return indirect_funcs; }
|
||||
|
||||
int NumParams() const { return num_params; }
|
||||
int NumLambdas() const { return lambdas.size(); }
|
||||
|
@ -271,6 +272,11 @@ protected:
|
|||
// than simply a function's (global) name.
|
||||
bool does_indirect_calls = false;
|
||||
|
||||
// Functions (not hooks or event handlers) that are referred to in
|
||||
// a context other than being called. These might be used elsewhere
|
||||
// for indirect calls.
|
||||
IDSet indirect_funcs;
|
||||
|
||||
// Additional values present in the body that should be factored
|
||||
// into its hash.
|
||||
std::vector<p_hash_type> addl_hashes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue