Index: src/heap/heap.cc |
diff --git a/src/heap/heap.cc b/src/heap/heap.cc |
index 6ce23da02908f33323bd8ce6a7b6b1ee4c7e319f..6f2be66b411e20cf324d5ec590168e468e234414 100644 |
--- a/src/heap/heap.cc |
+++ b/src/heap/heap.cc |
@@ -2902,7 +2902,7 @@ AllocationResult Heap::AllocatePropertyCell() { |
AllocationResult Heap::AllocateWeakCell(HeapObject* value) { |
int size = WeakCell::kSize; |
STATIC_ASSERT(WeakCell::kSize <= Page::kMaxRegularHeapObjectSize); |
- HeapObject* result; |
+ HeapObject* result = NULL; |
{ |
AllocationResult allocation = |
AllocateRaw(size, OLD_POINTER_SPACE, OLD_POINTER_SPACE); |
@@ -4478,7 +4478,7 @@ AllocationResult Heap::AllocateExtendedConstantPoolArray( |
AllocationResult Heap::AllocateEmptyConstantPoolArray() { |
ConstantPoolArray::NumberOfEntries small(0, 0, 0, 0); |
int size = ConstantPoolArray::SizeFor(small); |
- HeapObject* result; |
+ HeapObject* result = NULL; |
{ |
AllocationResult allocation = |
AllocateRaw(size, OLD_DATA_SPACE, OLD_DATA_SPACE); |
@@ -4494,7 +4494,7 @@ AllocationResult Heap::AllocateSymbol() { |
// Statically ensure that it is safe to allocate symbols in paged spaces. |
STATIC_ASSERT(Symbol::kSize <= Page::kMaxRegularHeapObjectSize); |
- HeapObject* result; |
+ HeapObject* result = NULL; |
AllocationResult allocation = |
AllocateRaw(Symbol::kSize, OLD_POINTER_SPACE, OLD_POINTER_SPACE); |
if (!allocation.To(&result)) return allocation; |