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

Unified Diff: src/log.cc

Issue 7650010: Avoid some crashes when running without snapshots. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Address review comments Created 9 years, 4 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 | « src/liveedit.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/log.cc
diff --git a/src/log.cc b/src/log.cc
index 5245e3d2b8bd4b27f296d16fd9471c3319b64b18..c36c7ae52499f88bb30cedde60071a545c1d8a72 100644
--- a/src/log.cc
+++ b/src/log.cc
@@ -1362,7 +1362,7 @@ static int EnumerateCompiledFunctions(Handle<SharedFunctionInfo>* sfis,
// Iterate the heap to find shared function info objects and record
// the unoptimized code for them.
- 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()
@@ -1521,7 +1521,7 @@ void Logger::LowLevelLogWriteBytes(const char* bytes, int size) {
void Logger::LogCodeObjects() {
HeapIterator iterator;
AssertNoAllocation no_alloc;
- 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);
}
}
@@ -1589,7 +1589,7 @@ void Logger::LogCompiledFunctions() {
void Logger::LogAccessorCallbacks() {
HeapIterator iterator;
AssertNoAllocation no_alloc;
- 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;
« no previous file with comments | « src/liveedit.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698