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

KarpelesLab / goro / 26394336499
13%

Build:
DEFAULT BRANCH: master
Ran 25 May 2026 09:50AM UTC
Jobs 1
Files 398
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

25 May 2026 09:49AM UTC coverage: 12.541% (+0.02%) from 12.52%
26394336499

push

github

MagicalTux
vm: lower $b = &$a ref-assign for simple-local LHS natively

Adds OP_STORE_LOCAL_REF, writing a ref-typed ZVal into a local slot
without the COW-Dup that OP_STORE_LOCAL applies to ZtArray values
(frame.go:160-166 follows ref→Nude+Dup, which detaches the ref).

Emit path: $b = &$a where LHS is a simple variable
  - emit RHS (\&$a → OP_CREATE_REF produces ref ZVal)
  - OP_STORE_LOCAL_REF idx=$b localIdx

Handler:
  - pop value
  - if IsRef, call RefInner() to track alias count
  - write directly into the slot (no Dup, no Nude)
  - mirror through ctx.OffsetSet for non-slot-only frames
  - keep-value flag for expr context ($x = ($b = &$a))

Complex LHS (object prop, array elem, static prop) still routes
through AST — those write paths each carry their own ref-installation
semantics that this stage-1 lowering doesn't replicate.

VM output byte-identical to AST baseline across the 7-test smoke
suite (scalar/array/string ref-share, function by-ref pass-through,
unset-detach, ref-chain, and the expr-context $x = ($b = &$a) edge).

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

28 of 38 new or added lines in 2 files covered. (73.68%)

12 existing lines in 2 files now uncovered.

14964 of 119318 relevant lines covered (12.54%)

2562.28 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
52.82
0.43% core/vm/vm.go
4
57.1
0.8% core/vm/vmcompiler/emit_expr.go

Coverage Regressions

Lines Coverage ∆ File
11
21.01
-0.62% core/compiler/run-operator.go
1
57.1
0.8% core/vm/vmcompiler/emit_expr.go
Jobs
ID Job ID Ran Files Coverage
1 26394336499.1 25 May 2026 09:50AM UTC 398
12.54
GitHub Action Run
Source Files on build 26394336499
  • Tree
  • List 398
  • Changed 5
  • Source Changed 3
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26394336499
  • 6bc86950 on github
  • Prev Build on master (#26393926214)
  • Next Build on master (#26434357893)
  • Delete
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