Skip to content

Conversation

@zharinov
Copy link
Member

Summary

  • Adds instruction types (Match, MatchView, Call, Return) with bytecode serialization
  • MatchView provides zero-copy access for efficient VM execution
  • Automatic opcode selection (Match8 for simple cases, Match16-64 for extended)
  • Comprehensive roundtrip tests

Test plan

  • All existing tests pass
  • Roundtrip tests for all instruction types
  • MatchView tests for zero-copy access

Add instruction types and serialization:
- Match8/16/24 variants for node type matching
- Call/Return for state machine transitions
- Opcode enum with from_bytes/to_bytes
@zharinov zharinov force-pushed the feat/bytecode-instructions branch from 94fde3c to db4163b Compare December 29, 2025 19:46
@zharinov zharinov merged commit 6e62e95 into master Dec 29, 2025
4 checks passed
@zharinov zharinov deleted the feat/bytecode-instructions branch December 29, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants