Add examples/jit_branch_demo.nyash for Phase 10.7 validation.
This commit is contained in:
18
examples/jit_branch_demo.nyash
Normal file
18
examples/jit_branch_demo.nyash
Normal file
@ -0,0 +1,18 @@
|
||||
// JIT branch wiring demo (10.7)
|
||||
// Enable: NYASH_JIT_EXEC=1 NYASH_JIT_THRESHOLD=1
|
||||
|
||||
static box Main {
|
||||
main() {
|
||||
local a, b
|
||||
a = 3
|
||||
b = 5
|
||||
if (a < b) {
|
||||
print("then")
|
||||
return 1
|
||||
} else {
|
||||
print("else")
|
||||
return 2
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user