Commit 466ed3a3 authored by balazs.kilvady's avatar balazs.kilvady Committed by Commit bot

MIPS: Fix 'MIPS: Fix after 'Reland remaining parts of 'Use weak cells in map...

MIPS: Fix 'MIPS: Fix after 'Reland remaining parts of 'Use weak cells in map checks in polymorphic ICs''.'

Fix 30f2578c

BUG=

Review URL: https://codereview.chromium.org/846423002

Cr-Commit-Position: refs/heads/master@{#26064}
parent 3244a665
...@@ -62,12 +62,13 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, ...@@ -62,12 +62,13 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types,
// Separate compare from branch, to provide path for above JumpIfSmi(). // Separate compare from branch, to provide path for above JumpIfSmi().
Handle<WeakCell> cell = Map::WeakCellForMap(map); Handle<WeakCell> cell = Map::WeakCellForMap(map);
__ GetWeakValue(match, cell); __ GetWeakValue(match, cell);
__ Subu(match, match, Operand(map_reg));
if (type->Is(HeapType::Number())) { if (type->Is(HeapType::Number())) {
DCHECK(!number_case.is_unused()); DCHECK(!number_case.is_unused());
__ bind(&number_case); __ bind(&number_case);
} }
__ Jump(handlers->at(current), RelocInfo::CODE_TARGET, eq, match, __ Jump(handlers->at(current), RelocInfo::CODE_TARGET, eq, match,
Operand(map_reg)); Operand(zero_reg));
} }
} }
DCHECK(number_of_handled_maps != 0); DCHECK(number_of_handled_maps != 0);
......
...@@ -62,12 +62,13 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types, ...@@ -62,12 +62,13 @@ Handle<Code> PropertyICCompiler::CompilePolymorphic(TypeHandleList* types,
// Separate compare from branch, to provide path for above JumpIfSmi(). // Separate compare from branch, to provide path for above JumpIfSmi().
Handle<WeakCell> cell = Map::WeakCellForMap(map); Handle<WeakCell> cell = Map::WeakCellForMap(map);
__ GetWeakValue(match, cell); __ GetWeakValue(match, cell);
__ Dsubu(match, match, Operand(map_reg));
if (type->Is(HeapType::Number())) { if (type->Is(HeapType::Number())) {
DCHECK(!number_case.is_unused()); DCHECK(!number_case.is_unused());
__ bind(&number_case); __ bind(&number_case);
} }
__ Jump(handlers->at(current), RelocInfo::CODE_TARGET, eq, match, __ Jump(handlers->at(current), RelocInfo::CODE_TARGET, eq, match,
Operand(map_reg)); Operand(zero_reg));
} }
} }
DCHECK(number_of_handled_maps != 0); DCHECK(number_of_handled_maps != 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment