WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
188895
YARR: Need to JIT compile a RegExp before using containsNestedSubpatterns flag
https://bugs.webkit.org/show_bug.cgi?id=188895
Summary
YARR: Need to JIT compile a RegExp before using containsNestedSubpatterns flag
Michael Saboff
Reported
2018-08-23 11:33:35 PDT
There is a slight bug in the RegExp JIT code where we use the m_containsNestedSubpatterns before the JIT compilation has set it. The result is that this limits somewhat the regexps that can take advantage of JIT'ed greedy sub patterns.
Attachments
Patch
(1.71 KB, patch)
2018-08-23 11:58 PDT
,
Michael Saboff
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Michael Saboff
Comment 1
2018-08-23 11:58:39 PDT
Created
attachment 347944
[details]
Patch
Mark Lam
Comment 2
2018-08-23 12:05:15 PDT
Comment on
attachment 347944
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=347944&action=review
r=me
> Source/JavaScriptCore/yarr/YarrJIT.cpp:3565 > + codeBlock.setUsesPaternContextBuffer();
nit: "Patern" looks mis-spelled. Maybe fix in a follow up patch since it's not related to this issue.
Michael Saboff
Comment 3
2018-08-23 12:16:22 PDT
Comment on
attachment 347944
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=347944&action=review
>> Source/JavaScriptCore/yarr/YarrJIT.cpp:3565 >> + codeBlock.setUsesPaternContextBuffer(); > > nit: "Patern" looks mis-spelled. Maybe fix in a follow up patch since it's not related to this issue.
I fixed that in the patch I'm working on. I can factor that out if you like.
Mark Lam
Comment 4
2018-08-23 12:42:52 PDT
(In reply to Michael Saboff from
comment #3
)
> Comment on
attachment 347944
[details]
> Patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=347944&action=review
> > >> Source/JavaScriptCore/yarr/YarrJIT.cpp:3565 > >> + codeBlock.setUsesPaternContextBuffer(); > > > > nit: "Patern" looks mis-spelled. Maybe fix in a follow up patch since it's not related to this issue. > > I fixed that in the patch I'm working on. I can factor that out if you like.
Either works for me.
WebKit Commit Bot
Comment 5
2018-08-23 12:57:52 PDT
Comment on
attachment 347944
[details]
Patch Clearing flags on attachment: 347944 Committed
r235238
: <
https://trac.webkit.org/changeset/235238
>
WebKit Commit Bot
Comment 6
2018-08-23 12:57:53 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 7
2018-08-23 12:58:18 PDT
<
rdar://problem/43654564
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug