Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index b070d054f165d30548fb36bfb9f5918dc1ffbf77..11cff1581d91bfa17102e18eadee49cd7a052ae7 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3114,7 +3114,8 @@ void StringHelper::GenerateCopyCharactersREP(MacroAssembler* masm, |
// Copy from edi to esi using rep movs instruction. |
__ movl(kScratchRegister, count); |
- __ shr(count, Immediate(kPointerSizeLog2)); // Number of doublewords to copy. |
+ // Number of doublewords to copy. |
+ __ shrl(count, Immediate(kPointerSizeLog2)); |
__ repmovsp(); |
// Find number of bytes left. |
@@ -5017,7 +5018,7 @@ void InternalArrayConstructorStub::Generate(MacroAssembler* masm) { |
__ movzxbp(rcx, FieldOperand(rcx, Map::kBitField2Offset)); |
// Retrieve elements_kind from bit field 2. |
__ andp(rcx, Immediate(Map::kElementsKindMask)); |
- __ shr(rcx, Immediate(Map::kElementsKindShift)); |
+ __ shrp(rcx, Immediate(Map::kElementsKindShift)); |
if (FLAG_debug_code) { |
Label done; |