- Add TypeOpKind, WeakRefOp, BarrierOp enums for unified instructions - Implement TypeOp instruction combining TypeCheck/Cast - Implement WeakRef instruction combining WeakNew/WeakLoad - Implement Barrier instruction combining BarrierRead/BarrierWrite - Update VM to handle new unified instructions - Update MIR printer for new instruction formats - Add feature flags mir_typeop_poc and mir_refbarrier_unify_poc - Maintain backward compatibility with legacy instructions This is Phase 8.5 MIR instruction diet PoC implementation. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
40 lines
764 B
JSON
40 lines
764 B
JSON
🔌 v2 plugin system initialized from nyash.toml
|
|
✅ v2 plugin system fully configured
|
|
🚀 Nyash VM Backend - Executing file: local_tests/vm_stats_filebox.nyash 🚀
|
|
{
|
|
"counts": {
|
|
"BoxCall": 17,
|
|
"Const": 13,
|
|
"NewBox": 12,
|
|
"Return": 1,
|
|
"Safepoint": 1
|
|
},
|
|
"elapsed_ms": 26.658774,
|
|
"timestamp_ms": 1755900319445,
|
|
"top20": [
|
|
{
|
|
"count": 17,
|
|
"op": "BoxCall"
|
|
},
|
|
{
|
|
"count": 13,
|
|
"op": "Const"
|
|
},
|
|
{
|
|
"count": 12,
|
|
"op": "NewBox"
|
|
},
|
|
{
|
|
"count": 1,
|
|
"op": "Return"
|
|
},
|
|
{
|
|
"count": 1,
|
|
"op": "Safepoint"
|
|
}
|
|
],
|
|
"total": 44
|
|
}
|
|
✅ VM execution completed successfully!
|
|
Result: StringBox { value: "HELLO", base: BoxBase { id: 59, parent_type_id: None } }
|