| Summary: | RegExp.exec() should do a single pass match-and-gather. | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Andreas Kling <kling> | ||||||||||
| Component: | JavaScriptCore | Assignee: | Andreas Kling <kling> | ||||||||||
| Status: | NEW --- | ||||||||||||
| Severity: | Normal | CC: | barraclough, buildbot, commit-queue, ggaren, rniwa | ||||||||||
| Priority: | P2 | Keywords: | Performance | ||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Andreas Kling
2014-11-11 02:27:57 PST
Created attachment 241346 [details]
Patch
Attachment 241346 [details] did not pass style-queue:
ERROR: Source/JavaScriptCore/runtime/RegExpObject.h:63: The parameter name "exec" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/JavaScriptCore/runtime/RegExpObject.h:63: The parameter name "string" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/JavaScriptCore/runtime/RegExpObject.h:91: The parameter name "exec" adds no information, so it should be removed. [readability/parameter_name] [5]
Total errors found: 3 in 5 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 243314 [details]
Patch
Attachment 243314 [details] did not pass style-queue:
ERROR: Source/JavaScriptCore/runtime/RegExpObject.h:63: The parameter name "exec" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/JavaScriptCore/runtime/RegExpObject.h:63: The parameter name "string" adds no information, so it should be removed. [readability/parameter_name] [5]
ERROR: Source/JavaScriptCore/runtime/RegExpObject.h:91: The parameter name "exec" adds no information, so it should be removed. [readability/parameter_name] [5]
Total errors found: 3 in 5 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Comment on attachment 243314 [details]
Patch
I think you need to performMatch in order to set the named properties on the regexp constructor. If so, and this patch doesn't fail an existing test, you should add one.
Can we meaningfully combine createRegExpMatchesArrayOrNull and createRegExpMatchesArray? Is the only difference just that one might return null?
Comment on attachment 243314 [details] Patch Attachment 243314 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/6001477617188864 New failing tests: js/kde/RegExp.html js/dom/regexp-caching.html Created attachment 243327 [details]
Archive of layout-test-results from ews102 for mac-mountainlion
The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews102 Port: mac-mountainlion Platform: Mac OS X 10.8.5
Comment on attachment 243314 [details] Patch Attachment 243314 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/4841230588444672 New failing tests: js/kde/RegExp.html js/dom/regexp-caching.html Created attachment 243328 [details]
Archive of layout-test-results from ews107 for mac-mountainlion-wk2
The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews107 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.5
|