✅ test: closure passing again, fma still not
parent
24d576879b
commit
2a0e02aec4
|
@ -249,7 +249,7 @@ impl <'a> State <'a> {
|
||||||
Instruction::Closure (a, b) => {
|
Instruction::Closure (a, b) => {
|
||||||
let b = usize::try_from (*b).unwrap ();
|
let b = usize::try_from (*b).unwrap ();
|
||||||
|
|
||||||
let idx = b + 1;
|
let idx = frame.block_idx + b + 1;
|
||||||
let block = &chunk.blocks [idx];
|
let block = &chunk.blocks [idx];
|
||||||
|
|
||||||
let mut new_upvalues = Vec::with_capacity (block.upvalues.len ());
|
let mut new_upvalues = Vec::with_capacity (block.upvalues.len ());
|
||||||
|
|
|
@ -11,6 +11,7 @@ use std::{
|
||||||
|
|
||||||
#[derive (Debug, Eq, PartialEq)]
|
#[derive (Debug, Eq, PartialEq)]
|
||||||
pub struct BogusClosure {
|
pub struct BogusClosure {
|
||||||
|
// I'm pretty sure this should be absolute?
|
||||||
pub idx: usize,
|
pub idx: usize,
|
||||||
pub upvalues: Vec <Value>,
|
pub upvalues: Vec <Value>,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue