feat: 对小整数做额外枚举以优化性能
This commit is contained in:
@@ -113,6 +113,7 @@ impl Vm {
|
||||
.iter()
|
||||
.map(|c| match c {
|
||||
Constant::Number(v) => JsValue::float(*v),
|
||||
Constant::Int(v) => JsValue::int(*v),
|
||||
Constant::String(s) => self.intern(s),
|
||||
Constant::Boolean(b) => JsValue::bool(*b),
|
||||
Constant::Null => JsValue::null(),
|
||||
|
||||
Reference in New Issue
Block a user