Index: src/ia32/codegen-ia32.cc |
diff --git a/src/ia32/codegen-ia32.cc b/src/ia32/codegen-ia32.cc |
index 6ab04644cad023d53d744a44309ccf792e5f1334..ba7785b2d093253fe5410be77a25d9a45b0b1f2c 100644 |
--- a/src/ia32/codegen-ia32.cc |
+++ b/src/ia32/codegen-ia32.cc |
@@ -7594,9 +7594,7 @@ void CodeGenerator::GenerateIsRegExpEquivalent(ZoneList<Expression*>* args) { |
__ and_(Operand(tmp), right); |
__ test(Operand(tmp), Immediate(kSmiTagMask)); |
destination()->false_target()->Branch(equal); |
- __ mov(tmp, FieldOperand(left, HeapObject::kMapOffset)); |
- __ cmpb(FieldOperand(tmp, Map::kInstanceTypeOffset), |
- static_cast<int8_t>(JS_REGEXP_TYPE)); |
+ __ CmpObjectType(left, JS_REGEXP_TYPE, tmp); |
destination()->false_target()->Branch(not_equal); |
__ cmp(tmp, FieldOperand(right, HeapObject::kMapOffset)); |
destination()->false_target()->Branch(not_equal); |