feat: JIT (unusable, segfault)
This commit is contained in:
@@ -101,16 +101,18 @@ impl Compile for ir::Attrs {
|
||||
cap: self.stcs.len() + self.dyns.len(),
|
||||
});
|
||||
for stc in self.stcs {
|
||||
let thunk = stc.1.is_thunk();
|
||||
stc.1.compile(comp);
|
||||
if !self.rec {
|
||||
if thunk && !self.rec {
|
||||
comp.push(OpCode::CaptureEnv);
|
||||
}
|
||||
comp.push(OpCode::PushStaticAttr { name: stc.0 });
|
||||
}
|
||||
for dynamic in self.dyns {
|
||||
let thunk = dynamic.1.is_thunk();
|
||||
dynamic.0.compile(comp);
|
||||
dynamic.1.compile(comp);
|
||||
if !self.rec {
|
||||
if thunk && !self.rec {
|
||||
comp.push(OpCode::CaptureEnv);
|
||||
}
|
||||
comp.push(OpCode::PushDynamicAttr)
|
||||
|
||||
Reference in New Issue
Block a user