| Index: src/ic/mips64/handler-compiler-mips64.cc
|
| diff --git a/src/ic/mips64/handler-compiler-mips64.cc b/src/ic/mips64/handler-compiler-mips64.cc
|
| index 9d63460154ec76c4c169b37f09b9e506fa75f889..6a35d6c17475ba66d4a0a7579e241f1e220208ee 100644
|
| --- a/src/ic/mips64/handler-compiler-mips64.cc
|
| +++ b/src/ic/mips64/handler-compiler-mips64.cc
|
| @@ -420,8 +420,8 @@ Register PropertyHandlerCompiler::CheckPrototypes(
|
| __ ld(map_reg, FieldMemOperand(reg, HeapObject::kMapOffset));
|
| if (depth != 1 || check == CHECK_ALL_MAPS) {
|
| Handle<WeakCell> cell = Map::WeakCellForMap(current_map);
|
| - __ CmpWeakValue(scratch2, map_reg, cell);
|
| - __ Branch(miss, ne, scratch2, Operand(zero_reg));
|
| + __ GetWeakValue(scratch2, cell);
|
| + __ Branch(miss, ne, scratch2, Operand(map_reg));
|
| }
|
|
|
| // Check access rights to the global object. This has to happen after
|
| @@ -454,8 +454,8 @@ Register PropertyHandlerCompiler::CheckPrototypes(
|
| // Check the holder map.
|
| __ ld(scratch1, FieldMemOperand(reg, HeapObject::kMapOffset));
|
| Handle<WeakCell> cell = Map::WeakCellForMap(current_map);
|
| - __ CmpWeakValue(scratch2, scratch1, cell);
|
| - __ Branch(miss, ne, scratch2, Operand(zero_reg));
|
| + __ GetWeakValue(scratch2, cell);
|
| + __ Branch(miss, ne, scratch2, Operand(scratch1));
|
| }
|
|
|
| // Perform security check for access to the global object.
|
|
|