Skip to content

feat: add bytecode instruction decoding#171

Merged
zharinov merged 1 commit intomasterfrom
feat/bytecode-instructions
Dec 29, 2025
Merged

feat: add bytecode instruction decoding#171
zharinov merged 1 commit intomasterfrom
feat/bytecode-instructions

Conversation

@zharinov
Copy link
Copy Markdown
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.

1 participant