Index: src/x64/regexp-macro-assembler-x64.cc |
diff --git a/src/x64/regexp-macro-assembler-x64.cc b/src/x64/regexp-macro-assembler-x64.cc |
index c819c71cb95c56fbf956cc7b8f29aa212034b6db..ce90f339e4be4e7e3e032f9303eb2bd0e1871787 100644 |
--- a/src/x64/regexp-macro-assembler-x64.cc |
+++ b/src/x64/regexp-macro-assembler-x64.cc |
@@ -838,7 +838,7 @@ Handle<HeapObject> RegExpMacroAssemblerX64::GetCode(Handle<String> source) { |
} |
__ addp(rax, rcx); // Convert to index from start, not end. |
if (mode_ == UC16) { |
- __ sar(rax, Immediate(1)); // Convert byte index to character index. |
+ __ sarp(rax, Immediate(1)); // Convert byte index to character index. |
} |
__ movl(Operand(rbx, i * kIntSize), rax); |
} |