Phase 12: 統一TypeBox ABI実装開始 - ChatGPT5による極小コアABI基盤構築

- TypeBox ABI雛形: メソッドスロット管理システム追加
- Type Registry: Array/Map/StringBoxの基本メソッド定義
- Host API: C ABI逆呼び出しシステム実装
- Phase 12ドキュメント整理: 設計文書統合・アーカイブ化
- MIR Builder: クリーンアップと分離実装完了

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

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Moe Charm
2025-09-03 05:04:56 +09:00
parent e2e25f6615
commit 53d88157aa
84 changed files with 4739 additions and 2750 deletions

View File

@ -83,7 +83,7 @@ impl ScopeTracker {
// ===== GC root region API (Phase 10.4 prep) =====
/// Enter a new GC root region
pub fn enter_root_region(&mut self) {
if std::env::var("NYASH_GC_TRACE").ok().as_deref() == Some("1") {
if crate::config::env::gc_trace() {
eprintln!("[GC] roots: enter");
}
self.roots.push(Vec::new());
@ -92,7 +92,7 @@ impl ScopeTracker {
/// Leave current GC root region (dropping all pinned values)
pub fn leave_root_region(&mut self) {
if let Some(_) = self.roots.pop() {
if std::env::var("NYASH_GC_TRACE").ok().as_deref() == Some("1") {
if crate::config::env::gc_trace() {
eprintln!("[GC] roots: leave");
}
}
@ -103,7 +103,7 @@ impl ScopeTracker {
pub fn pin_root(&mut self, v: &crate::backend::vm::VMValue) {
if let Some(cur) = self.roots.last_mut() {
cur.push(v.clone());
if std::env::var("NYASH_GC_TRACE").ok().as_deref() == Some("1") {
if crate::config::env::gc_trace() {
eprintln!("[GC] roots: pin {:?}", v);
}
}