Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index a63288f2cb59ee4df39109fff6e69e3384ebbfb2..b8f9759a8450e87266a0d164351daef0629db7e3 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -4895,8 +4895,7 @@ void InternalArrayConstructorStub::Generate(MacroAssembler* masm) { |
// but the following masking takes care of that anyway. |
__ movzxbp(rcx, FieldOperand(rcx, Map::kBitField2Offset)); |
// Retrieve elements_kind from bit field 2. |
- __ andp(rcx, Immediate(Map::kElementsKindMask)); |
- __ shrp(rcx, Immediate(Map::kElementsKindShift)); |
+ __ DecodeField<Map::ElementsKindBits>(rcx); |
if (FLAG_debug_code) { |
Label done; |