diff options
author | Martok <martok@martoks-place.de> | 2022-12-21 18:53:27 +0100 |
---|---|---|
committer | Martok <martok@martoks-place.de> | 2022-12-21 18:53:27 +0100 |
commit | b356d64f4e69af8cf1f2eaf87d1f328bdd24127e (patch) | |
tree | f2d5df6d2bc16818cc71283363d54f56af80da39 /mozilla-config.h.in | |
parent | 9a0807a62c96d72387b218d840eb6bb8afb5916d (diff) | |
download | uxp-b356d64f4e69af8cf1f2eaf87d1f328bdd24127e.tar.gz |
Issue #1285 - implement named capturing groups and named backrefs
- 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.
Diffstat (limited to 'mozilla-config.h.in')
0 files changed, 0 insertions, 0 deletions