Index: src/arm/macro-assembler-arm.cc |
diff --git a/src/arm/macro-assembler-arm.cc b/src/arm/macro-assembler-arm.cc |
index d1bbe7e3424de220499b2fc01e922788dc48b4b8..5b649e3fb423459a19add214af9444b7e50734f8 100644 |
--- a/src/arm/macro-assembler-arm.cc |
+++ b/src/arm/macro-assembler-arm.cc |
@@ -2439,10 +2439,7 @@ void MacroAssembler::IndexFromHash(Register hash, Register index) { |
// conflict. |
ASSERT(TenToThe(String::kMaxCachedArrayIndexLength) < |
(1 << String::kArrayIndexValueBits)); |
- // We want the smi-tagged index in key. kArrayIndexValueMask has zeros in |
- // the low kHashShift bits. |
- Ubfx(hash, hash, String::kHashShift, String::kArrayIndexValueBits); |
- SmiTag(index, hash); |
+ DecodeFieldToSmi<String::ArrayIndexValueBits>(index, hash); |
} |