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

Unified Diff: test/cctest/parsing/test-parse-decision.cc

Issue 2547483002: Store SharedFunctionInfos of a Script in a FixedArray indexed by their ID (Closed)
Patch Set: updates Created 4 years 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
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()));
}

Powered by Google App Engine
This is Rietveld 408576698