Index: test/cctest/parsing/test-parse-decision.cc |
diff --git a/test/cctest/parsing/test-parse-decision.cc b/test/cctest/parsing/test-parse-decision.cc |
index ed90fac555334b7f8d96903832119ec3d0d1b5eb..61592364453600e0043ff4f0b0c280d748439f4b 100644 |
--- a/test/cctest/parsing/test-parse-decision.cc |
+++ b/test/cctest/parsing/test-parse-decision.cc |
@@ -30,9 +30,9 @@ void GetTopLevelFunctionInfo( |
Handle<JSFunction> toplevel_fn = v8::Utils::OpenHandle(*script); |
Handle<Script> i_script = |
handle(Script::cast(toplevel_fn->shared()->script())); |
+ SharedFunctionInfo::ScriptIterator iterator(i_script); |
- WeakFixedArray::Iterator iter(i_script->shared_function_infos()); |
- while (SharedFunctionInfo* shared = iter.Next<SharedFunctionInfo>()) { |
+ while (SharedFunctionInfo* shared = iterator.Next()) { |
std::unique_ptr<char[]> name = String::cast(shared->name())->ToCString(); |
is_compiled->insert(std::make_pair(name.get(), shared->is_compiled())); |
} |