Skip to content

refactor(engine): thread SplittableLeafCompiler through CompileContext#362

Merged
DemchaAV merged 1 commit into
2.0-devfrom
refactor/splittable-compiler-context
Jul 11, 2026
Merged

refactor(engine): thread SplittableLeafCompiler through CompileContext#362
DemchaAV merged 1 commit into
2.0-devfrom
refactor/splittable-compiler-context

Conversation

@DemchaAV

Copy link
Copy Markdown
Owner

Why

#361 introduced CompileContext (bundling the five always-threaded
state / prepareContext / fragmentContext / nodes / fragments params) and used it in
StackedLayerCompiler, but SplittableLeafCompiler (from #360) still took them
flat. This gives the two extracted compile collaborators one consistent shape.

What

  • SplittableLeafCompiler.compile(...) now takes a CompileContext instead of the five
    separate params (14 → 10 args), unpacking them into the same local names at the top so
    the pagination-loop body is untouched.
  • Updated the dispatch in LayoutCompiler and the compile(...) helper in
    SplittableLeafCompilerTest to build the CompileContext.

Tests

  • ./mvnw -f aggregator/pom.xml verify -pl :graph-compose-qa -am — full compile + javadoc gate
    • the qa visual/parity byte-identity suite (643): green.
  • SplittableLeafCompilerTest: 3 tests, 0 failures (unchanged behaviour, new call shape).

Byte-identical — the change is parameter repackaging only; the split loop is unmodified.

StackedLayerCompiler already takes the bundled CompileContext; give the
splittable-leaf compiler the same shape. compile() now takes a CompileContext
instead of the five separate state / prepareContext / fragmentContext / nodes /
fragments parameters (14 args → 10), unpacking them into the same locals at the
top so the body is unchanged. Byte-identical.
@DemchaAV DemchaAV merged commit f48481e into 2.0-dev Jul 11, 2026
12 checks passed
@DemchaAV DemchaAV deleted the refactor/splittable-compiler-context branch July 11, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant