Lines Matching refs:scope_info

197     ScopeInfo scope_info = *scope_info_handle;
198 WriteBarrierMode mode = scope_info.GetWriteBarrierMode(no_gc);
241 scope_info.set_flags(flags);
243 scope_info.set_parameter_count(parameter_count);
244 scope_info.set_context_local_count(context_local_count);
249 scope_info.set_module_variable_count(module_vars_count);
252 scope_info.set_context_local_names_hashtable(*local_names_hashtable);
260 int module_var_entry = scope_info.ModuleVariableCountIndex() + 1;
278 scope_info.set(context_local_base + local_index, *var->name(),
286 scope_info.set(context_local_info_base + local_index,
291 scope_info.set(module_var_entry +
295 scope_info.set(
306 scope_info.set(
332 int info = Smi::ToInt(scope_info.get(info_index));
334 scope_info.set(info_index, Smi::FromInt(info));
341 DCHECK_EQ(index, scope_info.SavedClassVariableInfoIndex());
356 scope_info.set(index++, Smi::FromInt(local_index));
360 DCHECK_EQ(index, scope_info.FunctionVariableInfoIndex());
369 scope_info.set(index++, name, mode);
370 scope_info.set(index++, Smi::FromInt(var_index));
372 var_index == scope_info.ContextLength() - 1);
375 DCHECK_EQ(index, scope_info.InferredFunctionNameIndex());
381 DCHECK_EQ(index, scope_info.PositionInfoIndex());
383 scope_info.set(index++, Smi::FromInt(scope->start_position()));
384 scope_info.set(index++, Smi::FromInt(scope->end_position()));
388 DCHECK(index == scope_info.OuterScopeInfoIndex());
390 scope_info.set(index++, *outer_scope.ToHandleChecked(), mode);
395 DCHECK_EQ(index, scope_info.ModuleInfoIndex());
396 scope_info.set(index++, *module_info);
397 DCHECK_EQ(index, scope_info.ModuleVariableCountIndex());
400 DCHECK_EQ(index, scope_info.ModuleVariablesIndex());
429 Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length);
449 scope_info->set_flags(flags);
451 scope_info->set_parameter_count(0);
452 scope_info->set_context_local_count(0);
455 DCHECK_EQ(index, scope_info->FunctionVariableInfoIndex());
456 DCHECK_EQ(index, scope_info->InferredFunctionNameIndex());
457 DCHECK_EQ(index, scope_info->PositionInfoIndex());
458 DCHECK(index == scope_info->OuterScopeInfoIndex());
460 scope_info->set(index++, *outer_scope.ToHandleChecked());
462 DCHECK_EQ(index, scope_info->length());
463 DCHECK_EQ(0, scope_info->ParameterCount());
464 DCHECK_EQ(scope_info->ContextHeaderLength(), scope_info->ContextLength());
465 return scope_info;
502 Handle<ScopeInfo> scope_info =
527 scope_info->set_flags(flags);
528 scope_info->set_parameter_count(parameter_count);
529 scope_info->set_context_local_count(context_local_count);
534 DCHECK_EQ(index, scope_info->ContextLocalNamesIndex());
536 scope_info->set(index++, ReadOnlyRoots(isolate).this_string());
538 DCHECK_EQ(index, scope_info->ContextLocalInfosIndex());
546 scope_info->set(index++, Smi::FromInt(value));
549 DCHECK_EQ(index, scope_info->FunctionVariableInfoIndex());
551 scope_info->set(index++, *isolate->factory()->empty_string());
552 scope_info->set(index++, Smi::zero());
554 DCHECK_EQ(index, scope_info->InferredFunctionNameIndex());
556 scope_info->set(index++, *isolate->factory()->empty_string());
558 DCHECK_EQ(index, scope_info->PositionInfoIndex());
560 scope_info->set(index++, Smi::zero());
561 scope_info->set(index++, Smi::zero());
562 DCHECK_EQ(index, scope_info->OuterScopeInfoIndex());
563 DCHECK_EQ(index, scope_info->length());
564 DCHECK_EQ(scope_info->ParameterCount(), parameter_count);
566 DCHECK_EQ(scope_info->ContextLength(), 0);
568 DCHECK_EQ(scope_info->ContextLength(),
569 scope_info->ContextHeaderLength() + 1);
572 return scope_info;
629 Handle<ScopeInfo> scope_info = isolate->factory()->NewScopeInfo(length);
633 scope_info->CopyElements(isolate, 0, *original, 0, kVariablePartIndex,
635 scope_info->set_flags(
636 HasLocalsBlockListBit::update(scope_info->Flags(), true));
642 scope_info->CopyElements(
644 scope_info->LocalsBlockListIndex() - kVariablePartIndex,
646 scope_info->set_locals_block_list(*blocklist);
647 scope_info->CopyElements(isolate, scope_info->LocalsBlockListIndex() + 1,
648 *original, scope_info->LocalsBlockListIndex(),
649 length - scope_info->LocalsBlockListIndex() - 1,
651 return scope_info;