Make the main frame "extendable" allowing us to not have locals until needed

This commit is contained in:
2019-05-15 14:59:19 +02:00
parent 1381ce7b48
commit 9740c0fc57
2 changed files with 26 additions and 5 deletions

View File

@@ -16,7 +16,6 @@ use heap::Heap;
use netstack::NetStack;
pub const MAGIC_HEADER: u32 = 0x1DEA_DFAD;
const ANTI_BS_SIZE: usize = 0xFF;
pub struct Machine {
pub wide: bool,
@@ -41,7 +40,7 @@ impl Machine {
halted: false,
pool,
block,
frame: vec![Frame::new(ANTI_BS_SIZE, 0)],
frame: vec![Frame::new_extendable(0)],
stream_in: Box::new(::std::io::stdin()),
stream_out: Arc::new(Mutex::new(::std::io::stdout())),