diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-19 14:38:36 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2020-01-19 14:44:48 +0100 |
commit | ea51616e31da82241c707407edbb82c20f84d319 (patch) | |
tree | ac4de72c0c983cfd712911f295837aed87487006 /js/src/irregexp/RegExpMacroAssembler.cpp | |
parent | 35dc8e5abb3a9f8cbbab4da5e57754b37dd54d59 (diff) | |
download | UXP-ea51616e31da82241c707407edbb82c20f84d319.tar UXP-ea51616e31da82241c707407edbb82c20f84d319.tar.gz UXP-ea51616e31da82241c707407edbb82c20f84d319.tar.lz UXP-ea51616e31da82241c707407edbb82c20f84d319.tar.xz UXP-ea51616e31da82241c707407edbb82c20f84d319.zip |
Issue #1362 - Revert "Implement regular expression lookbehind"
This reverts commit fa473930f424bf17a9e545b601c84dd2e61364e3.
Diffstat (limited to 'js/src/irregexp/RegExpMacroAssembler.cpp')
-rw-r--r-- | js/src/irregexp/RegExpMacroAssembler.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/js/src/irregexp/RegExpMacroAssembler.cpp b/js/src/irregexp/RegExpMacroAssembler.cpp index 6b1ceba8a..d66d0d204 100644 --- a/js/src/irregexp/RegExpMacroAssembler.cpp +++ b/js/src/irregexp/RegExpMacroAssembler.cpp @@ -226,37 +226,32 @@ InterpretedRegExpMacroAssembler::CheckGreedyLoop(jit::Label* on_tos_equals_curre } void -InterpretedRegExpMacroAssembler::CheckNotAtStart(int cp_offset, jit::Label* on_not_at_start) +InterpretedRegExpMacroAssembler::CheckNotAtStart(jit::Label* on_not_at_start) { - Emit(BC_CHECK_NOT_AT_START, cp_offset); + Emit(BC_CHECK_NOT_AT_START, 0); EmitOrLink(on_not_at_start); } void -InterpretedRegExpMacroAssembler::CheckNotBackReference(int start_reg, bool read_backward, - jit::Label* on_no_match) +InterpretedRegExpMacroAssembler::CheckNotBackReference(int start_reg, jit::Label* on_no_match) { MOZ_ASSERT(start_reg >= 0); MOZ_ASSERT(start_reg <= kMaxRegister); - Emit(read_backward ? BC_CHECK_NOT_BACK_REF_BACKWARD : BC_CHECK_NOT_BACK_REF, - start_reg); + Emit(BC_CHECK_NOT_BACK_REF, start_reg); EmitOrLink(on_no_match); } void InterpretedRegExpMacroAssembler::CheckNotBackReferenceIgnoreCase(int start_reg, - bool read_backward, jit::Label* on_no_match, bool unicode) { MOZ_ASSERT(start_reg >= 0); MOZ_ASSERT(start_reg <= kMaxRegister); if (unicode) - Emit(read_backward ? BC_CHECK_NOT_BACK_REF_NO_CASE_BACKWARD_UNICODE : BC_CHECK_NOT_BACK_REF_NO_CASE_UNICODE, - start_reg); + Emit(BC_CHECK_NOT_BACK_REF_NO_CASE_UNICODE, start_reg); else - Emit(read_backward ? BC_CHECK_NOT_BACK_REF_NO_CASE_BACKWARD : BC_CHECK_NOT_BACK_REF_NO_CASE, - start_reg); + Emit(BC_CHECK_NOT_BACK_REF_NO_CASE, start_reg); EmitOrLink(on_no_match); } |