⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module js_compiler

Module js_compiler 

Source
Expand description

JavaScript Bytecode Compiler

Compiles AST nodes into bytecode for the JS virtual machine. Uses a stack-based instruction set with ~40 opcodes. Functions are compiled into FunctionTemplates with their own constant pools.

Structs§

Chunk
Bytecode chunk (top-level compilation unit)
Compiler
Bytecode compiler
FunctionTemplate
Compiled function template

Enums§

Constant
Constant pool entry
Opcode
Bytecode opcodes (single-byte encoding)