LuaSTG-x Core API
|
Public Member Functions | |
static function | start () |
You can also use it programmatically, e.g.: More... | |
jit.opt.* — JIT compiler optimization control
This sub-module provides the backend for the -O command line option.
static function start | ( | ) |
You can also use it programmatically, e.g.:
jit.opt.start(2) – same as -O2
jit.opt.start("-dce")
jit.opt.start("hotloop=10", "hotexit=2")
Unlike in LuaJIT 1.x, the module is built-in and optimization is turned on by default! It's no longer necessary to run require("jit.opt").start(), which was one of the ways to enable optimization.