| 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();
|
|
|