Lines Matching refs:name
113 // TODO(cbruni): Don't always waste a field for the inferred name.
130 // Always reserve space for the debug name in the scope info.
135 // Always reserve space for the debug name in the scope info.
166 #define ASSERT_MATCHED_FIELD(name) \
167 STATIC_ASSERT(OffsetOfElementAt(k##name) == k##name##Offset);
278 scope_info.set(context_local_base + local_index, *var->name(),
282 isolate, local_names_hashtable, var->name(), local_index);
294 *var->name(), mode);
322 // parameter name is repeated. By walking upwards, we'll automatically
352 Handle<Name> name = class_variable->name();
353 InternalIndex entry = local_names_hashtable->FindEntry(isolate, name);
359 // If present, add the function variable name and its index.
364 Object name = Smi::zero();
367 name = *var->name();
369 scope_info.set(index++, name, mode);
377 // The inferred function name is taken from the SFI.
763 void ScopeInfo::SetFunctionName(Object name) {
765 DCHECK(name.IsString() || name == SharedFunctionInfo::kNoSharedNameSentinel);
767 name.IsInternalizedString());
768 set_function_variable_info_name(name);
771 void ScopeInfo::SetInferredFunctionName(String name) {
773 set_inferred_function_name(name);
821 Object name = FunctionName();
822 if (name.IsString() && String::cast(name).length() > 0) {
823 return String::cast(name);
826 name = InferredFunctionName();
827 if (name.IsString()) return String::cast(name);
902 bool ScopeInfo::VariableIsSynthetic(String name) {
907 return name.length() == 0 || name.Get(0) == '.' || name.Get(0) == '#' ||
908 name.Equals(name.GetReadOnlyRoots().this_string());
916 int ScopeInfo::ModuleIndex(String name, VariableMode* mode,
920 DCHECK(name.IsInternalizedString());
929 if (name.Equals(var_name)) {
939 int ScopeInfo::InlinedLocalNamesLookup(String name) {
944 if (name == ContextInlinedLocalName(cage_base, i)) {
951 int ScopeInfo::ContextSlotIndex(Handle<String> name,
954 DCHECK(name->IsInternalizedString());
960 ? InlinedLocalNamesLookup(*name)
961 : context_local_names_hashtable().Lookup(name);
977 int ScopeInfo::ContextSlotIndex(Handle<String> name) {
979 return ContextSlotIndex(name, &lookup_result);
989 String name = ContextInlinedLocalName(index);
990 return std::make_pair(name, index);
996 Object name = table.KeyAt(entry);
997 DCHECK(name.IsString());
998 return std::make_pair(String::cast(name), table.IndexAt(entry));
1018 int ScopeInfo::FunctionContextSlotIndex(String name) const {
1019 DCHECK(name.IsInternalizedString());
1022 if (FunctionName() == name) {
1077 void ScopeInfo::ModuleVariable(int i, String* name, int* index,
1083 if (name != nullptr) {
1084 *name = module_variables_name(i);