RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

cdefDebugDraw ReferencecdefGpuMesh ReferencecdefImgui ReferencecdefMath Referencecdefs ReferencecontrolSystems Referencecsvlib ReferencedelayLine Referencedequeue ReferencedevUtils ReferenceEvent Referenceextensions Referencefilters Referencegraphpath Referenceguihooks ReferenceinputFilters ReferenceinterpolatedMap Referenceintrospection ReferencejbeamWriter Referencejson-ast Referencejson ReferencejsonDebug ReferencejsonPrettyEncoderCustom Referencekdtreebox2d Referencekdtreebox3d Referencekdtreepoint3d Referencelpack ReferenceluaBinding ReferenceluaCore ReferenceluaProfiler Referencemathlib Referenceparticles Referencequadtree Referencesettings ReferencetcpServer ReferencetimeEvents Referenceutils Reference
jit/ - LuaJIT Compiler & Profiler Modulesjit.p (LuaJIT Profiler) Referencejit.v (Verbose JIT Compiler Output) Referencejit.vmdef (VM Definitions) Referencejit.zone (Profiler Zones) Reference

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API Referencecommonjit

jit.vmdef (VM Definitions) Reference

Module defined in `lua/common/jit/vmdef.lua`. Auto-generated file containing LuaJIT VM bytecode names, IR names, IR field definitions, and C function call mappings. **DO NOT EDIT** - generated by LuaJ

Module defined in lua/common/jit/vmdef.lua. Auto-generated file containing LuaJIT VM bytecode names, IR names, IR field definitions, and C function call mappings. DO NOT EDIT - generated by LuaJIT build system.


Exports

Returns a table with the following fields:

Variables

bcnames

  • Type: string
  • Description: Space-separated bytecode instruction names (ISLT, ISGE, MOV, CALL, RET, etc.)

irnames

  • Type: string
  • Description: Space-separated IR instruction names (LT, GE, ADD, SUB, ALOAD, HSTORE, etc.)

irfpm

  • Type: table (array)
  • Description: FP math operation names indexed by enum value (floor, ceil, trunc, sqrt, log, log2, other)

irfield

  • Type: table (array)
  • Description: IR field names (str.len, func.env, tab.meta, tab.array, etc.)

ircall

  • Type: table (array)
  • Description: C function call names used by the JIT (lj_str_cmp, lj_tab_new, sqrt, pow, etc.)

Internal Notes

  • Version-locked: asserts LuaJIT 2.1.1763476812 at load time
  • Used by jit.p, jit.v, and other JIT introspection tools
  • Regenerated when LuaJIT version changes

jit.v (Verbose JIT Compiler Output) Reference

Module defined in `lua/common/jit/v.lua`. Verbose mode for the LuaJIT compiler - prints one line per generated trace showing compilation progress, trace linking, and abort reasons.

jit.zone (Profiler Zones) Reference

Module defined in `lua/common/jit/zone.lua`. Implements a simple hierarchical zone stack for the LuaJIT profiler. Zones label code sections for profiling output.

On this page

ExportsVariablesbcnamesirnamesirfpmirfieldircallInternal Notes