Commit graph

11634 commits

Author SHA1 Message Date
Vern Paxson
a82a0e22d8 fixed AST transformation logic for boolean expressions 2021-02-27 13:48:06 -08:00
Vern Paxson
9496379b95 don't know how I overlooked these minor test suite updates 2021-02-27 13:47:49 -08:00
Vern Paxson
0f10c46f42 overlooked another way in which vector holes can be created 2021-02-27 13:34:53 -08:00
Vern Paxson
f43be3a206 initialize vector holes to the correct corresponding type 2021-02-27 12:06:02 -08:00
Vern Paxson
9953961569 "opt" btest baseline updates due to AST optimizations changing printed code 2021-02-27 11:43:17 -08:00
Vern Paxson
4847c357ca "opt" baseline exceptions due to incompatibility with optimize-AST and -u 2021-02-27 11:42:24 -08:00
Vern Paxson
8f21432f76 new "opt" btest alternative 2021-02-27 11:41:23 -08:00
Vern Paxson
42d59203a1 update to "xform" test suite baseline due to recent line number changes 2021-02-27 11:40:33 -08:00
Vern Paxson
faf1b65ec4 logic for driving AST optimization when requested 2021-02-27 11:39:44 -08:00
Vern Paxson
77f04935a8 methods implementing AST optimization (aliasing, constant propagation, CSE) 2021-02-27 11:36:15 -08:00
Vern Paxson
34ccd3e417 helper class checking if common-subexpression elimination opportunity is valid 2021-02-27 11:35:01 -08:00
Vern Paxson
ec97c9b042 helper function for comparing collections of definition points 2021-02-27 11:32:06 -08:00
Vern Paxson
b581c6435e track more information about temporary variables 2021-02-27 11:08:34 -08:00
Vern Paxson
64ef7f0eb2 simplify and tidy up some interfaces 2021-02-27 11:07:39 -08:00
Vern Paxson
d38cc04e83 enable setting "-O optimize-AST" option 2021-02-27 10:59:27 -08:00
Vern Paxson
56ab0ddcf1 fix for reducing operations on boolean vectors 2021-02-27 10:57:25 -08:00
Vern Paxson
c7234713b1 control whether checking for type-equivalence generates warnings 2021-02-27 10:55:19 -08:00
Vern Paxson
588fcce7df explicitly populate holes created in vectors 2021-02-27 10:54:11 -08:00
Vern Paxson
45b9371e38 remove unneeded virtual method (same as inherited method) 2021-02-27 10:49:57 -08:00
Vern Paxson
2b0a1bd2e9 accessors for additional Expr subclasses 2021-02-27 10:48:16 -08:00
Vern Paxson
84a56e353e fix other instances of GetField().get() assuming long-lived ValPtr's 2021-02-27 10:29:32 -08:00
Vern Paxson
963d50bd48 fix for now-incorrect assumption that GetField always returns an existing ValPtr 2021-02-27 08:34:38 -08:00
Vern Paxson
a912f6dd9a tidying some interfaces 2021-02-27 08:32:04 -08:00
Vern Paxson
d9b67edf52 convenience functions to check for aggregate types 2021-02-27 08:30:24 -08:00
Vern Paxson
743f5cfef6 fix includes to have proper prefixes 2021-02-27 08:28:15 -08:00
Vern Paxson
f92946509c ... and porting over memory management for assignment to vector elements 2021-02-27 06:37:50 -08:00
Vern Paxson
1447736b35 ... porting over memory management for assignment to record fields 2021-02-27 06:11:01 -08:00
Jon Siwek
7b4b8bd96d Update submodule(s) [nomail] 2021-02-26 17:58:24 -08:00
Vern Paxson
9468b81a7b dagnabbit, forgot to port over destructor cleanup from ZAM_vector/ZAM_record 2021-02-26 15:51:09 -08:00
Jon Siwek
c8daec20c3 Change update-zeekygen-docs.sh to set release branch in Sphinx config
Allows release branches to generate correct links to GitHub source code.
2021-02-26 15:10:53 -08:00
Jon Siwek
6ac499882c Teach Zeekygen to produce source-code-range information
Related to https://github.com/zeek/zeek-docs/issues/56
2021-02-26 14:55:59 -08:00
Jon Siwek
c95a364ff7 Add normalize_script_path() zeek::zeekygen::detail namespace 2021-02-26 14:53:53 -08:00
Jon Siwek
9ced370b48 Add starts_with()/ends_with() to zeek::util namespace 2021-02-26 14:43:55 -08:00
Vern Paxson
5084584020 test suite update for Smith-Waterman now using 0-based vectors 2021-02-25 17:13:56 -08:00
Vern Paxson
98ada4e419 test suite updates for expanded sort() BiF semantics (bools, doubles) 2021-02-25 17:13:50 -08:00
Vern Paxson
ab0b773522 test suite updates reflecting that vectors no longer support arbitrary "holes" 2021-02-25 17:00:36 -08:00
Vern Paxson
62bab66114 migration to using new differentiated methods for setting record fields 2021-02-25 16:59:26 -08:00
Vern Paxson
4213245633 RecordVal methods for differentiated setting of record fields 2021-02-25 15:42:38 -08:00
Vern Paxson
53fea053de fix for fencepost error when looping over vectors 2021-02-25 15:29:14 -08:00
Vern Paxson
b6f4f897c6 migrate to using RecordVal's new Remove() method 2021-02-25 15:28:37 -08:00
Vern Paxson
c757db2714 new RecordVal Remove() method to clear a field 2021-02-25 15:04:46 -08:00
Vern Paxson
931cec4e06 use differentiated record field accessors 2021-02-25 14:47:44 -08:00
Vern Paxson
e363bab55f base support for differentiated record field accessors 2021-02-25 13:51:06 -08:00
Vern Paxson
0118b6ee38 migrate to differentiated vector "At" accessors to support future efficiency 2021-02-25 13:28:23 -08:00
Vern Paxson
bc4a6c0d07 fix for subtle bug due to GetField now potentially returning a new ValPtr 2021-02-25 12:45:34 -08:00
Vern Paxson
3f6f8e0709 use HasField() rather than GetField() where appropriate 2021-02-25 12:38:46 -08:00
Tim Wojtulewicz
b8ec65ccf7 Merge remote-tracking branch 'origin/topic/jsiwek/coverity-lint'
* origin/topic/jsiwek/coverity-lint:
  Avoid superfluous string copies when adding to zeek::detail::sig_files
  Initialize an RD_Decorate member via std::move
  Fix invalid iterator comparison in UseDefs::FindSuccUsage()
2021-02-25 08:46:14 -07:00
Vern Paxson
13e7ba3a00 moving sort()/order() functionality into VectorVal 2021-02-24 18:09:40 -08:00
Jon Siwek
0d1a60547e Update submodule(s) [nomail] [skip ci] 2021-02-24 17:53:59 -08:00
Vern Paxson
0299ea0894 convert VectorVal's to use vector<ZVal> as internal representation 2021-02-24 17:38:31 -08:00