Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index 0e6ea00058f299ab0966d2e5055e1a70f6da9858..d46ae2fd02b5066ccf5929b0d5491403eee5f23f 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -1031,8 +1031,10 @@ void HChange::PrintDataTo(StringStream* stream) { |
void HJSArrayLength::PrintDataTo(StringStream* stream) { |
value()->PrintNameTo(stream); |
- stream->Add(" "); |
- typecheck()->PrintNameTo(stream); |
+ if (HasTypeCheck()) { |
+ stream->Add(" "); |
+ typecheck()->PrintNameTo(stream); |
+ } |
} |
@@ -1144,8 +1146,10 @@ void HCheckInstanceType::GetCheckMaskAndTag(uint8_t* mask, uint8_t* tag) { |
void HLoadElements::PrintDataTo(StringStream* stream) { |
value()->PrintNameTo(stream); |
- stream->Add(" "); |
- typecheck()->PrintNameTo(stream); |
+ if (HasTypeCheck()) { |
+ stream->Add(" "); |
+ typecheck()->PrintNameTo(stream); |
+ } |
} |
@@ -2023,12 +2027,16 @@ void HLoadKeyed::PrintDataTo(StringStream* stream) { |
stream->Add("["); |
key()->PrintNameTo(stream); |
if (IsDehoisted()) { |
- stream->Add(" + %d] ", index_offset()); |
+ stream->Add(" + %d]", index_offset()); |
} else { |
- stream->Add("] "); |
+ stream->Add("]"); |
+ } |
+ |
+ if (HasDependency()) { |
+ stream->Add(" "); |
+ dependency()->PrintNameTo(stream); |
} |
- dependency()->PrintNameTo(stream); |
if (RequiresHoleCheck()) { |
stream->Add(" check_hole"); |
} |