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

Unified Diff: test/cctest/test-asm-validator.cc

Issue 1318823010: Eliminate use of CompilationInfo in several AstVisitor descendants. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: revised Created 5 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/expression-type-collector.cc ('k') | test/cctest/test-ast-expression-visitor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-asm-validator.cc
diff --git a/test/cctest/test-asm-validator.cc b/test/cctest/test-asm-validator.cc
index 886c0377a66fa4f0fb952af305e91737d598ce60..0cc71ec2f54fbc84fda2fe2398807ef1ca20e51f 100644
--- a/test/cctest/test-asm-validator.cc
+++ b/test/cctest/test-asm-validator.cc
@@ -62,16 +62,13 @@ std::string Validate(Zone* zone, const char* source,
info.set_allow_lazy_parsing(false);
info.set_toplevel(true);
- i::CompilationInfo compilation_info(&info);
CHECK(i::Compiler::ParseAndAnalyze(&info));
- info.set_literal(
- info.scope()->declarations()->at(0)->AsFunctionDeclaration()->fun());
- AsmTyper typer(
- isolate, zone, *script,
- info.scope()->declarations()->at(0)->AsFunctionDeclaration()->fun());
+ FunctionLiteral* root =
+ info.scope()->declarations()->at(0)->AsFunctionDeclaration()->fun();
+ AsmTyper typer(isolate, zone, *script, root);
if (typer.Validate()) {
- ExpressionTypeCollector(&compilation_info, types).Run();
+ ExpressionTypeCollector(isolate, zone, root, types).Run();
return "";
} else {
return typer.error_message();
« no previous file with comments | « test/cctest/expression-type-collector.cc ('k') | test/cctest/test-ast-expression-visitor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698