| Index: src/interpreter-irregexp.cc
|
| diff --git a/src/interpreter-irregexp.cc b/src/interpreter-irregexp.cc
|
| index a904447f37215bfad8f0bfa67a23c224d4ac788f..c9c3cc4c0eb712837d3cd40893851e3c2751c2e1 100644
|
| --- a/src/interpreter-irregexp.cc
|
| +++ b/src/interpreter-irregexp.cc
|
| @@ -607,6 +607,15 @@ static bool RawMatch(const byte* code_base,
|
| pc = code_base + Load32Aligned(pc + 4);
|
| }
|
| break;
|
| + BYTECODE(SET_CURRENT_POSITION_FROM_END) {
|
| + int by = static_cast<uint32_t>(insn) >> BYTECODE_SHIFT;
|
| + if (subject.length() - current > by) {
|
| + current = subject.length() - by;
|
| + current_char = subject[current - 1];
|
| + }
|
| + pc += BC_SET_CURRENT_POSITION_FROM_END_LENGTH;
|
| + break;
|
| + }
|
| default:
|
| UNREACHABLE();
|
| break;
|
|
|