• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

KarpelesLab / goro / 26138114610

20 May 2026 02:46AM UTC coverage: 12.386% (+0.001%) from 12.385%
26138114610

push

github

MagicalTux
vm: lower &\$expr (runRef) to dedicated OP_CREATE_REF + helper

Extracts EvalCreateRef(ctx, node) that calls into runRef.Run's body.
Adds OP_CREATE_REF (A=astIdx) and routes runRef nodes through it
instead of the generic OpClassConst delegation.

This is the first-stage lowering for B4 — the helper IS the AST
body, so semantics are unchanged. Future per-shape opcodes
(OP_REF_VAR, OP_REF_ARR, OP_REF_OBJ_PROP, OP_REF_STATIC_PROP) can
replace this when benchmarks demand it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

5 of 23 new or added lines in 3 files covered. (21.74%)

14571 of 117637 relevant lines covered (12.39%)

2561.22 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

24.55
/core/compiler/variable.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc