Files
hakorune/examples/jit_map_policy_demo.nyash
Moe Charm 1eee62a8ea feat(jit): JIT Strictモード実装とプラグイン経路の安定化
- 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>
2025-08-29 21:39:47 +09:00

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
}
}