Chromium Code Reviews| Index: src/hydrogen-instructions.cc | 
| diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc | 
| index 5bf5b48c22e4ee57fe50f9bc10948e043ac14b6e..bc75c6c2c17877c3108857b5452bb199f63ff02e 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 (IsFastHoleyElementsKind(elements_kind())) { | 
| 
 
Michael Starzinger
2012/06/12 11:30:17
We could base the output of "check_hole" on the re
 
danno
2012/06/12 12:16:06
Done.
 
 | 
| 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( |