| Index: src/typing-asm.cc
|
| diff --git a/src/typing-asm.cc b/src/typing-asm.cc
|
| index 2390e7e7b12a824229e8d68768896c35791836d4..b2cc070f8a9d36751e38a4c1e5b5b99a55096e2e 100644
|
| --- a/src/typing-asm.cc
|
| +++ b/src/typing-asm.cc
|
| @@ -44,6 +44,7 @@ AsmTyper::AsmTyper(Isolate* isolate, Zone* zone, Script* script,
|
| root_(root),
|
| valid_(true),
|
| allow_simd_(false),
|
| + fixed_signature_(false),
|
| property_info_(nullptr),
|
| intish_(0),
|
| stdlib_types_(zone),
|
| @@ -86,6 +87,11 @@ void AsmTyper::VisitAsmModule(FunctionLiteral* fun) {
|
| if (!use_asm_literal->raw_value()->AsString()->IsOneByteEqualTo("use asm"))
|
| FAIL(fun, "missing \"use asm\"");
|
|
|
| + // TODO(bradnelson): Generalize this.
|
| + if (fixed_signature_ && scope->num_parameters() != 3) {
|
| + FAIL(fun, "only 3 parameter modules supported");
|
| + }
|
| +
|
| // Module parameters.
|
| for (int i = 0; i < scope->num_parameters(); ++i) {
|
| Variable* param = scope->parameter(i);
|
|
|