summaryrefslogtreecommitdiffstats
path: root/src/debug.cc
diff options
context:
space:
mode:
authorLeon Clarke <leonclarke@google.com>2010-01-27 17:25:45 +0000
committerLeon Clarke <leonclarke@google.com>2010-01-27 17:31:21 +0000
commitd91b9f7d46489a9ee00f9cb415630299c76a502b (patch)
tree741552f95883bb7461cf7c1d36335cef68804a5b /src/debug.cc
parenteab96aab0834f21954b5d6aa6366bcfb348ed811 (diff)
downloadandroid_external_v8-d91b9f7d46489a9ee00f9cb415630299c76a502b.tar.gz
android_external_v8-d91b9f7d46489a9ee00f9cb415630299c76a502b.tar.bz2
android_external_v8-d91b9f7d46489a9ee00f9cb415630299c76a502b.zip
Merge from v8 at revision 3723
Diffstat (limited to 'src/debug.cc')
-rw-r--r--src/debug.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/debug.cc b/src/debug.cc
index 34b3a6d5..fc809c56 100644
--- a/src/debug.cc
+++ b/src/debug.cc
@@ -1695,9 +1695,7 @@ void Debug::CreateScriptCache() {
// Scan heap for Script objects.
int count = 0;
HeapIterator iterator;
- while (iterator.has_next()) {
- HeapObject* obj = iterator.next();
- ASSERT(obj != NULL);
+ for (HeapObject* obj = iterator.next(); obj != NULL; obj = iterator.next()) {
if (obj->IsScript() && Script::cast(obj)->HasValidSource()) {
script_cache_->Add(Handle<Script>(Script::cast(obj)));
count++;