summaryrefslogtreecommitdiffstats
path: root/bytecode/src/heap.rs
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2024-04-28 15:06:43 -0700
committerRose Hogenson <rosehogenson@posteo.net>2024-04-28 15:06:43 -0700
commit5737e8430d43b3b5bd448f761cd2f3c35707a174 (patch)
treeb24f44ea5245a56b2f712c2eef6a3897f53bd098 /bytecode/src/heap.rs
parent9f5889c1263d63b953b3a324da07321deef5ca58 (diff)
downloadsml-5737e8430d43b3b5bd448f761cd2f3c35707a174.tar.zst
Add case over int.
Diffstat (limited to 'bytecode/src/heap.rs')
-rw-r--r--bytecode/src/heap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/bytecode/src/heap.rs b/bytecode/src/heap.rs
index 45ce283..970db7d 100644
--- a/bytecode/src/heap.rs
+++ b/bytecode/src/heap.rs
@@ -1,7 +1,7 @@
use crate::value::Value;
use std::error::Error;
-pub const NUM_LOCALS: usize = 8;
+pub const NUM_LOCALS: usize = 256;
#[derive(Debug)]
pub struct Heap {
@@ -27,7 +27,7 @@ impl Heap {
let Some(q) = Value(self.buf[p]).to_pointer() else {
return false;
};
- return self.first_active == (q < self.buf.len() / 2);
+ self.first_active == (q < self.buf.len() / 2)
}
fn alloc_size(&self, p: usize) -> usize {