Phase 25.1a: selfhost builder hotfix (fn rename, docs)

This commit is contained in:
nyash-codex
2025-11-15 05:42:32 +09:00
parent 8d9bbc40bd
commit 6856922374
40 changed files with 2013 additions and 72 deletions

View File

@ -51,7 +51,8 @@ impl MirInterpreter {
loop {
steps += 1;
if steps > max_steps {
// max_steps == 0 は「上限なし」を意味する(開発/診断専用)。
if max_steps > 0 && steps > max_steps {
return Err(VMError::InvalidInstruction(format!(
"vm step budget exceeded (max_steps={})",
max_steps