Commit 33a79d2
committed
refactor(core): simplify JIT module by removing unused execution modes
Remove tree-walking interpreter and bytecode VM executor, keeping only:
- JIT mode (fnJIT): compiles to JavaScript via new Function()
- Exec mode (fnExec): closure-based execution (renamed from fnExecClosure)
Removed:
- fnExecTreeWalk, fnExecBytecode functions
- ContinueStmt, BreakStmt interfaces (unused)
- ~1200 lines of interpreter/VM code
- exec-modes.ts benchmark (compared removed modes)
The closure-based executor provides good performance for CSP-compliant
environments where new Function() is blocked, while being simpler to
maintain than the tree-walking interpreter or bytecode VM.1 parent 1c4a352 commit 33a79d2
2 files changed
Lines changed: 2 additions & 1420 deletions
This file was deleted.
0 commit comments