LuaSTG-x Core API
jit::opt Class Reference

Public Member Functions

static function start ()
 You can also use it programmatically, e.g.: More...
 

Detailed Description

jit.opt.* — JIT compiler optimization control

This sub-module provides the backend for the -O command line option.

Member Function Documentation

◆ start()

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.


The documentation for this class was generated from the following file: