diff options
Diffstat (limited to 'src/qml/jsruntime/qv4regexp.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4regexp.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4regexp.cpp b/src/qml/jsruntime/qv4regexp.cpp index e562482395..6963400a08 100644 --- a/src/qml/jsruntime/qv4regexp.cpp +++ b/src/qml/jsruntime/qv4regexp.cpp @@ -63,9 +63,15 @@ uint RegExp::match(const QString &string, int start, uint *matchOffsets) WTF::String s(string); #if ENABLE(YARR_JIT) - if (d()->hasValidJITCode()) + if (d()->hasValidJITCode()) { +#if ENABLE(YARR_JIT_ALL_PARENS_EXPRESSIONS) + char buffer[8192]; + return uint(jitCode()->execute(s.characters16(), start, s.length(), (int*)matchOffsets, buffer, 8192).start); +#else return uint(jitCode()->execute(s.characters16(), start, s.length(), (int*)matchOffsets).start); #endif + } +#endif return JSC::Yarr::interpret(byteCode(), s.characters16(), string.length(), start, matchOffsets); } |