| Index: src/ic/mips/handler-compiler-mips.cc
|
| diff --git a/src/ic/mips/handler-compiler-mips.cc b/src/ic/mips/handler-compiler-mips.cc
|
| index ceff593c36b3f9ef87fc501bcca76aed294aec83..8a7b6aa8229ae38bdd851ee828d8b02ba2ce10bf 100644
|
| --- a/src/ic/mips/handler-compiler-mips.cc
|
| +++ b/src/ic/mips/handler-compiler-mips.cc
|
| @@ -434,17 +434,7 @@ Register PropertyHandlerCompiler::CheckPrototypes(
|
|
|
| reg = holder_reg; // From now on the object will be in holder_reg.
|
|
|
| - // Two possible reasons for loading the prototype from the map:
|
| - // (1) Can't store references to new space in code.
|
| - // (2) Handler is shared for all receivers with the same prototype
|
| - // map (but not necessarily the same prototype instance).
|
| - bool load_prototype_from_map =
|
| - heap()->InNewSpace(*prototype) || depth == 1;
|
| - if (load_prototype_from_map) {
|
| - __ lw(reg, FieldMemOperand(map_reg, Map::kPrototypeOffset));
|
| - } else {
|
| - __ li(reg, Operand(prototype));
|
| - }
|
| + __ lw(reg, FieldMemOperand(map_reg, Map::kPrototypeOffset));
|
| }
|
|
|
| // Go to the next object in the prototype chain.
|
|
|