summaryrefslogtreecommitdiff
path: root/js/src/vm/RegExpObject.h
Commit message (Collapse)AuthorAge
* Issue #2342: Use [[nodiscard]] in /jsMoonchild2023-11-08
|
* Issue #2172 - add missing RegExpShared TraceKind declarationMartok2023-08-08
|
* Issue #2148 - Discard RegExpShared data tables when discarding regexp JIT code.Job Bautista2023-03-15
| | | | | | Based on Mozilla bug 1378736's part 2. Should fix the double-free. Follow-up for #2083
* Issue #2148 - Don't null out RegExpObject -> RegExpShared pointer on GC.Job Bautista2023-03-15
| | | | | Follow-up for issue #2083. Taken from Mozilla bug 1378736.
* Issue #2083 - Follow-up: RegExpShared::source should be a GCPtr.Job Bautista2023-01-28
| | | | A hangover from before RegExpShared was a GC thing, as noted by m-c 1399928.
* Revert "Issue #1382 - RegExpShared::groupsTemplate_ cannot be a GCPtr since ↵Job Bautista2023-01-26
| | | | | | | RegExpShared is managed by C++" This workaround has been obsoleted by the work on Issue #2083. This reverts commit bbd743608685ec77ebebe480761118db8a988253.
* Issue #2083 - Part 5: Fix memory leak in RegExpObject.Job Bautista2023-01-26
| | | | Based on Mozilla bug 1345177.
* Issue #2083 - Part 4: Give RegExpShared a finalizer.Job Bautista2023-01-26
| | | | Based on Mozilla bug 1345177.
* Issue #2083 - Part 3: Fix RegExpShared rooting hazards now it's a GC thing.Job Bautista2023-01-26
| | | | | | | | | | | Based on Mozilla bug 1345177. Changes from the original bug's patch: - The original patch didn't have a dotAll for a call to irregexp::ParsePattern, so let's make our dotAll a member of the MutableHandleRegExpShared re. - Make RegExpShared::initializeNamedCaptures, introduced in Issue #1285, static. This resolves a build bustage where static RegExpShared::compile was trying to use a member function.
* Issue #2083 - Part 2: Remove use of RegExpGuard.Job Bautista2023-01-26
| | | | | | Based on Mozilla bug 1345177. There were more uses of RegExpGuard in js/src/builtin/RegExp.cpp not found in the original bug's patch.
* Issue #2083 - Part 1: Make RegExpShared a GC thing.Job Bautista2023-01-26
| | | | | | | | | | Based on Mozilla bug 1345177. Changes from the original bug's patch: - We don't have JS::CurrentThreadIsHeapCollecting, so let's use trc->runtime()->isHeapCollecting() instead. - Mozilla bug 1337117 renamed runtimeFromMainThread to runtimeFromActiveCooperatingThread for Firefox 54, so let's use the former
* Issue #1382 - RegExpShared::groupsTemplate_ cannot be a GCPtr since ↵Martok2023-01-04
| | | | RegExpShared is managed by C++
* Issue #1285 - implement named capturing groups and named backrefsMartok2022-12-21
| | | | | | | | | | | | | | - RegExpParser collects seen groups in named_captures_. - After irregexp::ParsePattern has finished, RegExpParser::StoreNamedCaptureMap translates the parser data to RegExpCompileData.capture_name/index - RegExpShared::initializeNamedCaptures takes these and builds a PlainObject map which is kept with the compiled expression This is done because irregexp doesn't have access to the JS context and so can't allocate any JSValues itself. - for each match result, this map is used to build PlainObjects of name->match/undefined (extremely simplified from upstream at the expense of some perf) IonMonkey switches to non-masm code path for expressions with named groups.
* Issue #2008 - Implement missing s parameter parsing and align case with spec.Moonchild2022-09-18
| | | | | | | | | | This does 2 things. First, it adds parsing of the 's' parameter parsing to DOM object construction of regexes Second, it corrects the DOM property to be `dotAll` instead of `dotall` For consistency's sake, all function names and calls were renamed with the finalized casing. This resolves #2008
* Issue #1656 - Part 7: Nuke vim config lines in JSMoonchild2020-09-24
|
* Issue #1284 - Implement /s (dotAll) for regular expressions, v2.wolfbeast2019-11-18
| | | | Resolves #1284.
* Revert "Issue #1284 - Implement /s (dotAll) for regular expressions."wolfbeast2019-11-18
| | | | This reverts commit f31b04a303607cd82757e7c4f60bb536658c8a30.
* Issue #1284 - Implement /s (dotAll) for regular expressions.wolfbeast2019-11-18
| | | | Resolves #1284.
* 1320408 - Part 23: Change ↵Gaming4JC2019-07-18
| | | | RegExpObject::{getShared,createShared,dumpBytecode} to static method.
* Use ordinary object for RegExp prototypejanekptacijarabaci2018-03-19
| | | | Issue #77
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02