RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Debug DrawingGPU Mesh StructsImGui FFIMath Structs (FFI)FFI C DefinitionsPID ControllersCSV LibraryDelay LineDequeDevelopment UtilitiesEvent ReferenceExtension SystemSignal FiltersGraph PathfindingUI BridgeInput Filter Constants2D Bilinear InterpolationIntrospectionJBeam Pretty PrinterJSON AST ParserSJSON ParserJSON Debug ParserJSON Pretty PrinterK-D Tree (2D Boxes)K-D Tree (3D)K-D Tree (3D)Lua SerializerC++/Lua BindingLua CoreLua ProfilerMath LibraryParticlesQuadtreeSettingsTCP ServerTimer SchedulerUtility Library
jit/ - LuaJIT Compiler & Profiler ModulesLuaJIT ProfilerVerbose JIT CompilerLuaJIT VM DefinitionsProfiler Zones

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

LuaJIT VM Definitions

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

See Also

  • jit/ - LuaJIT Compiler & Profiler Modules - Directory overview
  • jit.p (LuaJIT Profiler) Reference - Related reference
  • jit.v (Verbose JIT Compiler Output) Reference - Related reference
  • jit.zone (Profiler Zones) Reference - Related reference
  • Common Libraries Overview - Guide

Verbose JIT Compiler

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.

Profiler Zones

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 NotesSee Also