Skip to content

Commit

Permalink
save from global var
Browse files Browse the repository at this point in the history
  • Loading branch information
violinyap committed Apr 3, 2021
1 parent d96a464 commit f9997c3
Show file tree
Hide file tree
Showing 2 changed files with 1,496 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/bundles/copy_gc/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ function updateMemoryHeap(newHeap: number[]): void {
}
}

function allHeap(newHeap: number[][]): void {
memoryHeaps = newHeap;
}

function updateFlip(): void {
flips.push(memoryHeaps.length - 1);
}
Expand Down Expand Up @@ -147,6 +151,7 @@ export default function copy_gc() {
updateMemoryHeap,
generateMemory,
updateFlip,
allHeap,
};
}

Expand Down
Loading

0 comments on commit f9997c3

Please sign in to comment.