Commit Graph

359 Commits

Author SHA1 Message Date
Stephen Chung
55922b5c20 Hard code constant checking. 2022-12-03 16:20:13 +08:00
Stephen Chung
ffc8a7f85c Fix builds. 2022-12-03 12:08:35 +08:00
Stephen Chung
4e33bcfa0a Use constant booleans for trait. 2022-12-03 11:23:34 +08:00
Stephen Chung
e53be6e8ed Avoid allocations in metadata. 2022-12-02 16:44:45 +08:00
Stephen Chung
ed423740c9 Use FnArgsVec for params. 2022-12-01 17:45:33 +08:00
Stephen Chung
0c4935febb Merge multiple doc-comment lines into one. 2022-12-01 14:35:45 +08:00
Stephen Chung
29a397b216 Refine #[must_use] 2022-11-28 16:36:40 +08:00
Stephen Chung
e8e1706d98 Use as_deref(). 2022-11-25 23:03:20 +08:00
Stephen Chung
d645d8271c More code refactor. 2022-11-25 20:42:16 +08:00
Stephen Chung
6db9870fb1 Fix builds. 2022-11-25 12:27:05 +08:00
Stephen Chung
ef920e2b8d Factor out metadata in FuncInfo. 2022-11-25 12:14:37 +08:00
Stephen Chung
6600862c22 Satisfy clippy. 2022-11-25 09:46:13 +08:00
Stephen Chung
cefe3f1715 Reduce Module size. 2022-11-24 22:25:19 +08:00
Stephen Chung
02ef119603 Fix builds. 2022-11-23 17:23:54 +08:00
Stephen Chung
4e27039521 Use bitflags. 2022-11-23 11:36:30 +08:00
Stephen Chung
0984f2d4df Fix docs. 2022-11-11 16:46:28 +08:00
Stephen Chung
fca71b5ed2 Reduce call to Module::is_empty. 2022-11-10 23:57:46 +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
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
54aa89515e Fix no_module build. 2022-11-04 22:00:21 +08:00
Stephen Chung
470af6af71 Using hashing for full hash instead of xor. 2022-11-04 21:59:49 +08:00
Stephen Chung
35b02ce9b7 Make parameters order uniform. 2022-11-04 21:47:09 +08:00
Stephen Chung
91415b9750 Use ImmutableString in more places. 2022-10-29 14:59:20 +08:00
Stephen Chung
4100e6da64 Use ImmutableString for source. 2022-10-29 14:12:18 +08:00
Stephen Chung
38e47c909d Streamline code. 2022-10-14 14:04:54 +08:00
Stephen Chung
d6b0f99781 Refactor. 2022-10-10 16:46:35 +08:00
Stephen Chung
891214470b Make limit getters available without unchecked. 2022-10-04 15:33:51 +08:00
Stephen Chung
6c777e68d3 Refine inlining. 2022-09-28 12:06:22 +08:00
Stephen Chung
25476d1cea Mark debug functions cold. 2022-09-27 08:52:39 +08:00
Stephen Chung
b56a9c22f3 Refactor. 2022-09-25 12:24:03 +08:00
Stephen Chung
6eef11123a Do not search for global functions if scripted. 2022-09-21 18:30:12 +08:00
Stephen Chung
5d275b5307 Simplify to calc_fn_hash. 2022-09-21 11:46:23 +08:00
Stephen Chung
c727b529f5 Minor refactors. 2022-09-15 08:55:07 +08:00
Stephen Chung
72244b74cd Remove redirection in functions hash map. 2022-09-14 15:11:37 +08:00
Stephen Chung
257991ca31 Fix no_function. 2022-09-13 21:12:44 +08:00
Stephen Chung
4be8062924 Optimize Module. 2022-09-13 18:23:34 +08:00
Stephen Chung
40a12b2b7d Remove key type from StraightHashMap. 2022-09-12 23:08:38 +08:00
Stephen Chung
32825d2ca8 Fix feature build. 2022-09-10 13:49:21 +08:00
Stephen Chung
1bfedf516d Use a bloom filter. 2022-09-08 17:49:37 +08:00
Stephen Chung
1476b14831 Fix metadata build. 2022-09-08 10:58:43 +08:00
Stephen Chung
2f7d6298e0 Move format_type into api. 2022-09-08 10:52:58 +08:00
Stephen Chung
a6ce459b32 Merge branch 'main' of https://github.com/rhaiscript/rhai 2022-09-06 17:41:47 +08:00
quake
8ee501e4d9 pref: remove Rc/Arc::from_box 2022-09-06 14:51:32 +09:00
quake
563f18a04b pref: use ExactSizeIterator 2022-09-06 14:16:15 +09:00
Stephen Chung
158b4ce7bc Change TypeId to use BTreeMap. 2022-09-05 21:17:07 +08:00
quake
239438754c perf: change BTreeMap to StraightHashMap 2022-09-05 13:13:06 +09:00
Stephen Chung
80772df4f4 Shut up clippy. 2022-08-29 14:27:05 +08:00
Stephen Chung
204284f4f7 Add test to recreate NativeCallContext. 2022-08-26 16:20:23 +08:00