aot(core): EXE path green (return 7); migrate NyRT jit handles → runtime::host_handles; fix mir_call.py indent; workspace excludes for missing plugins; docs(phase-33) status update

This commit is contained in:
nyash-codex
2025-10-31 18:30:50 +09:00
parent c11803797a
commit 712b370013
15 changed files with 133 additions and 122 deletions

View File

@ -17,9 +17,9 @@ pub extern "C" fn nyash_console_log_export(ptr: *const i8) -> i64 {
// Exported as: nyash.console.log_handle(i64 handle) -> i64
#[export_name = "nyash.console.log_handle"]
pub extern "C" fn nyash_console_log_handle(handle: i64) -> i64 {
use nyash_rust::jit::rt::handles;
use nyash_rust::runtime::host_handles as handles;
eprintln!("DEBUG: handle={}", handle);
if let Some(obj) = handles::get(handle) {
if let Some(obj) = handles::get(handle as u64) {
let s = obj.to_string_box().value;
println!("{}", s);
} else {
@ -36,7 +36,7 @@ pub extern "C" fn nyash_console_warn_handle(handle: i64) -> i64 {
return 0;
}
if let Some(obj) = nyash_rust::jit::rt::handles::get(handle) {
if let Some(obj) = nyash_rust::runtime::host_handles::get(handle as u64) {
let s = obj.to_string_box().value;
eprintln!("WARN: {}", s);
} else {
@ -52,7 +52,7 @@ pub extern "C" fn nyash_console_error_handle(handle: i64) -> i64 {
return 0;
}
if let Some(obj) = nyash_rust::jit::rt::handles::get(handle) {
if let Some(obj) = nyash_rust::runtime::host_handles::get(handle as u64) {
let s = obj.to_string_box().value;
eprintln!("ERROR: {}", s);
} else {
@ -68,7 +68,7 @@ pub extern "C" fn nyash_debug_trace_handle(handle: i64) -> i64 {
return 0;
}
if let Some(obj) = nyash_rust::jit::rt::handles::get(handle) {
if let Some(obj) = nyash_rust::runtime::host_handles::get(handle as u64) {
let s = obj.to_string_box().value;
eprintln!("TRACE: {}", s);
} else {