Commit Graph

81 Commits

Author SHA1 Message Date
Stephen Chung
4fe80a2026 Use &Token for op. 2023-02-10 23:42:13 +08:00
Stephen Chung
00c434eb71 Use Option<Token> instead of Token::NONE. 2022-12-27 22:51:38 +08:00
Stephen Chung
80ccd75514 Satisfy clippy. 2022-12-22 17:34:58 +08:00
Stephen Chung
2c55c248fb Fix builds. 2022-12-11 17:18:14 +08:00
Stephen Chung
1f815f995f Speed up FnPtr::call when there is a linked scripted function. 2022-12-11 16:55:30 +08:00
Stephen Chung
30ff208104 Improve reify! syntax. 2022-12-09 16:41:01 +08:00
Stephen Chung
3d5908480a Use fluent style. 2022-12-09 10:04:44 +08:00
Stephen Chung
de0707f64f Use macro auto_restore!. 2022-12-04 14:06:54 +08:00
Stephen Chung
55922b5c20 Hard code constant checking. 2022-12-03 16:20:13 +08:00
Stephen Chung
0c85f0c796 Code cleanup and refactor. 2022-11-28 23:24:22 +08:00
Stephen Chung
d645d8271c More code refactor. 2022-11-25 20:42:16 +08:00
Stephen Chung
6600862c22 Satisfy clippy. 2022-11-25 09:46:13 +08:00
Stephen Chung
31292e683d Satisfy Clippy. 2022-11-23 13:24:14 +08:00
Stephen Chung
d151c87687 Change call_fn_raw to call_fn_with_options. 2022-11-21 23:42:29 +08:00
Stephen Chung
4304da7a47 Fix builds. 2022-11-19 18:57:15 +08:00
Stephen Chung
62d707ff84 Simplify chaining code. 2022-11-19 18:41:51 +08:00
Stephen Chung
9e5e18af61 Export locked_read and locked_write under internals. 2022-11-15 11:22:00 +08:00
Stephen Chung
0984f2d4df Fix docs. 2022-11-11 16:46:28 +08:00
Stephen Chung
d3fc711f33 Add missing doc comment. 2022-11-11 15:01:38 +08:00
Stephen Chung
013ee223ee Cleanup. 2022-11-10 14:25:48 +08:00
Stephen Chung
3a028f2642 Move lib into global. 2022-11-10 11:49:10 +08:00
Stephen Chung
ce046422f0 Add Dynamic::is_XXX API. 2022-11-09 12:44:57 +08:00
Stephen Chung
e93923b3b6 Move level into GlobalRuntimeState. 2022-11-08 21:28:20 +08:00
Stephen Chung
6053aa1641 Clean up types. 2022-11-08 15:01:40 +08:00
Stephen Chung
b4529b6a64 Add storage API for NativeCallContext. 2022-11-07 16:19:10 +08:00
Stephen Chung
35b02ce9b7 Make parameters order uniform. 2022-11-04 21:47:09 +08:00
Stephen Chung
0756994038 Fix no_function. 2022-11-04 21:42:57 +08:00
Stephen Chung
d80555e204 Fix no_function build. 2022-11-04 21:28:04 +08:00
Stephen Chung
2a5ef0bee1 Refactor is_anonymous. 2022-11-03 12:00:56 +08:00
Stephen Chung
32493524ed Code cleanup. 2022-10-30 22:16:09 +08:00
Stephen Chung
22ee12531c Code cleanup. 2022-10-30 18:43:18 +08:00
Stephen Chung
c9184db4d2 Refine native/script code splits. 2022-10-30 15:45:25 +08:00
Stephen Chung
4708fde8bd Compact data structures. 2022-10-27 15:52:24 +08:00
Stephen Chung
c24794187f Reduce unnecessary generics. 2022-10-20 15:31:57 +08:00
Stephen Chung
ac05f0a0a8 Check if function calls cannot be scripted. 2022-10-14 18:31:40 +08:00
Stephen Chung
ea63c66cf0 Add call_native_fn for context. 2022-10-14 16:57:14 +08:00
Stephen Chung
3d0626c76f Streamline global state. 2022-10-14 12:23:04 +08:00
Stephen Chung
5d275b5307 Simplify to calc_fn_hash. 2022-09-21 11:46:23 +08:00
Stephen Chung
204284f4f7 Add test to recreate NativeCallContext. 2022-08-26 16:20:23 +08:00
Stephen Chung
799dd9d9d1 Add fallible type iterators. 2022-08-22 13:10:32 +08:00
Stephen Chung
9813f657bb Use ImmutableString for AST. 2022-08-13 18:40:14 +08:00
Stephen Chung
2f948a784c Clean up more clippy. 2022-07-27 18:04:59 +08:00
Stephen Chung
39dee556c4 Clean up clippy. 2022-07-27 16:04:24 +08:00
Stephen Chung
b6528bd51d Reduce usage of as_ref and as_mut. 2022-07-05 16:26:38 +08:00
Stephen Chung
c69f98c2c4 Add custom state. 2022-05-02 00:03:45 +08:00
Stephen Chung
2889ca0988 Add Start/End to DebuggerEvent. 2022-04-26 16:36:24 +08:00
Stephen Chung
855cb76246 Rename EvalState to Caches. 2022-04-16 16:36:53 +08:00
Stephen Chung
dc8c4ed8f4 Improve string functions. 2022-03-17 17:00:48 +08:00
Stephen Chung
672cda63ab Simplify formatting. 2022-03-14 08:50:17 +08:00
Stephen Chung
0e9a16e437 Add checks for is_empty. 2022-03-03 13:02:57 +08:00