Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 0af12fe0993864e1496131de0577466baab58637..e1a86ed0c0af502c5dbe2667864e39f8a9d01399 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -5236,7 +5236,7 @@ void MacroAssembler::CheckMapDeprecated(Handle<Map> map, |
if (map->CanBeDeprecated()) { |
li(scratch, Operand(map)); |
lw(scratch, FieldMemOperand(scratch, Map::kBitField3Offset)); |
- And(scratch, scratch, Operand(Smi::FromInt(Map::Deprecated::kMask))); |
+ And(scratch, scratch, Operand(Map::Deprecated::kMask)); |
Branch(if_deprecated, ne, scratch, Operand(zero_reg)); |
} |
} |
@@ -5493,7 +5493,8 @@ void MacroAssembler::NumberOfOwnDescriptors(Register dst, Register map) { |
void MacroAssembler::EnumLength(Register dst, Register map) { |
STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); |
lw(dst, FieldMemOperand(map, Map::kBitField3Offset)); |
- And(dst, dst, Operand(Smi::FromInt(Map::EnumLengthBits::kMask))); |
+ And(dst, dst, Operand(Map::EnumLengthBits::kMask)); |
+ SmiTag(dst); |
} |