Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index abff7b77830e1fe1b4ec26cd48dfe930572c418b..bb56296a22def95346c2a2379d7cd3811300c7bb 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -7113,8 +7113,10 @@ HInstruction* HOptimizedGraphBuilder::BuildLoadNamedMonomorphic( |
Handle<JSObject> holder(lookup.holder()); |
Handle<Map> holder_map(holder->map()); |
AddCheckMap(object, map); |
- HInstruction* holder_value = AddInstruction( |
+ AddInstruction( |
new(zone()) HCheckPrototypeMaps(prototype, holder, zone())); |
+ HValue* holder_value = AddInstruction( |
+ new(zone()) HConstant(holder, Representation::Tagged())); |
return BuildLoadNamedField(holder_value, holder_map, &lookup); |
} |