Lines Matching defs:arguments
342 // Declare 'arguments' variable which exists in all non arrow functions.
346 Variable::ARGUMENTS, kCreatedInitialized);
461 // ARGUMENTS bindings as their corresponding Variable::Kind.
1028 if (scope_uses_arguments_) Indent(n1, "// scope uses 'arguments'\n");
1474 Variable* arguments = LookupLocal(ast_value_factory_->arguments_string());
1475 // Functions have 'arguments' declared implicitly in all non arrow functions.
1476 DCHECK(arguments != nullptr || is_arrow_scope());
1480 if (arguments != nullptr && MustAllocate(arguments) &&
1482 // 'arguments' is used. Unless there is also a parameter called
1483 // 'arguments', we must be conservative and allocate all parameters to
1484 // the context assuming they will be captured by the arguments object.
1485 // If we have a parameter named 'arguments', a (new) value is always
1486 // assigned to it via the function invocation. Then 'arguments' denotes
1488 // parameters, which is why we don't need to allocate an arguments
1491 // We are using 'arguments'. Tell the code generator that is needs to
1492 // allocate the arguments object by setting 'arguments_'.
1493 arguments_ = arguments;
1495 // In strict mode 'arguments' does not alias formal parameters.
1496 // Therefore in strict mode we allocate parameters as if 'arguments'
1498 // If the parameter list is not simple, arguments isn't sloppy either.