Lines Matching defs:name

66   Variable* Declare(Zone* zone, Scope* scope, const AstRawString* name,
72 V8_EXPORT_PRIVATE Variable* Lookup(const AstRawString* name);
100 // The scope name is only used for printing/debugging.
195 Variable* LookupLocal(const AstRawString* name) {
197 return variables_.Lookup(name);
200 Variable* LookupInScopeInfo(const AstRawString* name, Scope* cache);
204 Variable* DeclareLocal(const AstRawString* name, VariableMode mode,
208 Variable* DeclareVariable(Declaration* declaration, const AstRawString* name,
215 Variable* DeclareVariableName(const AstRawString* name, VariableMode mode,
218 Variable* DeclareCatchVariableName(const AstRawString* name);
230 const AstRawString* name, int start_pos,
233 // the same name because they may be removed selectively via
237 VariableProxy* proxy = factory->NewVariableProxy(name, kind, start_pos);
251 // added optimistically, but then only the variable name was used (typically
259 // name is only used for printing and cannot be used to find the variable.
261 // Variable* around. The name should not clash with a legitimate variable
264 Variable* NewTemporary(const AstRawString* name);
270 // name if there is one, nullptr otherwise.
297 // Currently, the only nonlinear scope is a switch statement. The name is
609 const AstRawString* name,
628 Variable* LookupInScopeOrScopeInfo(const AstRawString* name, Scope* cache) {
629 Variable* var = variables_.Lookup(name);
631 return LookupInScopeInfo(name, cache);
634 Variable* LookupForTesting(const AstRawString* name) {
636 Variable* var = scope->LookupInScopeOrScopeInfo(name, scope);
650 Variable* Declare(Zone* zone, const AstRawString* name, VariableMode mode,
655 zone, this, name, mode, kind, initialization_flag, maybe_assigned_flag,
667 Variable* NewTemporary(const AstRawString* name,
674 // Create a non-local variable with a given name.
676 Variable* NonLocal(const AstRawString* name, VariableMode mode);
684 // Lookup a variable reference given by name starting with this scope, and
736 // Construct a catch scope with a binding for the name.
935 Variable* LookupInModule(const AstRawString* name) {
937 Variable* var = variables_.Lookup(name);
964 // scope over a let binding of the same name.
1008 // declared in the scope. It will add a variable for {name} to {variables_};
1011 Variable* DeclareFunctionVar(const AstRawString* name,
1016 Variable* DeclareGeneratorObjectVar(const AstRawString* name);
1021 Variable* DeclareParameter(const AstRawString* name, VariableMode mode,
1032 Variable* DeclareDynamicGlobal(const AstRawString* name,
1257 // Recalculate the private name context chain from the existing skip bit in
1258 // preparation for AllocateScopeInfos. Because the private name scope is
1417 // Declare a private name in the private name map and add it to the
1419 Variable* DeclarePrivateName(const AstRawString* name, VariableMode mode,
1429 // - If we are certain a private name cannot be resolve, return that
1431 // - If we find the private name in the scope chain, return nullptr.
1432 // If the name is found in the current class scope, resolve it
1434 // - If we are not sure if the private name can be resolved or not yet,
1455 const AstRawString* name, int class_token_pos);
1510 // Find the private name declared in the private name map first,
1514 // Lookup a private name from the local private name map of the current
1516 Variable* LookupLocalPrivateName(const AstRawString* name);
1517 // Lookup a private name from the scope info of the current scope.
1518 Variable* LookupPrivateNameInScopeInfo(const AstRawString* name);
1557 // Iterate over the private name scope chain. The iteration proceeds from the
1558 // innermost private name scope outwards.
1566 // Add an unresolved private name to the current scope.