Index: src/ic/mips64/ic-compiler-mips64.cc |
diff --git a/src/ic/mips64/ic-compiler-mips64.cc b/src/ic/mips64/ic-compiler-mips64.cc |
index 1e1880f88d5b584a5be5da653312f6f327c59f2e..7ed4492ee318fa75c7b6f361dae61ebbf85d6aa9 100644 |
--- a/src/ic/mips64/ic-compiler-mips64.cc |
+++ b/src/ic/mips64/ic-compiler-mips64.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); |
+ __ Dsubu(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); |