wip
This commit is contained in:
@@ -83,10 +83,10 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor {
|
||||
private offset = 0;
|
||||
private isRunning = false;
|
||||
|
||||
private readonly memory = new WebAssembly.Memory({
|
||||
initial: 4096,
|
||||
maximum: 8192
|
||||
});
|
||||
private readonly memory = new WebAssembly.Memory({
|
||||
initial: 4096,
|
||||
maximum: 8192
|
||||
});
|
||||
|
||||
private memoryView!: Int32Array;
|
||||
|
||||
@@ -97,14 +97,14 @@ export class MemoryRuntimeExecutor implements RuntimeExecutor {
|
||||
seed = 42424242;
|
||||
perf?: PerformanceStore;
|
||||
|
||||
constructor(
|
||||
private readonly registry: NodeRegistry,
|
||||
public cache?: SyncCache<Int32Array>
|
||||
) {
|
||||
this.cache = undefined;
|
||||
this.refreshView();
|
||||
log.info('MemoryRuntimeExecutor initialized');
|
||||
}
|
||||
constructor(
|
||||
private readonly registry: NodeRegistry,
|
||||
public cache?: SyncCache<Int32Array>
|
||||
) {
|
||||
this.cache = undefined;
|
||||
this.refreshView();
|
||||
log.info('MemoryRuntimeExecutor initialized');
|
||||
}
|
||||
|
||||
private refreshView(): void {
|
||||
this.memoryView = new Int32Array(this.memory.buffer);
|
||||
|
||||
Reference in New Issue
Block a user