Skip to content

Commit d5cca09

Browse files
committed
ZJIT: Fix GetEP effect
1 parent 1e1d833 commit d5cca09

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

zjit/src/hir.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1174,7 +1174,8 @@ impl Insn {
11741174
Insn::LoadPC { .. } => Effect::read_write(abstract_heaps::PC, abstract_heaps::Empty),
11751175
Insn::LoadEC { .. } => effects::Empty,
11761176
Insn::LoadSP { .. } => effects::Empty,
1177-
Insn::GetEP { .. } => effects::Empty,
1177+
// GetEP reads from the current frame pointer (abstract_heaps::Frame) and also traverses previous frames too.
1178+
Insn::GetEP { .. } => Effect::read_write(abstract_heaps::Memory, abstract_heaps::Empty),
11781179
Insn::LoadSelf { .. } => Effect::read_write(abstract_heaps::Frame, abstract_heaps::Empty),
11791180
Insn::LoadField { .. } => Effect::read_write(abstract_heaps::Memory, abstract_heaps::Empty),
11801181
Insn::StoreField { .. } => effects::Any,

0 commit comments

Comments
 (0)