Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index f27927de96f3f1cca25e841129a27439d03f4ff8..14ac943fb0f273ea23118aae6df23b16a1e6a068 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -3330,7 +3330,7 @@ void MacroAssembler::CheckMapDeprecated(Handle<Map> map, |
if (map->CanBeDeprecated()) { |
mov(scratch, map); |
mov(scratch, FieldOperand(scratch, Map::kBitField3Offset)); |
- and_(scratch, Immediate(Smi::FromInt(Map::Deprecated::kMask))); |
+ and_(scratch, Immediate(Map::Deprecated::kMask)); |
j(not_zero, if_deprecated); |
} |
} |
@@ -3508,7 +3508,8 @@ void MacroAssembler::EnsureNotWhite( |
void MacroAssembler::EnumLength(Register dst, Register map) { |
STATIC_ASSERT(Map::EnumLengthBits::kShift == 0); |
mov(dst, FieldOperand(map, Map::kBitField3Offset)); |
- and_(dst, Immediate(Smi::FromInt(Map::EnumLengthBits::kMask))); |
+ and_(dst, Immediate(Map::EnumLengthBits::kMask)); |
+ SmiTag(dst); |
} |