Commit Graph

3987 Commits

Author SHA1 Message Date
Stephen Chung
dd0d1dd7ca Fix test. 2023-04-11 10:35:24 +08:00
Stephen Chung
407d376a61 Encode pure in CallableFunction variant. 2023-04-11 10:26:23 +08:00
Stephen Chung
8662ffec62 Use unwrap_err. 2023-04-10 23:23:59 +08:00
Stephen Chung
20c535ecd3 Add full optimization test. 2023-04-10 22:29:44 +08:00
Stephen Chung
26ad454cb1 Streamline data types. 2023-04-10 18:47:53 +08:00
Stephen Chung
1f8592242f
Merge pull request #712 from schungx/master
Fix bug in optimize_ast.
2023-04-10 13:52:26 +08:00
Stephen Chung
ac52d3cd87 Remove MacOS for no-std for the time being. 2023-04-10 13:18:45 +08:00
Stephen Chung
b5c81c9baa Fix test. 2023-04-10 13:17:48 +08:00
Stephen Chung
465fdeec21 Optimize curry with constant arguments. 2023-04-10 13:11:33 +08:00
Stephen Chung
120ff91074 Fix bug in optimize_ast skipping Stmt::FnCall. 2023-04-10 13:11:24 +08:00
Stephen Chung
b2dbd322db
Merge pull request #711 from schungx/master
Fix optimizer bug for closures.
2023-04-09 17:16:36 +08:00
Stephen Chung
a82bb7b2ef Fix build 2023-04-09 16:38:19 +08:00
Stephen Chung
8369a9bf63 Fix optimizer bug for closures. 2023-04-09 16:31:06 +08:00
Stephen Chung
6ee4a1efa6 Merge branch 'main' of https://github.com/rhaiscript/rhai 2023-04-09 16:30:15 +08:00
Stephen Chung
98f227d640 Fix doc test. 2023-04-07 16:14:26 +08:00
Stephen Chung
9de41e7559 Further simplify matches. 2023-04-05 23:40:27 +08:00
Stephen Chung
df05f43460 Simplify match. 2023-04-05 23:15:55 +08:00
Stephen Chung
5eaa4c5240 Do not cache long strings and avoid caching one-hit wonders. 2023-03-31 10:41:55 +08:00
Stephen Chung
b102982d65 Add flags into gperf source files. 2023-03-31 09:00:52 +08:00
Stephen Chung
637728de6a Fix builds. 2023-03-30 17:41:21 +08:00
Stephen Chung
34c7dabe44 Add is_def_fn with 3 parameters. 2023-03-30 16:43:15 +08:00
Stephen Chung
2a98d38a7e is_shared is made reserved. 2023-03-30 16:26:58 +08:00
Stephen Chung
534b7bbab3 Rename auto_restore! to defer! 2023-03-25 21:13:34 +08:00
Stephen Chung
ce355aa553 More slots for boxed arrays. 2023-03-25 17:24:05 +08:00
Stephen Chung
892ed82f2e Add script example. 2023-03-23 17:11:42 +08:00
Stephen Chung
2e724b804e Remove indirection. 2023-03-23 13:37:10 +08:00
Stephen Chung
3d06ddc6e2 Fix for loop operations. 2023-03-23 09:38:54 +08:00
Stephen Chung
3c7cd8e278 Use debug_assert. 2023-03-23 09:12:48 +08:00
Stephen Chung
2c94f956e5 Fix error message. 2023-03-22 21:38:55 +08:00
Stephen Chung
b78cb6131b
Merge pull request #710 from schungx/master
Add typed method definition.
2023-03-22 16:36:39 +08:00
Stephen Chung
9d4972f6d3 Fix builds. 2023-03-22 16:16:33 +08:00
Stephen Chung
e60d0fc0bc Add typed methods definition. 2023-03-22 16:05:25 +08:00
Stephen Chung
3d4a278f2e Remove ASTFlags::EMPTY. 2023-03-22 10:19:30 +08:00
Stephen Chung
7caf80e27c Remove BP optimization. 2023-03-18 09:50:50 +08:00
Stephen Chung
29d6cdcc39 Remove branch prediction hack. 2023-03-18 09:27:47 +08:00
Stephen Chung
c22e3a4d99 Bump version. 2023-03-17 07:12:46 +08:00
Stephen Chung
7cda806b53 Move tools out of src. 2023-03-17 07:09:56 +08:00
Stephen Chung
4d844019ba
Merge pull request #709 from schungx/master
Release 1.13.0
2023-03-17 07:02:44 +08:00
Stephen Chung
95e7ec46ce FIx builds. 2023-03-17 06:46:43 +08:00
Stephen Chung
76ab1e290d Update docs. 2023-03-17 06:41:44 +08:00
Stephen Chung
091e16124c Add isAnonymous to JSON metadata. 2023-03-17 06:28:00 +08:00
Stephen Chung
c62162b3c5 Use {} style for auto_restore. 2023-03-17 06:15:59 +08:00
Stephen Chung
07d5886100
Merge pull request #708 from schungx/master
Speed improvement attempts.
2023-03-16 19:20:15 +08:00
Stephen Chung
a3324ceb3d Reduce lifted out variants. 2023-03-16 19:00:59 +08:00
Stephen Chung
c7d40945ee Attempt to prevent building lookup tables on dispatch. 2023-03-16 18:03:54 +08:00
Stephen Chung
9ce581f745 Make track_progress inline. 2023-03-16 13:30:32 +08:00
Stephen Chung
55f022174b Remove matching by ASCII because compiler should already optimize. 2023-03-16 13:05:29 +08:00
Stephen Chung
952c77d9bb Fix feature. 2023-03-15 18:31:53 +08:00
Stephen Chung
41636eac55 Fine tune table-driven tokenizing. 2023-03-15 17:22:11 +08:00
Stephen Chung
2aa7b99d1e Revise table-driven parsing. 2023-03-15 08:54:34 +08:00