Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 5bf5b48c22e4ee57fe50f9bc10948e043ac14b6e..23d4dc8b9eb2968d18be32be945a07f1ed3528e2 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1712,14 +1712,14 @@ void HLoadKeyedFastElement::PrintDataTo(StringStream* stream) { |
stream->Add("["); |
key()->PrintNameTo(stream); |
stream->Add("]"); |
- if (hole_check_mode_ == PERFORM_HOLE_CHECK) { |
+ if (RequiresHoleCheck()) { |
stream->Add(" check_hole"); |
} |
} |
bool HLoadKeyedFastElement::RequiresHoleCheck() { |
- if (hole_check_mode_ == OMIT_HOLE_CHECK) { |
+ if (IsFastPackedElementsKind(elements_kind())) { |
return false; |
} |
@@ -1765,8 +1765,7 @@ HValue* HLoadKeyedGeneric::Canonicalize() { |
new(block()->zone()) HCheckMapValue(object(), names_cache->map()); |
HInstruction* index = new(block()->zone()) HLoadKeyedFastElement( |
index_cache, |
- key_load->key(), |
- OMIT_HOLE_CHECK); |
+ key_load->key()); |
map_check->InsertBefore(this); |
index->InsertBefore(this); |
HLoadFieldByIndex* load = new(block()->zone()) HLoadFieldByIndex( |