Index: src/ic/arm64/handler-compiler-arm64.cc |
diff --git a/src/ic/arm64/handler-compiler-arm64.cc b/src/ic/arm64/handler-compiler-arm64.cc |
index 8cef505caae3ab3296426540b86cc33e73584ed9..9e1b55b82c1d137e8516f65fada5678a78533702 100644 |
--- a/src/ic/arm64/handler-compiler-arm64.cc |
+++ b/src/ic/arm64/handler-compiler-arm64.cc |
@@ -457,12 +457,6 @@ Register PropertyHandlerCompiler::CheckPrototypes( |
reg = holder_reg; // From now on the object will be in holder_reg. |
__ Ldr(reg, FieldMemOperand(scratch1, Map::kPrototypeOffset)); |
} else { |
- // 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; |
Register map_reg = scratch1; |
__ Ldr(map_reg, FieldMemOperand(reg, HeapObject::kMapOffset)); |
@@ -486,11 +480,7 @@ Register PropertyHandlerCompiler::CheckPrototypes( |
reg = holder_reg; // From now on the object will be in holder_reg. |
- if (load_prototype_from_map) { |
- __ Ldr(reg, FieldMemOperand(map_reg, Map::kPrototypeOffset)); |
- } else { |
- __ Mov(reg, Operand(prototype)); |
- } |
+ __ Ldr(reg, FieldMemOperand(map_reg, Map::kPrototypeOffset)); |
} |
// Go to the next object in the prototype chain. |