Skip to content

[cppia] Upgrade sljit - #1434

Merged
Simn merged 14 commits into
HaxeFoundation:masterfrom
tobil4sk:upgrade-sljit
Oct 29, 2026
Merged

Simn merged 14 commits into
HaxeFoundation:masterfrom
tobil4sk:upgrade-sljit

Conversation

@tobil4sk

Copy link
Copy Markdown
Member

Upgrades sljit to zherczeg/sljit@39c508d.

This seems to get the haxe cppia jit unit tests passing on linux arm64, at least through qemu. Hopefully, it will also fix the random mac arm64 failures that have been seen there.

We had some in-tree patches applied. I have reapplied: b220c1d, since the issue still remains. The remaining ones I have omitted intentionally:

  • bf296a1 superseded by upstream zherczeg/sljit@65a8c2b
  • b16e805 this was for debugging asserts (CHECK_ARGUMENT). In normal usage, these asserts shouldn't be triggered at all, and the existing asserts give enough information to find the location of the error, e.g.
Assertion failed at /.../hxcpp/src/hx/cppia/sljit_src/sljitLir.c:2491
zsh: abort (core dumped)  bin/CppiaHost bin/client.cppia -jit
  • ab77ca5 presumably this was to avoid a signed conversion warning. I don't see a warning when compiling for armv7 (android) with updated sljit.

Perhaps we might want to consider merging this after #1399/#1400 to have more confidence that the arm jit is all good.

@tobil4sk tobil4sk changed the title Upgrade sljit [cppia] Upgrade sljit Oct 28, 2026
See:
zherczeg/sljit@04c7fcc

SLJIT_FUNC is empty, but the sljit tutorials still use it so let's keep
it.
It was added so that cppia functions use the abi expected by sljit, in:
21a2194

sljit no longer uses fastcall on x86-32. See:
zherczeg/sljit@a6c8e5b

It is still set to empty, because it is set in haxe generated code and
this way it matches SLJIT_FUNC
It looks like now sJitTemp0 can get overwritten during the conversion,
making the multiplication produce the wrong value. This caused a
regression:

results: SOME TESTS FAILURES (success: false)
cases.TestCommon
  testStatus: FAILURE F
    line: 34, expected "ok" but it is "Failed regression test for HaxeFoundation#926. x: 9"
@Simn

Simn commented Oct 29, 2026

Copy link
Copy Markdown
Member

Let's do this.

Thanks!

@Simn
Simn merged commit 6197500 into HaxeFoundation:master Oct 29, 2026
181 checks passed
@tobil4sk
tobil4sk deleted the upgrade-sljit branch October 29, 2026 15:30
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.

2 participants