forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RegExpBuiltinExec should create "groups" property unconditionally
https://bugs.webkit.org/show_bug.cgi?id=204067 Patch by Alexey Shvayka <[email protected]> on 2019-11-12 Reviewed by Ross Kirsling. JSTests: * test262/expectations.yaml: Mark 4 test cases as passing. Source/JavaScriptCore: After RegExp named capture groups were initially implemented in JSC, the spec was changed to unconditionally create "groups" property. (tc39/proposal-regexp-named-groups#34) This patch implements the change (that was shipped by V8), reducing number of structures we use for RegExpMatchesArray, and also sets [[Prototype]] of "groups" object to `null`. (step 24 of https://tc39.es/ecma262/#sec-regexpbuiltinexec) * dfg/DFGAbstractInterpreterInlines.h: (JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects): * dfg/DFGStrengthReductionPhase.cpp: (JSC::DFG::StrengthReductionPhase::handleNode): * runtime/JSGlobalObject.cpp: (JSC::JSGlobalObject::init): (JSC::JSGlobalObject::fireWatchpointAndMakeAllArrayStructuresSlowPut): (JSC::JSGlobalObject::visitChildren): * runtime/JSGlobalObject.h: (JSC::JSGlobalObject::regExpMatchesArrayStructure const): (JSC::JSGlobalObject::regExpMatchesArrayWithGroupsStructure const): Deleted. * runtime/RegExpMatchesArray.cpp: (JSC::createStructureImpl): (JSC::createRegExpMatchesArrayWithGroupsStructure): Deleted. (JSC::createRegExpMatchesArrayWithGroupsSlowPutStructure): Deleted. * runtime/RegExpMatchesArray.h: (JSC::createRegExpMatchesArray): * runtime/StringPrototype.cpp: (JSC::replaceUsingRegExpSearch): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@252374 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
ea57b5f
commit f78337d
Showing
10 changed files
with
55 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
2019-11-12 Alexey Shvayka <[email protected]> | ||
|
||
RegExpBuiltinExec should create "groups" property unconditionally | ||
https://bugs.webkit.org/show_bug.cgi?id=204067 | ||
|
||
Reviewed by Ross Kirsling. | ||
|
||
* test262/expectations.yaml: Mark 4 test cases as passing. | ||
|
||
2019-11-11 Ross Kirsling <[email protected]> | ||
|
||
UTC offset for Samoa is miscalculated when !HAVE(TIMEGM) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,38 @@ | ||
2019-11-12 Alexey Shvayka <[email protected]> | ||
|
||
RegExpBuiltinExec should create "groups" property unconditionally | ||
https://bugs.webkit.org/show_bug.cgi?id=204067 | ||
|
||
Reviewed by Ross Kirsling. | ||
|
||
After RegExp named capture groups were initially implemented in JSC, the spec was changed | ||
to unconditionally create "groups" property. | ||
(https://github.com/tc39/proposal-regexp-named-groups/issues/34) | ||
|
||
This patch implements the change (that was shipped by V8), reducing number of structures | ||
we use for RegExpMatchesArray, and also sets [[Prototype]] of "groups" object to `null`. | ||
(step 24 of https://tc39.es/ecma262/#sec-regexpbuiltinexec) | ||
|
||
* dfg/DFGAbstractInterpreterInlines.h: | ||
(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects): | ||
* dfg/DFGStrengthReductionPhase.cpp: | ||
(JSC::DFG::StrengthReductionPhase::handleNode): | ||
* runtime/JSGlobalObject.cpp: | ||
(JSC::JSGlobalObject::init): | ||
(JSC::JSGlobalObject::fireWatchpointAndMakeAllArrayStructuresSlowPut): | ||
(JSC::JSGlobalObject::visitChildren): | ||
* runtime/JSGlobalObject.h: | ||
(JSC::JSGlobalObject::regExpMatchesArrayStructure const): | ||
(JSC::JSGlobalObject::regExpMatchesArrayWithGroupsStructure const): Deleted. | ||
* runtime/RegExpMatchesArray.cpp: | ||
(JSC::createStructureImpl): | ||
(JSC::createRegExpMatchesArrayWithGroupsStructure): Deleted. | ||
(JSC::createRegExpMatchesArrayWithGroupsSlowPutStructure): Deleted. | ||
* runtime/RegExpMatchesArray.h: | ||
(JSC::createRegExpMatchesArray): | ||
* runtime/StringPrototype.cpp: | ||
(JSC::replaceUsingRegExpSearch): | ||
|
||
2019-11-11 Yusuke Suzuki <[email protected]> | ||
|
||
Unreviewed, fix incorrect assertion | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters