| Index: src/typing-asm.cc
|
| diff --git a/src/typing-asm.cc b/src/typing-asm.cc
|
| index b969d45166586ae35feb774bee642f6662c0e52a..7074169355108498c090d260c399e9d4e6eb8c5d 100644
|
| --- a/src/typing-asm.cc
|
| +++ b/src/typing-asm.cc
|
| @@ -76,6 +76,13 @@ void AsmTyper::VisitAsmModule(FunctionLiteral* fun) {
|
| Scope* scope = fun->scope();
|
| if (!scope->is_function_scope()) FAIL(fun, "not at function scope");
|
|
|
| + ExpressionStatement* use_asm = fun->body()->first()->AsExpressionStatement();
|
| + if (use_asm == NULL) FAIL(fun, "missing \"use asm\"");
|
| + Literal* use_asm_literal = use_asm->expression()->AsLiteral();
|
| + if (use_asm_literal == NULL) FAIL(fun, "missing \"use asm\"");
|
| + if (!use_asm_literal->raw_value()->AsString()->IsOneByteEqualTo("use asm"))
|
| + FAIL(fun, "missing \"use asm\"");
|
| +
|
| // Module parameters.
|
| for (int i = 0; i < scope->num_parameters(); ++i) {
|
| Variable* param = scope->parameter(i);
|
|
|