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

KarpelesLab / goro / 25337588561
13%

Build:
DEFAULT BRANCH: master
Ran 04 May 2026 07:02PM UTC
Jobs 1
Files 396
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

04 May 2026 07:00PM UTC coverage: 8.284% (+0.3%) from 7.969%
25337588561

push

github

MagicalTux
vm: native throw, improved object method dispatch

Adds:
- OP_THROW + throwNode emitter case (runnableThrow). Pops
  the operand and routes through phpobj.ThrowObject. Lets
  VM-compiled functions throw exceptions that AST-level
  try/catch wrappers (or AST callers) can catch normally.
- compiler.CallInstanceMethod public helper. Mirrors the
  AST runObjectFunc.Run dispatch: abstract check,
  private/protected visibility against ctx.Class(),
  __call fallback when inaccessible, late-static binding
  for static methods. The VM's OP_OBJECT_CALL now routes
  through this so visibility errors fire for VM-compiled
  call sites just like the AST path.
- runNoDiscardStatement unwrap in emitStmt — the wrapper
  exists to attach a #[NoDiscard] post-call warning; the
  VM's call path doesn't yet preserve it, but unwrapping
  lets the inner call statement still get VM-compiled.
  Loss: VM-compiled call sites won't fire the NoDiscard
  warning. Acceptable for now.

Property write ($obj->prop = value) was attempted but
deferred: subtle interactions with typed properties,
hooks, and backtrace info don't yet match the AST
WriteValue path. Falls back to AST per-function.

phpt suite under GORO_VM=1 has ~20 known regressions, all
of them the kind that come from value-based VM dispatch:
by-ref parameter passing (the VM passes pre-evaluated
ZVals; the AST passes Runnables and binds Writables for
&\$x), backtrace file/line info for nested calls, and
GMP object identity in chained operations. Out of 12k+
tests these are <0.2%.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

37 of 161 new or added lines in 7 files covered. (22.98%)

7 existing lines in 2 files now uncovered.

9480 of 114432 relevant lines covered (8.28%)

895.66 hits per line

Uncovered Changes

Lines Coverage ∆ File
69
34.55
-11.08% core/compiler/dispatch.go
21
45.95
-10.72% core/vm/vmcompiler/emit_object.go
16
12.16
-6.15% core/vm/ops_object.go
10
61.19
-0.43% core/vm/vm.go
4
77.33
-0.13% core/vm/vmcompiler/emit_stmt.go
3
81.55
-0.73% core/vm/vmcompiler/emit_expr.go
1
72.83
-0.21% core/compiler/vmaccess.go

Coverage Regressions

Lines Coverage ∆ File
6
14.11
1.39% core/phpobj/zobject.go
1
81.55
-0.73% core/vm/vmcompiler/emit_expr.go
Jobs
ID Job ID Ran Files Coverage
1 25337588561.1 04 May 2026 07:02PM UTC 396
8.28
GitHub Action Run
Source Files on build 25337588561
  • Tree
  • List 396
  • Changed 27
  • Source Changed 8
  • Coverage Changed 27
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25337588561
  • 6e0190f3 on github
  • Prev Build on master (#25336784689)
  • Next Build on master (#25337647438)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc