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

Unified Diff: test/cctest/test-heap.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 | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-heap.cc
diff --git a/test/cctest/test-heap.cc b/test/cctest/test-heap.cc
index aa8e23323cd7a42b3e9cb9d5fd2fea8ec4aa8faa..5ca3292308f737755c1808a2020ba46c5f64030f 100644
--- a/test/cctest/test-heap.cc
+++ b/test/cctest/test-heap.cc
@@ -791,7 +791,7 @@ static int ObjectsFoundInHeap(Handle<Object> objs[], int size) {
// Count the number of objects found in the heap.
int found_count = 0;
HeapIterator iterator;
- for (HeapObject* obj = iterator.Next(); obj != NULL; obj = iterator.Next()) {
+ for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) {
for (int i = 0; i < size; i++) {
if (*objs[i] == obj) {
found_count++;
@@ -1194,9 +1194,9 @@ TEST(TestSizeOfObjectsVsHeapIteratorPrecision) {
intptr_t size_of_objects_1 = HEAP->SizeOfObjects();
HeapIterator iterator;
intptr_t size_of_objects_2 = 0;
- for (HeapObject* obj = iterator.Next();
+ for (HeapObject* obj = iterator.next();
obj != NULL;
- obj = iterator.Next()) {
+ obj = iterator.next()) {
size_of_objects_2 += obj->Size();
}
// Delta must be within 5% of the larger result.
@@ -1229,9 +1229,9 @@ class HeapIteratorTestHelper {
bool b_found() { return b_found_; }
void IterateHeap() {
HeapIterator iterator;
- for (HeapObject* obj = iterator.Next();
+ for (HeapObject* obj = iterator.next();
obj != NULL;
- obj = iterator.Next()) {
+ obj = iterator.next()) {
if (obj == a_)
a_found_ = true;
else if (obj == b_)
« no previous file with comments | « test/cctest/test-debug.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698