Files
hakorune/tools/smoke_phase_10_10.sh
Moe Charm 25fbebd650 docs: AOT/ネイティブコンパイル情報をexecution-backends.mdに追加
- 4つ目の実行方式としてAOT(Ahead-of-Time)コンパイルを文書化
- MIR→WASM→.cwasm のコンパイルパイプラインを説明
- wasm-backend featureでのビルド方法を明記
- 現在の実装状況(完全なスタンドアロン実行ファイルはTODO)を記載
- CLAUDE.mdのWASM説明も3種類(Rust→WASM、Nyash→WASM、Nyash→AOT)に更新
- CURRENT_TASK.mdにPhase 10.9/10.10の完了項目を追加

ChatGPT5さんのAOT試行に対応した適切なドキュメント配置を実施

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-29 02:05:39 +09:00

36 lines
1.2 KiB
Bash

#!/bin/bash
# Phase 10.10 Smoke Test - Minimal verification for key features
# Usage: ./tools/smoke_phase_10_10.sh
set -e
echo "=== Phase 10.10 Smoke Test ==="
echo
# 1. Build with Cranelift
echo "1) Building with Cranelift JIT..."
cargo build --release -j32 --features cranelift-jit 2>&1 | head -5
echo "✓ Build complete"
echo
# 2. HH direct execution (Map.get_hh)
echo "2) Testing HH direct execution..."
NYASH_JIT_EXEC=1 NYASH_JIT_THRESHOLD=1 NYASH_JIT_HOSTCALL=1 NYASH_JIT_EVENTS=1 \
./target/release/nyash --backend vm examples/jit_map_get_param_hh.nyash 2>&1 | head -10 | grep -E "(allow id:|value1|Result:)"
echo "✓ HH execution verified"
echo
# 3. Mutating opt-in (JitPolicyBox)
echo "3) Testing mutating opt-in policy..."
NYASH_JIT_EXEC=1 NYASH_JIT_THRESHOLD=1 NYASH_JIT_HOSTCALL=1 NYASH_JIT_EVENTS=1 \
./target/release/nyash --backend vm examples/jit_policy_optin_mutating.nyash 2>&1 | head -15 | grep -E "(policy_denied_mutating|allow id:|Result:)"
echo "✓ Policy opt-in verified"
echo
# 4. CountingGC demo
echo "4) Testing CountingGC..."
./target/release/nyash --backend vm examples/gc_counting_demo.nyash 2>&1 | head -10 | grep -E "(GC stats:|allocations:|write barriers:)"
echo "✓ CountingGC verified"
echo
echo "=== All smoke tests passed! ==="