Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index bea3cea9f68865657cac588f75a589eb6fed8029..7598d61cb683f37e2ccf7cd79cee03b65f6faca8 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -4067,10 +4067,9 @@ HInstruction* HStringAdd::New(Zone* zone, |
Handle<String> right_string = c_right->StringValue(); |
// Prevent possible exception by invalid string length. |
if (left_string->length() + right_string->length() < String::kMaxLength) { |
- Handle<String> concat = zone->isolate()->factory()->NewFlatConcatString( |
+ MaybeHandle<String> concat = zone->isolate()->factory()->NewConsString( |
c_left->StringValue(), c_right->StringValue()); |
- ASSERT(!concat.is_null()); |
- return HConstant::New(zone, context, concat); |
+ return HConstant::New(zone, context, concat.ToHandleChecked()); |
} |
} |
} |