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
V8 bailout when switches contains more than 128 case.
Js_of_ocaml splits big switches with conditionals. Use "-set switch_size=limit" to the maximum number of cases.
Inlining
Some constructs are not being optimized by JIT compilers (eval, try_catch).
Js_of_ocaml tries to preserve optimizable function by not inlining such not-optimized constructs (see https://github.com/ocsigen/js_of_ocaml/pull/230)
Some constructs containing constants are not being optimized if those constants are aliased by variables.
Js_of_ocaml doesn't alias "number" constant string so that typeof x === "number" gets optimized.
The same for constant patterns in switch case.