You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Amount of bytecode (x 1000) the script is allowed to run (WARNING: this disables JIT compilation)",
42
-
) orelsenull,
43
-
.recursive_call_limit=b.option(
44
-
u32,
45
-
"recursive_call_limit",
46
-
"Maximum depth for recursive calls",
47
-
),
48
-
.stack_size=b.option(
49
-
usize,
50
-
"stack_size",
51
-
"Stack maximum size",
52
-
) orelse100_000,
53
-
.mimalloc=!is_wasmandb.option(
54
-
bool,
55
-
"mimalloc",
56
-
"Use mimalloc allocator",
57
-
) orelsetrue,
58
-
.debug= .{
59
-
.debug=b.option(
60
-
bool,
61
-
"debug",
62
-
"Show debug information (AST, generated bytecode and more)",
63
-
) orelsefalse,
64
-
.stack=b.option(
65
-
bool,
66
-
"debug_stack",
67
-
"Dump stack after each bytecode",
68
-
) orelsefalse,
69
-
.current_instruction=b.option(
70
-
bool,
71
-
"debug_current_instruction",
72
-
"Dump stack after each bytecode",
73
-
) orelsefalse,
74
-
.perf=!is_wasmandb.option(
75
-
bool,
76
-
"show_perf",
77
-
"Show performance information",
78
-
) orelsefalse,
79
-
.stop_on_report=b.option(
80
-
bool,
81
-
"stop_on_report",
82
-
"Stop compilation whenever an error is encountered",
83
-
) orelsefalse,
84
-
.placeholders=b.option(
85
-
bool,
86
-
"debug_placeholders",
87
-
"Debug placeholders resolution",
88
-
) orelsefalse,
89
-
.type_registry=b.option(
90
-
bool,
91
-
"debug_type_registry",
92
-
"Debug type_registry",
93
-
) orelsefalse,
94
-
},
95
-
.gc= .{
96
-
.debug=b.option(
97
-
bool,
98
-
"gc_debug",
99
-
"Show debug information for the garbage collector",
100
-
) orelsefalse,
101
-
.debug_light=b.option(
102
-
bool,
103
-
"gc_debug_light",
104
-
"Show lighter debug information for the garbage collector",
105
-
) orelsefalse,
106
-
.debug_access=b.option(
107
-
bool,
108
-
"gc_debug_access",
109
-
"Track objects access",
110
-
) orelsefalse,
111
-
.on=b.option(
112
-
bool,
113
-
"gc",
114
-
"Turn on garbage collector",
115
-
) orelsetrue,
116
-
.initial_gc=b.option(
117
-
usize,
118
-
"initial_gc",
119
-
"In Kb, threshold at which the first garbage collector pass will occur",
120
-
) orelse40_960, // 40Mb
121
-
.next_gc_ratio=b.option(
122
-
usize,
123
-
"next_gc_ratio",
124
-
"Ratio applied to get the next GC threshold",
125
-
) orelse2,
126
-
.next_full_gc_ratio=b.option(
127
-
usize,
128
-
"next_full_gc_ratio",
129
-
"Ratio applied to get the next full GC threshold",
130
-
) orelse4,
131
-
.memory_limit=b.option(
132
-
usize,
133
-
"memory_limit",
134
-
"Memory limit in bytes",
135
-
) orelsenull,
136
-
},
137
-
.jit= .{
138
-
.debug=b.option(
139
-
bool,
140
-
"jit_debug",
141
-
"Show debug information for the JIT engine",
142
-
) orelsefalse,
143
-
.always_on=!is_wasmandb.option(
144
-
bool,
145
-
"jit_always_on",
146
-
"JIT engine will compile any function encountered",
147
-
) orelsefalse,
148
-
.hotspot_always_on=!is_wasmandb.option(
149
-
bool,
150
-
"jit_hotspot_always_on",
151
-
"JIT engine will compile any hotspot encountered",
152
-
) orelsefalse,
153
-
.hotspot_on=!is_wasmandb.option(
154
-
bool,
155
-
"jit_hotspot_on",
156
-
"JIT engine will compile hotspot when threshold reached",
157
-
) orelsetrue,
158
-
.on=!is_wasmandb.option(
159
-
bool,
160
-
"jit",
161
-
"Turn on JIT engine",
162
-
) orelsetrue,
163
-
.prof_threshold=b.option(
164
-
f128,
165
-
"jit_prof_threshold",
166
-
"Threshold to determine if a function is hot. If the numbers of calls to it makes this percentage of all calls, it's considered hot and will be JIT compiled.",
"Amount of bytecode (x 1000) the script is allowed to run (WARNING: this disables JIT compilation)",
683
+
) orelsenull,
684
+
.recursive_call_limit=b.option(
685
+
u32,
686
+
"recursive_call_limit",
687
+
"Maximum depth for recursive calls",
688
+
),
689
+
.stack_size=b.option(
690
+
usize,
691
+
"stack_size",
692
+
"Stack maximum size",
693
+
) orelse100_000,
694
+
.mimalloc=!is_wasmandb.option(
695
+
bool,
696
+
"mimalloc",
697
+
"Use mimalloc allocator",
698
+
) orelsetrue,
699
+
.debug= .{
700
+
.debug=b.option(
701
+
bool,
702
+
"debug",
703
+
"Show debug information (AST, generated bytecode and more)",
704
+
) orelsefalse,
705
+
.stack=b.option(
706
+
bool,
707
+
"debug_stack",
708
+
"Dump stack after each bytecode",
709
+
) orelsefalse,
710
+
.current_instruction=b.option(
711
+
bool,
712
+
"debug_current_instruction",
713
+
"Dump stack after each bytecode",
714
+
) orelsefalse,
715
+
.perf=!is_wasmandb.option(
716
+
bool,
717
+
"show_perf",
718
+
"Show performance information",
719
+
) orelsefalse,
720
+
.stop_on_report=b.option(
721
+
bool,
722
+
"stop_on_report",
723
+
"Stop compilation whenever an error is encountered",
724
+
) orelsefalse,
725
+
.placeholders=b.option(
726
+
bool,
727
+
"debug_placeholders",
728
+
"Debug placeholders resolution",
729
+
) orelsefalse,
730
+
.type_registry=b.option(
731
+
bool,
732
+
"debug_type_registry",
733
+
"Debug type_registry",
734
+
) orelsefalse,
735
+
},
736
+
.gc= .{
737
+
.debug=b.option(
738
+
bool,
739
+
"gc_debug",
740
+
"Show debug information for the garbage collector",
741
+
) orelsefalse,
742
+
.debug_light=b.option(
743
+
bool,
744
+
"gc_debug_light",
745
+
"Show lighter debug information for the garbage collector",
746
+
) orelsefalse,
747
+
.debug_access=b.option(
748
+
bool,
749
+
"gc_debug_access",
750
+
"Track objects access",
751
+
) orelsefalse,
752
+
.on=b.option(
753
+
bool,
754
+
"gc",
755
+
"Turn on garbage collector",
756
+
) orelsetrue,
757
+
.initial_gc=b.option(
758
+
usize,
759
+
"initial_gc",
760
+
"In Kb, threshold at which the first garbage collector pass will occur",
761
+
) orelse40_960, // 40Mb
762
+
.next_gc_ratio=b.option(
763
+
usize,
764
+
"next_gc_ratio",
765
+
"Ratio applied to get the next GC threshold",
766
+
) orelse2,
767
+
.next_full_gc_ratio=b.option(
768
+
usize,
769
+
"next_full_gc_ratio",
770
+
"Ratio applied to get the next full GC threshold",
771
+
) orelse4,
772
+
.memory_limit=b.option(
773
+
usize,
774
+
"memory_limit",
775
+
"Memory limit in bytes",
776
+
) orelsenull,
777
+
},
778
+
.jit= .{
779
+
.debug=b.option(
780
+
bool,
781
+
"jit_debug",
782
+
"Show debug information for the JIT engine",
783
+
) orelsefalse,
784
+
.always_on=!is_wasmandb.option(
785
+
bool,
786
+
"jit_always_on",
787
+
"JIT engine will compile any function encountered",
788
+
) orelsefalse,
789
+
.hotspot_always_on=!is_wasmandb.option(
790
+
bool,
791
+
"jit_hotspot_always_on",
792
+
"JIT engine will compile any hotspot encountered",
793
+
) orelsefalse,
794
+
.hotspot_on=!is_wasmandb.option(
795
+
bool,
796
+
"jit_hotspot_on",
797
+
"JIT engine will compile hotspot when threshold reached",
798
+
) orelsetrue,
799
+
.on=!is_wasmandb.option(
800
+
bool,
801
+
"jit",
802
+
"Turn on JIT engine",
803
+
) orelsetrue,
804
+
.prof_threshold=b.option(
805
+
f128,
806
+
"jit_prof_threshold",
807
+
"Threshold to determine if a function is hot. If the numbers of calls to it makes this percentage of all calls, it's considered hot and will be JIT compiled.",
0 commit comments