Index: test/cctest/test-serialize.cc |
diff --git a/test/cctest/test-serialize.cc b/test/cctest/test-serialize.cc |
index c15e892d62b466ae6f094cdd0aed27e723a312bc..550d5b8a128f168a15a52908bd2e918739fa44d2 100644 |
--- a/test/cctest/test-serialize.cc |
+++ b/test/cctest/test-serialize.cc |
@@ -1806,10 +1806,10 @@ |
HandleScope i_scope(i_isolate); |
Handle<SharedFunctionInfo> toplevel = v8::Utils::OpenHandle(*unbound); |
Handle<Script> script(Script::cast(toplevel->script())); |
+ WeakFixedArray::Iterator iterator(script->shared_function_infos()); |
// Every function has been pre-compiled from the code cache. |
int count = 0; |
- SharedFunctionInfo::ScriptIterator iterator(script); |
- while (SharedFunctionInfo* shared = iterator.Next()) { |
+ while (SharedFunctionInfo* shared = iterator.Next<SharedFunctionInfo>()) { |
CHECK(shared->is_compiled()); |
CHECK_EQ(Code::kPreAgedCodeAge, shared->code()->GetAge()); |
count++; |