fix(llvm): Implement handle-based console.log functions for plugin return values
- Add nyash.console.log_handle(i64) -> i64 family functions to nyrt - Replace invalid int-to-pointer conversion with proper handle-based calls - Fix bool(i1) -> i64 type conversion in LLVM compiler - Resolve LLVM function verification errors - Enable plugin method execution without NYASH_LLVM_ALLOW_BY_NAME - Merge codex TLV fixes for plugin return value handling (2000+ lines) Technical Details: - Root cause: build_int_to_ptr(handle_value, i8*, "arg_i2p") treated handle IDs as memory addresses (invalid operation) - Solution: Direct i64 handle passing to nyrt functions with proper handle registry lookup and to_string_box() conversion - Type safety: Added proper i1/i32/i64 -> i64 conversion handling Status: Console.log type errors resolved, plugin return value display still under investigation 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
22
.git-rewrite/raw-refs
Normal file
22
.git-rewrite/raw-refs
Normal file
@ -0,0 +1,22 @@
|
||||
refs/heads/backup/claude-ssa-fix
|
||||
refs/heads/clean-push
|
||||
refs/heads/cranelift-dev
|
||||
refs/heads/main
|
||||
refs/heads/selfhosting-dev
|
||||
refs/heads/selfhosting-dev-backup-20250907-183125
|
||||
refs/heads/test-chatgpt-fix
|
||||
refs/remotes/origin/main
|
||||
refs/remotes/origin/codex/mir
|
||||
refs/remotes/origin/codex/mir-4q9jre
|
||||
refs/remotes/origin/continue/fix-26
|
||||
refs/remotes/origin/cranelift-dev
|
||||
refs/remotes/origin/docs/submodule-private
|
||||
refs/remotes/origin/integration/core13-pure-ci
|
||||
refs/remotes/origin/llvm-dev
|
||||
refs/remotes/origin/llvm-dev-local
|
||||
refs/remotes/origin/main
|
||||
refs/remotes/origin/selfhosting-dev
|
||||
refs/remotes/origin/vm-test-request
|
||||
refs/remotes/origin/wasm-claude
|
||||
refs/stash
|
||||
refs/tags/v0.15-core13-stabilize
|
||||
Reference in New Issue
Block a user