fix(jit): リファクタリング後のビルドエラーを修正

- extern_thunks.rsへの関数移動に伴うインポート追加
- 存在しない関数名の参照を削除(string_len_h等)
- 不要なインポートを削除(CallBoundaryBox, NyashRuntimeBuilder等)
- OpEffectのエイリアスを修正(Effect as OpEffect)

ChatGPT5さんのリファクタリング作業の続き。ファイルサイズ削減(~1000行)により
AI連携が容易になりました。

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-08-29 02:26:03 +09:00
parent 3d5a8ccad5
commit 77816ab19f

View File

@ -138,14 +138,20 @@ use cranelift_codegen::ir::InstBuilder;
#[cfg(feature = "cranelift-jit")] #[cfg(feature = "cranelift-jit")]
extern "C" fn nyash_host_stub0() -> i64 { 0 } extern "C" fn nyash_host_stub0() -> i64 { 0 }
#[cfg(feature = "cranelift-jit")] #[cfg(feature = "cranelift-jit")]
use super::extern_thunks::{ nyash_math_sin_f64, nyash_math_cos_f64, nyash_math_abs_f64, nyash_math_min_f64, nyash_math_max_f64, }; use super::extern_thunks::{
#[cfg(feature = "cranelift-jit")] nyash_math_sin_f64, nyash_math_cos_f64, nyash_math_abs_f64, nyash_math_min_f64, nyash_math_max_f64,
nyash_array_len_h, nyash_array_get_h, nyash_array_set_h, nyash_array_push_h,
#[cfg(feature = "cranelift-jit")] nyash_array_last_h, nyash_map_size_h, nyash_map_get_h, nyash_map_get_hh,
nyash_map_set_h, nyash_map_has_h,
#[cfg(feature = "cranelift-jit")] nyash_string_charcode_at_h,
nyash_any_length_h, nyash_any_is_empty_h,
};
#[cfg(feature = "cranelift-jit")] #[cfg(feature = "cranelift-jit")]
use crate::{
mir::{MirType, Effect as OpEffect, MirFunction},
jit::events,
};
#[cfg(feature = "cranelift-jit")] #[cfg(feature = "cranelift-jit")]
extern "C" fn nyash_array_len(arr_param_index: i64) -> i64 { extern "C" fn nyash_array_len(arr_param_index: i64) -> i64 {