mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
refactor: 寄存器号 u8→u32 全链放宽,vreg 化去 checkpoint/reg_overflow
This commit is contained in:
@@ -28,7 +28,7 @@ pub enum Constant {
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct UpvalueCapture {
|
||||
pub name: String,
|
||||
pub enclosing_reg: u8,
|
||||
pub enclosing_reg: u32,
|
||||
pub cell_idx: u8,
|
||||
}
|
||||
|
||||
@@ -48,7 +48,7 @@ pub struct CompiledModule {
|
||||
pub n_registers: u8,
|
||||
pub n_args: u8,
|
||||
pub param_base: u8,
|
||||
pub builtin_reg_map: Vec<(String, u8)>,
|
||||
pub builtin_reg_map: Vec<(String, u32)>,
|
||||
pub sub_modules: Vec<CompiledModule>,
|
||||
/// True when this module is an arrow function body.
|
||||
/// Arrow functions capture lexical `this` from the enclosing scope.
|
||||
|
||||
Reference in New Issue
Block a user