Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support scan_substring in jit #447

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

zherczeg
Copy link
Collaborator

The first patch for jit support.

Notes:

  • I have noticed that repeats are not supported for scan_substring assertions. This should work like other repeated assertions, so '*' is replaced by ?. I hope I fixed it in the compiler, and added tests for it. Idea: maybe a byte-code dump should be added for them, to check the generated code.

  • The subject start is not affected by scan_substring, so it is possible to use a lookbehind assertion to check the characters before the start. We should mention this is the documentation. It also revealed that I forgot to add the opcode to check_lookbehinds(). I am sure there are similar cases elsewhere :(

  • I am sure I need to fix control verb related issues. I will do that in other patches.

@zherczeg zherczeg force-pushed the scan_substring_jit branch 2 times, most recently from 213764e to 4ccbfe2 Compare August 28, 2024 11:20
@zherczeg
Copy link
Collaborator Author

I have added tests for repetition

@zherczeg zherczeg force-pushed the scan_substring_jit branch from 4ccbfe2 to bcc72d7 Compare August 28, 2024 11:28
@PhilipHazel PhilipHazel merged commit 3d09ed3 into PCRE2Project:master Aug 28, 2024
11 checks passed
@zherczeg zherczeg deleted the scan_substring_jit branch August 28, 2024 13:48
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