Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 6587ce97199ca944f8daaa8938bcbf73b23f6414..20fd43c62816211a265d7f4bcd38b69533a8242b 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5213,11 +5213,12 @@ void HOptimizedGraphBuilder::VisitArrayLiteral(ArrayLiteral* expr) { |
Handle<JSObject> boilerplate_object; |
if (literals_cell->IsUndefined()) { |
uninitialized = true; |
- Handle<Object> raw_boilerplate = Runtime::CreateArrayLiteralBoilerplate( |
- isolate(), literals, expr->constant_elements()); |
- if (raw_boilerplate.is_null()) { |
- return Bailout(kArrayBoilerplateCreationFailed); |
- } |
+ Handle<Object> raw_boilerplate; |
+ ASSIGN_RETURN_ON_EXCEPTION_VALUE( |
+ isolate(), raw_boilerplate, |
+ Runtime::CreateArrayLiteralBoilerplate( |
+ isolate(), literals, expr->constant_elements()), |
+ Bailout(kArrayBoilerplateCreationFailed)); |
boilerplate_object = Handle<JSObject>::cast(raw_boilerplate); |
AllocationSiteCreationContext creation_context(isolate()); |