- InvokePolicy/Observe導入でLowererの分岐をスリム化 - ArrayBox/MapBox/StringBoxのプラグイン経路統一 - 特殊コメント機能(@jit-debug, @plugin-builtins, @jit-strict)実装 - 型ヒント伝搬パス(TypeHintPass)を独立モジュール化 - VM→Plugin引数整合の安定化(I64統一、IntegerBox自動プリミティブ化) - StringBoxのpost-birth初期化(空文字列セグフォルト修正) - JIT観測サンプル追加(Array/Map/String) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
20 lines
336 B
Plaintext
20 lines
336 B
Plaintext
// @jit-debug
|
|
// @plugin-builtins
|
|
|
|
// MapBox end-to-end via InvokePolicy/Observe
|
|
// - Exercises: size/get/has/set on plugin-builtins path
|
|
|
|
static box Main {
|
|
main() {
|
|
local m, ok, v, sz
|
|
m = new MapBox()
|
|
m.set(1, 100)
|
|
m.set(2, 200)
|
|
ok = m.has(1)
|
|
v = m.get(1)
|
|
sz = m.size()
|
|
return sz // expect: 2
|
|
}
|
|
}
|
|
|