Lines Matching defs:function

611   // For each variable which is used as a function declaration in a sloppy
631 // example, that does not prevent hoisting of the function in
632 // `{ let e; try {} catch (e) { function e(){} } }`
700 // 2) a function/eval/module on the top-level
701 // 4) a class member initializer function scope
702 // 3) 4 function/eval in a scope that was already resolved.
1036 // function.arguments sees them.
1038 // strict-mode function.arguments does not make the arguments available.
1058 // This function handles VariableMode::kVar, VariableMode::kLet, and
1076 // function, which, for efficiency, we preparse without variable tracking.
1136 // functions. The function CheckConflictingVarDeclarations checks for
1141 // function () { let x; { var x; } }
1143 // because the var declaration is hoisted to the function scope where
1149 // Allow duplicate function decls for web compat, see bug 4693.
1195 // not a function declaration, it's an error. This is an error PreParser
1199 // Sloppy block function redefinition.
1516 // "super" in arrow functions binds outside the arrow function. But if we
1517 // find a function which doesn't bind "super" (is not a method etc.) and
1518 // not an arrow function, we know "super" here doesn't bind anywhere and
1712 // Lazy non-arrow function scopes are skippable. Lazy functions are exactly
1715 // skippable function data (both agree on where the lazy function boundaries
1762 PrintF("Inner function scope:\n");
1791 if (IsGeneratorFunction(function_kind)) return "function*";
1792 if (IsAsyncFunction(function_kind)) return "async function";
1794 return "function";
1914 Variable* function = nullptr;
1917 function = AsDeclarationScope()->function_var();
1926 // Function name, if any (named function literals, only).
1927 if (function != nullptr) {
1928 Indent(n1, "// (local) function name: ");
1929 PrintName(function->raw_name());
1971 if (function != nullptr) {
1972 Indent(n1, "// function var:\n");
1973 PrintVar(n1, function);
1990 PrintMap(n1, "// local vars:\n", &variables_, true, function);
1991 PrintMap(n1, "// dynamic vars:\n", &variables_, false, function);
1998 &(class_scope->GetRareData()->private_name_map), true, function);
2229 // this case, to avoid complexity around sloppy block function hoisting and
2291 // VariableMode::kVar bindings, either from var or function declarations),
2311 // function or in the same eval code), the VariableProxy is in the source
2318 // function() { f(); let x = 1; function f() { x = 2; } }
2445 // 'arguments' is used and does not refer to a function
2591 // scope and for a function scope that makes an 'eval' call we need a
2593 // scope. Likewise for modules and function scopes representing asm.js
2710 // The debugger expects all shared function infos to contain a scope info.
2711 // Since the top-most scope will end up in a shared function info, make sure
2733 Variable* function =
2736 function != nullptr && function->IsContextSlot();
2810 // code for the initializer function.
3111 // because the class scope is deserialized while the function scope inside may