feat(plugin): Fix plugin BoxRef return and Box argument support

- Fixed deadlock in FileBox plugin copyFrom implementation (single lock)
- Added TLV Handle (tag=8) parsing in calls.rs for returned BoxRefs
- Improved plugin loader with config path consistency and detailed logging
- Fixed loader routing for proper Handle type_id/fini_method_id resolution
- Added detailed logging for TLV encoding/decoding in plugin_loader_v2

Test docs/examples/plugin_boxref_return.nyash now works correctly:
- cloneSelf() returns FileBox Handle properly
- copyFrom(Box) accepts plugin Box arguments
- Both FileBox instances close and fini correctly

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-08-21 00:41:26 +09:00
parent af32896574
commit cc2a820af7
274 changed files with 7244 additions and 4608 deletions

View File

@ -0,0 +1,23 @@
# 🌐 WASM/AOT WASM 問題・課題管理
## 📁 フォルダ概要
NyashのWebAssemblyWASMおよびAOT WASM機能の問題点、制限事項、今後の改善計画を管理します。
## 📋 ドキュメント一覧
### 現在の問題・制限
- **[current_issues.md](current_issues.md)**: 現在発生中の技術的問題
- **[compatibility_matrix.md](compatibility_matrix.md)**: wasmtimeバージョン互換性マトリクス
- **[unsupported_features.md](unsupported_features.md)**: 未実装MIR命令・機能一覧
### 改善計画
- **[improvement_roadmap.md](improvement_roadmap.md)**: WASM/AOT機能改善計画
- **[optimization_targets.md](optimization_targets.md)**: 性能最適化目標
### 技術仕様
- **[wasm_backend_spec.md](wasm_backend_spec.md)**: WASM Backend詳細仕様
- **[aot_pipeline_spec.md](aot_pipeline_spec.md)**: AOT変換パイプライン仕様
---
**目標**: NyashのWASM/AOT機能を Production Ready レベルまで向上させる