Index: src/log.cc |
diff --git a/src/log.cc b/src/log.cc |
index 00fa4326868494d8a68b4663f83b0b6d41e86601..0ffaaba55619ef14b72a61a33d75e5a0253de212 100644 |
--- a/src/log.cc |
+++ b/src/log.cc |
@@ -1549,7 +1549,7 @@ static int EnumerateCompiledFunctions(Heap* heap, |
Handle<SharedFunctionInfo>* sfis, |
Handle<Code>* code_objects) { |
HeapIterator iterator(heap); |
- AssertNoAllocation no_alloc; |
+ DisallowHeapAllocation no_gc; |
int compiled_funcs_count = 0; |
// Iterate the heap to find shared function info objects and record |
@@ -1718,7 +1718,7 @@ void Logger::LogCodeObjects() { |
heap->CollectAllGarbage(Heap::kMakeHeapIterableMask, |
"Logger::LogCodeObjects"); |
HeapIterator iterator(heap); |
- AssertNoAllocation no_alloc; |
+ DisallowHeapAllocation no_gc; |
for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
if (obj->IsCode()) LogCodeObject(obj); |
} |
@@ -1796,7 +1796,7 @@ void Logger::LogAccessorCallbacks() { |
heap->CollectAllGarbage(Heap::kMakeHeapIterableMask, |
"Logger::LogAccessorCallbacks"); |
HeapIterator iterator(heap); |
- AssertNoAllocation no_alloc; |
+ DisallowHeapAllocation no_gc; |
for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) { |
if (!obj->IsExecutableAccessorInfo()) continue; |
ExecutableAccessorInfo* ai = ExecutableAccessorInfo::cast(obj); |