Phase 9.77 WASM Emergency Recovery Progress: - ✅ Task 1.1: Implement BoxCall instruction for toString(), print(), equals(), clone(), log() - ✅ Task 1.2: Update wasmtime 18.0 → 35.0.0 and add runtime imports - 🔄 Task 1.3: Working on UTF-8 encoding error fix Changes: - Add generate_box_call() method in codegen.rs with 5 helper methods - Update wasmtime dependency to 35.0.0 for AOT compatibility - Add BoxCall runtime imports (box_to_string, box_print, box_equals, box_clone) - Implement wat_to_wasm() with UTF-8 validation and debug output - Update CURRENT_TASK.md with Copilot handoff notes Current issue: 'Generated WASM is not valid UTF-8' error source unknown Next: Copilot to investigate error origin and complete Task 1.3 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
415 B
Plaintext
17 lines
415 B
Plaintext
// 🧪 MIR → WASM変換テスト(最小版)
|
||
// メソッド呼び出しを避けて基本演算のみテスト
|
||
|
||
static box Main {
|
||
init { result }
|
||
|
||
main() {
|
||
// 基本演算のみ(メソッド呼び出しなし)
|
||
local a = 10
|
||
local b = 20
|
||
local sum = a + b
|
||
local product = sum * 3
|
||
|
||
me.result = product
|
||
return "計算完了"
|
||
}
|
||
} |