Commit graph

78 commits

Author SHA1 Message Date
Vern Paxson
d69738849e bug fixes 2024-05-16 13:48:02 -07:00
Vern Paxson
25b71c7d66 bug-squashing 2024-05-08 17:40:06 -07:00
Vern Paxson
265788b50b script optimization support 2024-05-08 16:48:02 -07:00
Vern Paxson
905ed55389 add/delete expressions working w/ interpreter 2024-05-08 12:52:06 -07:00
Vern Paxson
cf456f943f addressed minor issues flagged by Coverity 2024-04-27 19:40:03 -07:00
Vern Paxson
7c8c83efc4 factor script optimization Expr AST nodes out of main AST header 2024-04-25 09:15:13 -07:00
Vern Paxson
01fd30dda9 new internal AST node for expression idioms with corresponding ZAM built-ins 2024-04-25 09:15:13 -07:00
Vern Paxson
16b2946fef streamlining of expressions only used for script optimization 2024-04-25 09:15:13 -07:00
Vern Paxson
52f506b7ae support for conditional expressions transforming into interal has-elements expr 2024-04-25 09:15:12 -07:00
Vern Paxson
d15d4a6e08 unify functionality across EqExpr and RelExpr classes 2024-04-25 09:15:12 -07:00
Vern Paxson
e38053ee3c hooks for ZAM optimization of calls to particular functions 2024-04-25 09:15:12 -07:00
Vern Paxson
9c4da40e39 fix for ZAM optimization of '!' expressions 2024-04-25 09:15:12 -07:00
Vern Paxson
a72b1af2ea fix for ZAM tracking of return values when in-lining 2024-04-25 09:15:12 -07:00
Vern Paxson
54877e9dec fixed bug where appending an empty vector to a vector-of-vector's had no effect 2024-03-08 19:09:43 +01:00
Vern Paxson
e5bb63c662 fixes & enhancements to location information associated w/ AST nodes & ZAM optimization 2024-02-06 11:03:02 +01:00
Vern Paxson
96f5de8df8 ZAM speedup for constructing empty vectors 2024-01-15 15:03:56 +01:00
Vern Paxson
e0736afe4c fix for ZAM location tracking - more extensive changes are pending 2024-01-15 15:03:56 +01:00
Vern Paxson
b489cfc508 greater ZAM optimization of inlined function calls 2023-11-10 09:57:35 +01:00
Vern Paxson
e3b75ac391 some minor ZAM optimization improvements 2023-11-10 09:57:35 +01:00
Vern Paxson
1dc74eaa9c fixes for a number of ZAM optimization bugs 2023-11-10 09:56:59 +01:00
Benjamin Bannier
f5a76c1aed Reformat Zeek in Spicy style
This largely copies over Spicy's `.clang-format` configuration file. The
one place where we deviate is header include order since Zeek depends on
headers being included in a certain order.
2023-10-30 09:40:55 +01:00
Vern Paxson
cbc3d9c739 ZAM fix for inlining bug when a local is assigned to a function parameter 2023-09-27 14:03:45 -07:00
Vern Paxson
434a7e059d introduce internal "mask" expression node to avoid mixed-type overloading of "/" 2023-09-26 14:39:26 -07:00
Vern Paxson
6096e03d90 fixed ZAM reduction bug in += / -= operators 2023-09-26 12:59:54 -07:00
Vern Paxson
e78570ad89 ZAM fixes for compatibility with GH-3249 changes 2023-09-01 12:20:35 -07:00
Vern Paxson
3925ff4592 addressed performance and correctness issues flagged by Coverity 2023-08-15 16:07:49 -07:00
Tim Wojtulewicz
430d344ec2 Fix memory leak in script_opt's Expr code 2023-07-31 16:09:04 -07:00
Vern Paxson
91d70e6dd4 support for discarding ASTs once compiled via ZAM script optimization 2023-07-26 13:32:00 -07:00
Vern Paxson
1ff490b41c more extensive ZAM inlining & compilation of lambdas 2023-07-17 16:31:30 -07:00
Vern Paxson
51eec61272 fix for ZAM inlining failing to inline function call arguments 2023-07-17 16:31:30 -07:00
Vern Paxson
1d5bc841e0 ZAM optimization for ?$ operator applied to non-optional fields 2023-07-17 16:31:30 -07:00
Vern Paxson
1dd2270272 WhenStmt/WhenInfo restructuring in support of ZAM "when" statements 2023-06-30 09:36:14 +02:00
Vern Paxson
46983cfb2f refinements to LambdaExpr's to provide flexibility, support for ZVal captures 2023-06-30 09:36:14 +02:00
Vern Paxson
528aa6766a more debugging information when dumping script optimization data structures 2023-06-30 09:36:14 +02:00
Vern Paxson
4a5a7f975d bug fixes for script optimization intermediate forms 2023-06-30 09:36:14 +02:00
Arne Welzel
7a043e5e8f all: Fix typos identified by typos pre-commit hook 2023-06-13 17:57:32 +02:00
Vern Paxson
0c434ca4f8 changed function_ingredients struct to FunctionIngredients class with accessors 2023-04-02 11:34:16 -07:00
Vern Paxson
1b6df1a04c fix for ZAM compilation of "in" expressions 2023-02-09 11:21:40 -08:00
Vern Paxson
ee28609e74 script optimization fix for new-style table constructors 2022-09-16 09:37:17 -07:00
AmazingPP
f2bfa61fc6 Add bitshift operators 2022-07-21 11:12:30 +08:00
Tim Wojtulewicz
765a8535e0 Remove deprecated DESC_PORTABLE ODesc mode and ODesc::IsPortable() 2022-06-30 19:11:59 +00:00
Tim Wojtulewicz
73273fc87b Merge remote-tracking branch 'origin/topic/vern/ZAM-inlining'
* origin/topic/vern/ZAM-inlining:
  speed up ZAM compilation by capping function size when inlining
2022-05-19 11:45:50 -07:00
Vern Paxson
7d00ce0082 speed up ZAM compilation by capping function size when inlining 2022-05-14 14:52:31 -07:00
Vern Paxson
9ada7ac4e7 tracking of when statements/expressions occur in a "when" context 2022-05-12 13:45:45 -07:00
Vern Paxson
7a9c6c476e ZAM maintenance for recent changes and some newly exercised corner cases 2022-05-01 14:33:58 -07:00
Vern Paxson
18cfee51c2 updates for script optimization 2022-03-23 15:36:35 -07:00
Vern Paxson
94e71b738a minor enhancements for ZAM inlining 2022-02-03 08:53:10 -08:00
Vern Paxson
fa142438fe logic (other than in profiling) for assignments that yield separate values 2022-01-07 14:18:42 -08:00
Vern Paxson
06ffd97749 fixes for double-delete and reducing '?' operator with constant alternatives 2021-12-14 15:36:03 -08:00
Tim Wojtulewicz
9af6b2f48d clang-format: Set penalty for breaking after assignment operator 2021-09-27 10:49:48 -07:00