Lines Matching refs:FAIL
19 #define FAIL(node, msg) \
79 if (!scope->is_function_scope()) FAIL(fun, "not at function scope");
82 if (use_asm == NULL) FAIL(fun, "missing \"use asm\"");
84 if (use_asm_literal == NULL) FAIL(fun, "missing \"use asm\"");
86 FAIL(fun, "missing \"use asm\"");
132 FAIL(decl->fun(), "function literal expected to be a function");
140 FAIL(fun->body()->last(), "last statement in module is not a return");
163 FAIL(decl, "function declared inside another");
218 if (!good) FAIL(fun, "missing parameter type annotations");
232 FAIL(bin->left(), "expected variable for type annotation");
235 FAIL(proxy, "annotation source doesn't match destination");
263 FAIL(expr, "invalid type annotation on binary op");
280 FAIL(call->expression(),
283 FAIL(call->expression(),
293 FAIL(call, "invalid argument count calling function");
300 FAIL(expr, "invalid type annotation");
337 FAIL(stmt, "if statement inside module body");
348 FAIL(stmt, "continue statement inside module body");
355 FAIL(stmt, "continue statement inside module body");
374 FAIL(stmt->expression(), "return type does not match function signature");
380 FAIL(stmt, "bad with statement");
386 FAIL(stmt, "switch statement inside module body");
396 FAIL(clause, "default case out of order");
402 if (!label->IsLiteral()) FAIL(label, "non-literal case label");
405 if (!value->ToInt32(&value32)) FAIL(label, "illegal case label value");
407 FAIL(label, "duplicate case value");
419 FAIL(stmt, "case range too large");
430 FAIL(stmt, "do statement inside module body");
440 FAIL(stmt, "while statement inside module body");
450 FAIL(stmt, "for statement inside module body");
467 FAIL(stmt, "for-in statement encountered");
472 FAIL(stmt, "for-of statement encountered");
477 FAIL(stmt, "try statement encountered");
482 FAIL(stmt, "try statement encountered");
487 FAIL(stmt, "debugger statement encountered");
495 FAIL(expr, "invalid nested function");
499 FAIL(expr, "invalid function literal");
516 FAIL(expr, "function info literal encountered");
521 FAIL(expr, "do-expression encountered");
529 FAIL(expr->condition(), "condition must be of type int");
537 FAIL(expr->then_expression(), "invalid type in ? then expression");
545 FAIL(expr->else_expression(), "invalid type in ? else expression");
549 FAIL(expr, "then and else expressions in ? must have the same type");
564 FAIL(expr, "unbound variable");
598 FAIL(expr, "illegal number");
605 FAIL(expr, "illegal literal");
614 FAIL(expr, "regular expression encountered");
620 FAIL(expr, "object literal in function");
629 FAIL(prop->value(), "non-function in function table");
638 FAIL(expr, "array literal inside a function");
647 FAIL(value, "array component expected to be a function");
669 if (expr->is_compound()) FAIL(expr, "compound assignment encountered");
675 FAIL(expr, "intish or floatish assignment");
685 FAIL(property->obj(), "array expected");
694 FAIL(expr, "yield expression encountered");
699 FAIL(expr, "throw statement encountered");
728 FAIL(expr, "assigning to function table is illegal");
732 FAIL(expr->key(), "expected & in call");
738 FAIL(right, "call mask must be integer");
743 FAIL(right, "call mask must match function table");
755 FAIL(expr->key(), "expected >> in heap access");
761 FAIL(right, "heap access shift must be integer");
768 FAIL(right, "heap access shift must match element size");
787 FAIL(expr, "Assignment of floatish to Float64Array");
798 FAIL(expr, "illegal type in assignment");
907 FAIL(expr, "invalid property access");
920 FAIL(expr, "calls forbidden outside function bodies");
923 FAIL(expr, "calls must be to bound variables or function tables");
930 FAIL(expr, "call with wrong arity");
947 FAIL(expr, "illegal function argument type");
954 FAIL(expr, "illegal function argument type");
961 FAIL(expr, "function arguments types don't match");
978 FAIL(expr, "invalid callee");
985 FAIL(expr, "new not allowed in module function");
993 FAIL(expr, "call with wrong arity");
1004 FAIL(expr, "ill-typed new operator");
1021 FAIL(expr, "delete operator encountered");
1023 FAIL
1025 FAIL(expr, "typeof operator encountered");
1033 FAIL(expr, "increment or decrement operator encountered");
1046 FAIL(expr->left(), "left bitwise operand expected to be an integer");
1049 FAIL(expr->left(), "too many consecutive additive ops");
1058 FAIL(expr->right(), "right bitwise operand expected to be an integer");
1061 FAIL(expr->right(), "too many consecutive additive ops");
1074 FAIL(expr, "ill-typed bitwise operation");
1093 FAIL(expr, "illegal logical operator");
1111 FAIL(left, "unexpected false");
1151 FAIL(expr, "direct integer multiply forbidden");
1154 FAIL(expr, "multiply must be by an integer");
1158 FAIL(expr, "multiply must be a signed integer");
1162 FAIL(expr, "multiply must be by value in -2^20 < n < 2^20");
1171 FAIL(expr, "too many consecutive additive ops");
1175 FAIL(expr, "too many consecutive multiplicative ops");
1188 FAIL(expr, "float operation before required fround");
1197 FAIL(expr, "ill-typed arithmetic operation");
1210 FAIL(expr, "illegal comparison operator");
1218 FAIL(expr->left(), "bad type on left side of comparison");
1226 FAIL(expr->right(), "bad type on right side of comparison");
1230 FAIL(expr, "left and right side of comparison must match");
1238 FAIL(expr, "this function not allowed");
1251 FAIL(decl, "import declaration encountered");
1256 FAIL(decl, "export declaration encountered");
1261 FAIL(expr, "class literal not allowed");
1265 void AsmTyper::VisitSpread(Spread* expr) { FAIL(expr, "spread not allowed"); }
1269 FAIL(expr, "super property reference not allowed");
1274 FAIL(expr, "call reference not allowed");
1373 FAIL(expr, "invalid key used on stdlib member");
1376 if (info == NULL || info->type == NULL) FAIL(expr, "unknown stdlib function");
1479 FAIL(expr, msg);