Skip to content
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
b0c3aed
Add ControlFlowType enum, ControlFlowMarker class, and RuntimeControl…
fglock Nov 6, 2025
e7b78e9
Modify EmitControlFlow to return marked RuntimeList for non-local con…
fglock Nov 6, 2025
48d5cd5
Add control flow check infrastructure (disabled) - WIP Phase 3
fglock Nov 6, 2025
10f631b
Phase 2 complete: Non-local control flow via tagged returns (99.8%)
fglock Nov 6, 2025
937c0b3
Fix plan: Skip Phase 3 (call-site checks), renumber to make straightf…
fglock Nov 6, 2025
86daaee
Phase 3 partial: Add TAILCALL trampoline at returnLabel (99.8% mainta…
fglock Nov 6, 2025
c03f76f
Phase 3: Tail call trampoline working, call-site checks deferred
fglock Nov 6, 2025
28f39a0
feat: Add feature flags and Phase 3 loop handler infrastructure
fglock Nov 6, 2025
0d1cccb
feat: Implement Phase 4 (Top-Level Safety)
fglock Nov 6, 2025
4a8a369
feat: Propagate isMainProgram flag to code generation
fglock Nov 6, 2025
1f5bc8b
feat: Add source location tracking to control flow markers
fglock Nov 6, 2025
5544bbc
feat: Pass source location to RuntimeControlFlowList
fglock Nov 6, 2025
065bc87
docs: Streamline design doc to action-oriented plan
fglock Nov 6, 2025
c4db263
feat: Dynamic slot allocation for control flow temp storage
fglock Nov 6, 2025
a183087
docs: Update plan with ASM frame computation findings
fglock Nov 6, 2025
e8c5a85
docs: Add critical decision document for control flow architecture
fglock Nov 6, 2025
e3bcbad
docs: Document existing SKIP workarounds to be removed
fglock Nov 6, 2025
b9ec4d0
fix: Remove top-level safety check - restored 99.8% pass rate
fglock Nov 6, 2025
0405780
docs: Update plan - Phases 5 & 6 complete (99.9% pass rate)
fglock Nov 6, 2025
c5c895d
test: Add comprehensive control flow unit tests
fglock Nov 6, 2025
fe226a3
Fix goto __SUB__ tail call by detecting it in handleGotoLabel
fglock Nov 6, 2025
326a856
Update MILESTONES.md: goto __SUB__ is now working
fglock Nov 6, 2025
bb0e5fe
Update design document: Phase 7 (Tail Call Trampoline) COMPLETE
fglock Nov 6, 2025
8c674dd
Add comprehensive comments explaining disabled features and next steps
fglock Nov 6, 2025
d5477dd
Update MILESTONES.md: Mark Phase 7 (Non-local control flow) as COMPLETE
fglock Nov 6, 2025
84084ac
Update FEATURE_MATRIX.md: Add tail call features, simplify control fl…
fglock Nov 6, 2025
055630b
docs
fglock Nov 6, 2025
cb28263
fix: Prevent RuntimeControlFlowList from being corrupted as data
fglock Nov 6, 2025
7cc0bf1
docs: Document RuntimeControlFlowList data corruption fix
fglock Nov 6, 2025
2d03783
docs: Comprehensive analysis of ASM frame computation blocker
fglock Nov 6, 2025
ee4cb82
feat: Implement runtime control flow registry for 'last SKIP' support
fglock Nov 6, 2025
b2e23ef
docs: Add comprehensive documentation for control flow registry solution
fglock Nov 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update FEATURE_MATRIX.md: Add tail call features, simplify control fl…
…ow section

Updated lines 381-386:
- Added: goto &name with tail call optimization
- Added: goto __SUB__ recursive tail call
- Simplified: Combined redundant lines about non-local goto
- Removed outdated note from 'Features Incompatible with JVM' section

Matches the concise style of the file.
  • Loading branch information
fglock committed Nov 6, 2025
commit 84084ac83a56123a51273707a15c372d897f4d45
8 changes: 3 additions & 5 deletions docs/FEATURE_MATRIX.md
Original file line number Diff line number Diff line change
Expand Up @@ -379,12 +379,11 @@ my @copy = @{$z}; # ERROR
- ✅ **`for` loop variable**: Iterate over multiple values at a time is implemented.
- ✅ **`for` loop variable**: You can use fully qualified global variables as the variable in a for loop.
- ✅ **loop control operators**: `next`, `last`, `redo` with labels are implemented.
- ❌ **loop control operators**: `next`, `last`, `redo` with expression are not implemented.
- ❌ **loop control operators**: `next`, `last`, `redo` going to a different place in the call stack are not implemented. Label searching in the call stack is missing.
- ✅ **`goto &name`**: `goto &name` is implemented. It is not a tail-call.
- ✅ **`goto` operator**: `goto LABEL` is implemented.
- ✅ **`goto &name`**: Tail call optimization with trampoline is implemented.
- ✅ **`goto __SUB__`**: Recursive tail call is implemented.
- ❌ **loop control operators**: `next`, `last`, `redo` with EXPR are not implemented.
- ❌ **`goto` operator**: `goto EXPR` is not implemented.
- ❌ **`goto` operator**: Non local `goto` (going to a different place in the call stack) is not implemented. Label searching in the call stack is missing.
- ✅ **setting `$_` in `while` loop with `<>`**: automatic setting `$_` in `while` loops is implemented.
- ✅ **`do BLOCK while`**: `do` executes once before the conditional is evaluated.
- ✅ **`...` ellipsis statement**: `...` is supported.
Expand Down Expand Up @@ -668,7 +667,6 @@ The DBI module provides seamless integration with JDBC drivers:
- ❌ **Perl `XS` code**: XS code interfacing with C is not supported on the JVM.
- ❌ **Auto-close files**: File auto-close depends on handling of object destruction, may be incompatible with JVM garbage collection. All files are closed before the program ends.
- ❌ **Keywords related to the control flow of the Perl program**: `dump` operator.
- ❌ **Tail calls**: `goto` going to a different subroutine as a tail call is not supported.


## Language Differences and Workarounds
Expand Down