Index: src/ic/mips/ic-compiler-mips.cc |
diff --git a/src/ic/mips/ic-compiler-mips.cc b/src/ic/mips/ic-compiler-mips.cc |
index 000e3266c4021787d455624dd7ea10dab248f5e0..6169404c61a059f1208feaef1e21ca876fe4db52 100644 |
--- a/src/ic/mips/ic-compiler-mips.cc |
+++ b/src/ic/mips/ic-compiler-mips.cc |
@@ -62,12 +62,13 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, |
// Separate compare from branch, to provide path for above JumpIfSmi(). |
Handle<WeakCell> cell = Map::WeakCellForMap(map); |
__ GetWeakValue(match, cell); |
+ __ Subu(match, match, Operand(map_reg)); |
if (type->Is(HeapType::Number())) { |
DCHECK(!number_case.is_unused()); |
__ bind(&number_case); |
} |
__ Jump(handlers->at(current), RelocInfo::CODE_TARGET, eq, match, |
- Operand(map_reg)); |
+ Operand(zero_reg)); |
} |
} |
DCHECK(number_of_handled_maps != 0); |