mirror of
https://github.com/pjh456/OxideJS.git
synced 2026-10-24 02:31:13 +08:00
refactor: 拆分缓冲区载荷为 AB/SAB 双认入口,SAB 字节改走核账目
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
use std::ffi::c_void;
|
||||
use std::sync::Arc;
|
||||
|
||||
use oxide_kernel::KernelCore;
|
||||
use oxide_runtime_api::{ProtoKind, ShapeNode};
|
||||
use oxide_types::mem::P;
|
||||
use oxide_types::object::{Cell, JsObject, PropAttributes};
|
||||
@@ -152,6 +153,9 @@ impl oxide_runtime_api::VmHost for Vm {
|
||||
let session = self.session();
|
||||
session.global_object().clone()
|
||||
}
|
||||
fn kernel_core(&self) -> Arc<KernelCore> {
|
||||
Arc::clone(self.kernel_core())
|
||||
}
|
||||
fn pc(&self) -> usize {
|
||||
self.pc
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user