Skip to content

Fix self-host probe LLVM call typing after value-box property regression (#1080)#1097

Merged
PurHur merged 2 commits into
masterfrom
fix/1080-selfhost-probe-verify
May 23, 2026
Merged

Fix self-host probe LLVM call typing after value-box property regression (#1080)#1097
PurHur merged 2 commits into
masterfrom
fix/1080-selfhost-probe-verify

Conversation

@PurHur
Copy link
Copy Markdown
Owner

@PurHur PurHur commented May 23, 2026

Summary

Root cause

PR #1080 removed the TYPE_OBJECT branch in Helper::loadValue, treating all non-string/hashtable property slots as __value__*. Operands passed to native methods expecting __object__* (e.g. operandsChainEqual) were lowered as __value__*, causing LLVM module verification to fail.

Test plan

  • make bootstrap-selfhost-probe (passes Module verification; advances past operandsChainEqual)
  • ./script/bootstrap-selfhost-link.sh
  • make bootstrap-wave-check

Made with Cursor

PurHur and others added 2 commits May 23, 2026 20:20
Restore typed object-property loadValue/operandJitType, narrow isValueOperand
to TYPE_VALUE slots, unwrap value-box property slots to __object__* for native
call args, and map VM null defaults for class properties.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Restore TYPE_OBJECT property loadValue/operandJitType paths
- Native call: unwrap __value__ property slots to __object__*
- Object identical compare via void* + ptrToInt
- Stub isRedundantCoalesceTailAssign, all Superglobals, resolve() under self-host AOT

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur PurHur force-pushed the fix/1080-selfhost-probe-verify branch from 90a396d to 6c70656 Compare May 23, 2026 18:23
@PurHur PurHur merged commit 4404c25 into master May 23, 2026
1 check failed
@PurHur PurHur deleted the fix/1080-selfhost-probe-verify branch May 23, 2026 18:24
PurHur added a commit that referenced this pull request May 23, 2026
)

ConstStringFolder::sourceDir real lowering triggers LLVM ICmp operand type
mismatch in bootstrap-selfhost; disable real lowering like IncludePathResolver.

Co-authored-by: Cursor <cursoragent@cursor.com>
PurHur added a commit that referenced this pull request May 23, 2026
Re-enabling ConstStringFolder real lowering broke
bootstrap-selfhost-compile-probe with LLVM ICmp type mismatch.

Co-authored-by: PurHur <PurHur@users.noreply.github.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
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