Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Unified Diff: src/heap/heap.cc

Issue 1157053007: AIX: fix another may be uninitialized failure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/heap/heap.cc
diff --git a/src/heap/heap.cc b/src/heap/heap.cc
index ff9cc5b46b4cf1be4cb8eb636021ef1b00922d64..255ec689657931a1d52cb62175f31d449e26011a 100644
--- a/src/heap/heap.cc
+++ b/src/heap/heap.cc
@@ -4408,7 +4408,7 @@ AllocationResult Heap::AllocateFixedArrayWithFiller(int length,
if (length == 0) return empty_fixed_array();
DCHECK(!InNewSpace(filler));
- HeapObject* result;
+ HeapObject* result = nullptr;
{
AllocationResult allocation = AllocateRawFixedArray(length, pretenure);
if (!allocation.To(&result)) return allocation;
@@ -4505,7 +4505,7 @@ AllocationResult Heap::AllocateExtendedConstantPoolArray(
int size = ConstantPoolArray::SizeForExtended(small, extended);
AllocationSpace space = SelectSpace(size, TENURED);
- HeapObject* object;
+ HeapObject* object = nullptr;
{
AllocationResult allocation =
AllocateRaw(size, space, OLD_SPACE, kDoubleAligned);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698