feat: 对小整数做额外枚举以优化性能
This commit is contained in:
@@ -5,6 +5,7 @@ use crate::opcode::{self, OpCode};
|
||||
#[derive(Debug, Clone, PartialEq)]
|
||||
pub enum Constant {
|
||||
Number(f64),
|
||||
Int(i32),
|
||||
String(String),
|
||||
Boolean(bool),
|
||||
Null,
|
||||
|
||||
Reference in New Issue
Block a user