Implement Phase 6 Box reference operations in MIR/VM - RefNew/RefGet/RefSet/WeakNew/WeakLoad/Barrier*

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-13 09:45:22 +00:00
parent 65ce7a5f8c
commit 84d2aac8da
9 changed files with 416 additions and 4 deletions

View File

@ -37,6 +37,8 @@ pub enum Effect {
Unsafe = 0x0400,
/// Debug/logging operations
Debug = 0x0800,
/// Memory barrier operations
Barrier = 0x1000,
}
impl EffectMask {
@ -156,6 +158,7 @@ impl EffectMask {
if self.contains(Effect::Async) { names.push("async"); }
if self.contains(Effect::Unsafe) { names.push("unsafe"); }
if self.contains(Effect::Debug) { names.push("debug"); }
if self.contains(Effect::Barrier) { names.push("barrier"); }
names
}