Index: src/log.cc |
=================================================================== |
--- src/log.cc (revision 7102) |
+++ src/log.cc (working copy) |
@@ -1254,13 +1254,14 @@ |
static int EnumerateCompiledFunctions(Handle<SharedFunctionInfo>* sfis, |
Handle<Code>* code_objects) { |
+ Heap::EnsureHeapIsIterable(); |
AssertNoAllocation no_alloc; |
int compiled_funcs_count = 0; |
// Iterate the heap to find shared function info objects and record |
// the unoptimized code for them. |
HeapIterator iterator; |
- for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
+ for (HeapObject* obj = iterator.Next(); obj != NULL; obj = iterator.Next()) { |
if (!obj->IsSharedFunctionInfo()) continue; |
SharedFunctionInfo* sfi = SharedFunctionInfo::cast(obj); |
if (sfi->is_compiled() |
@@ -1370,9 +1371,10 @@ |
void Logger::LogCodeObjects() { |
+ Heap::EnsureHeapIsIterable(); |
AssertNoAllocation no_alloc; |
HeapIterator iterator; |
- for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
+ for (HeapObject* obj = iterator.Next(); obj != NULL; obj = iterator.Next()) { |
if (obj->IsCode()) LogCodeObject(obj); |
} |
} |
@@ -1432,9 +1434,10 @@ |
void Logger::LogFunctionObjects() { |
+ Heap::EnsureHeapIsIterable(); |
AssertNoAllocation no_alloc; |
HeapIterator iterator; |
- for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
+ for (HeapObject* obj = iterator.Next(); obj != NULL; obj = iterator.Next()) { |
if (!obj->IsJSFunction()) continue; |
JSFunction* jsf = JSFunction::cast(obj); |
if (!jsf->is_compiled()) continue; |
@@ -1444,9 +1447,10 @@ |
void Logger::LogAccessorCallbacks() { |
+ Heap::EnsureHeapIsIterable(); |
AssertNoAllocation no_alloc; |
HeapIterator iterator; |
- for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
+ for (HeapObject* obj = iterator.Next(); obj != NULL; obj = iterator.Next()) { |
if (!obj->IsAccessorInfo()) continue; |
AccessorInfo* ai = AccessorInfo::cast(obj); |
if (!ai->name()->IsString()) continue; |