Searched refs:scope_info (Results 1 - 25 of 54) sorted by relevance

123

/external/v8/src/ast/
H A Dscopeinfo.cc84 Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length); local
102 scope_info->SetFlags(flags);
103 scope_info->SetParameterCount(parameter_count);
104 scope_info->SetStackLocalCount(stack_local_count);
105 scope_info->SetContextLocalCount(context_local_count);
106 scope_info->SetContextGlobalCount(context_global_count);
107 scope_info->SetStrongModeFreeVariableCount(strong_mode_free_variable_count);
111 DCHECK(index == scope_info->ParameterEntriesIndex());
113 scope_info->set(index++, *scope->parameter(i)->name());
125 DCHECK(index == scope_info
244 Handle<ScopeInfo> scope_info = factory->NewScopeInfo(length); local
530 ContextSlotIndex(Handle<ScopeInfo> scope_info, Handle<String> name, VariableMode* mode, InitializationFlag* init_flag, MaybeAssignedFlag* maybe_assigned_flag) argument
572 ContextGlobalSlotIndex(Handle<ScopeInfo> scope_info, Handle<String> name, VariableMode* mode, InitializationFlag* init_flag, MaybeAssignedFlag* maybe_assigned_flag) argument
793 PrintList(const char* list_name, int nof_internal_slots, int start, int end, ScopeInfo* scope_info) argument
[all...]
H A Dscopes.cc117 Handle<ScopeInfo> scope_info, AstValueFactory* value_factory)
130 SetDefaults(scope_type, NULL, scope_info);
131 if (!scope_info.is_null()) {
170 Handle<ScopeInfo> scope_info,
209 scope_info_ = scope_info;
212 if (!scope_info.is_null()) {
213 scope_calls_eval_ = scope_info->CallsEval();
214 language_mode_ = scope_info->language_mode();
215 is_declaration_scope_ = scope_info->is_declaration_scope();
216 function_kind_ = scope_info
116 Scope(Zone* zone, Scope* inner_scope, ScopeType scope_type, Handle<ScopeInfo> scope_info, AstValueFactory* value_factory) argument
169 SetDefaults(ScopeType scope_type, Scope* outer_scope, Handle<ScopeInfo> scope_info, FunctionKind function_kind) argument
239 ScopeInfo* scope_info = context->scope_info(); local
244 ScopeInfo* scope_info = context->module()->scope_info(); local
249 ScopeInfo* scope_info = context->closure()->shared()->scope_info(); local
256 ScopeInfo* scope_info = context->scope_info(); local
[all...]
H A Dscopes.h809 Handle<ScopeInfo> scope_info, AstValueFactory* value_factory);
833 Handle<ScopeInfo> scope_info,
/external/v8/src/debug/
H A Ddebug-frames.cc102 Handle<ScopeInfo> scope_info) {
105 for (int i = 0; i < scope_info->ParameterCount(); ++i) {
109 Handle<String> name(scope_info->ParameterName(i));
110 if (ParameterIsShadowedByContextLocal(scope_info, name)) continue;
122 for (int i = 0; i < scope_info->StackLocalCount(); ++i) {
123 if (scope_info->LocalIsSynthetic(i)) continue;
124 Handle<String> name(scope_info->StackLocalName(i));
125 Handle<Object> value(GetExpression(scope_info->StackLocalIndex(i)),
137 Handle<ScopeInfo> scope_info(shared->scope_info());
101 MaterializeStackLocals(Handle<JSObject> target, Handle<ScopeInfo> scope_info) argument
142 UpdateStackLocalsFromMaterializedObject( Handle<JSObject> target, Handle<ScopeInfo> scope_info) argument
[all...]
H A Ddebug-scopes.cc36 Handle<ScopeInfo> scope_info(shared_info->scope_info());
72 if (scope_info->HasContext()) {
79 if (scope_info->scope_type() == FUNCTION_SCOPE) {
80 nested_scope_chain_.Add(scope_info);
89 if (scope_info->scope_type() != FUNCTION_SCOPE) {
93 if (scope_info->scope_type() == SCRIPT_SCOPE) {
96 DCHECK(scope_info->scope_type() == EVAL_SCOPE);
185 Handle<ScopeInfo> scope_info = nested_scope_chain_.last(); local
186 switch (scope_info
548 Handle<ScopeInfo> scope_info = nested_scope_chain_.last(); local
592 SetContextLocalValue(Handle<ScopeInfo> scope_info, Handle<Context> context, Handle<String> variable_name, Handle<Object> new_value) argument
679 Handle<ScopeInfo> scope_info = CurrentScopeInfo(); local
777 CopyContextLocalsToScopeObject( Handle<ScopeInfo> scope_info, Handle<Context> context, Handle<JSObject> scope_object) argument
[all...]
H A Ddebug-frames.h35 Handle<ScopeInfo> scope_info);
41 Handle<ScopeInfo> scope_info);
H A Ddebug-scopes.h132 bool SetContextLocalValue(Handle<ScopeInfo> scope_info,
137 void CopyContextLocalsToScopeObject(Handle<ScopeInfo> scope_info,
H A Ddebug-evaluate.cc187 context_chain_element.scope_info = it.CurrentScopeInfo();
217 context_chain_element.scope_info = it.CurrentScopeInfo();
227 context_chain_element.scope_info = it.CurrentScopeInfo();
260 element.scope_info);
261 if (element.scope_info->scope_type() == FUNCTION_SCOPE) {
399 } else if (local_function->shared()->scope_info()->HasReceiver()) {
H A Ddebug-evaluate.h65 Handle<ScopeInfo> scope_info; member in struct:v8::internal::DebugEvaluate::ContextBuilder::ContextChainElement
H A Dliveedit.js847 this.scope_info = raw_array[6];
887 var scope_info1 = function_info1.scope_info;
888 var scope_info2 = function_info2.scope_info;
H A Dliveedit.cc743 Handle<HeapObject>(shared->scope_info()));
1679 if (new_shared->scope_info()->HasNewTarget()) {
1981 return shared->scope_info()->HasNewTarget();
/external/v8/src/
H A Dcontexts.cc45 Handle<ScopeInfo> scope_info(context->scope_info());
47 scope_info, name, &result->mode, &result->init_flag,
104 ScopeInfo* Context::scope_info() { function in class:v8::internal::Context
109 object = SloppyBlockWithEvalContextExtension::cast(object)->scope_info();
318 Handle<ScopeInfo> scope_info(context->IsFunctionContext()
319 ? context->closure()->shared()->scope_info()
320 : context->scope_info());
327 scope_info, name, &mode, &init_flag, &maybe_assigned_flag);
344 int function_index = scope_info
393 ScopeInfo* scope_info = this->scope_info(); local
[all...]
H A Dcompiler.cc849 Handle<ScopeInfo> scope_info = local
851 shared->set_scope_info(*scope_info);
1128 if (shared->scope_info() == ScopeInfo::Empty(info->isolate())) {
1234 Handle<ScopeInfo> scope_info = local
1236 info.shared_info()->set_scope_info(*scope_info);
1638 Handle<ScopeInfo> scope_info; local
1650 scope_info = Handle<ScopeInfo>(ScopeInfo::Empty(isolate));
1655 scope_info = ScopeInfo::Create(info.isolate(), info.zone(), info.scope());
1669 literal->kind(), info.code(), scope_info, info.feedback_vector());
1697 existing->set_scope_info(*scope_info);
[all...]
H A Dfactory.h58 NewSloppyBlockWithEvalContextExtension(Handle<ScopeInfo> scope_info,
229 Handle<ScopeInfo> scope_info);
235 Handle<Context> NewModuleContext(Handle<ScopeInfo> scope_info);
254 Handle<ScopeInfo> scope_info);
394 Handle<ScopeInfo> scope_info);
631 Handle<Code> code, Handle<ScopeInfo> scope_info,
H A Dfactory.cc105 Handle<ScopeInfo> scope_info, Handle<JSObject> extension) {
106 DCHECK(scope_info->is_declaration_scope());
110 result->set_scope_info(*scope_info);
751 Handle<ScopeInfo> scope_info) {
753 NewFixedArray(scope_info->ContextLength(), TENURED);
758 context->set_extension(*scope_info);
775 Handle<Context> Factory::NewModuleContext(Handle<ScopeInfo> scope_info) { argument
777 NewFixedArray(scope_info->ContextLength(), TENURED);
833 Handle<ScopeInfo> scope_info) {
834 Handle<FixedArray> array = NewFixedArray(scope_info
104 NewSloppyBlockWithEvalContextExtension( Handle<ScopeInfo> scope_info, Handle<JSObject> extension) argument
750 NewScriptContext(Handle<JSFunction> function, Handle<ScopeInfo> scope_info) argument
831 NewBlockContext(Handle<JSFunction> function, Handle<Context> previous, Handle<ScopeInfo> scope_info) argument
1395 Handle<ScopeInfo> scope_info = Handle<ScopeInfo>::cast(array); local
1512 NewJSModule(Handle<Context> context, Handle<ScopeInfo> scope_info) argument
2087 NewSharedFunctionInfo( Handle<String> name, int number_of_literals, FunctionKind kind, Handle<Code> code, Handle<ScopeInfo> scope_info, Handle<TypeFeedbackVector> feedback_vector) argument
[all...]
H A Dframes.cc1201 // doesn't contain scope info, scope_info will return 0 for the number of
1205 ScopeInfo* scope_info = shared->scope_info(); local
1236 if (i < scope_info->ParameterCount()) {
1237 accumulator->PrintName(scope_info->ParameterName(i));
1257 int stack_locals_count = scope_info->StackLocalCount();
1258 int heap_locals_count = scope_info->ContextLocalCount();
1267 accumulator->PrintName(scope_info->StackLocalName(i));
1293 accumulator->PrintName(scope_info->ContextLocalName(i));
/external/v8/src/runtime/
H A Druntime-scopes.cc300 handle(context->scope_info()), object);
514 Handle<ScopeInfo> scope_info(callee->shared()->scope_info());
517 Handle<String> name(scope_info->ParameterName(index));
518 int context_local_count = scope_info->ContextLocalCount();
521 if (scope_info->ParameterName(j) == *name) {
537 if (scope_info->ContextLocalName(j) == *name) {
747 static Object* FindNameClash(Handle<ScopeInfo> scope_info, argument
750 Isolate* isolate = scope_info->GetIsolate();
751 for (int var = 0; var < scope_info
[all...]
H A Druntime-debug.cc532 Handle<ScopeInfo> scope_info(shared->scope_info());
533 DCHECK(*scope_info != ScopeInfo::Empty(isolate));
536 int local_count = scope_info->LocalCount();
537 for (int slot = 0; slot < scope_info->LocalCount(); ++slot) {
540 if (scope_info->LocalIsSynthetic(slot)) local_count--;
549 for (; i < scope_info->StackLocalCount(); ++i) {
551 if (scope_info->LocalIsSynthetic(i)) continue;
552 locals->set(local * 2, scope_info->LocalName(i));
560 for (; i < scope_info
[all...]
H A Druntime-object.cc320 Handle<ScopeInfo> scope_info(script_context->scope_info(), isolate);
321 Handle<Name> name(scope_info->ContextSlotName(slot), isolate);
355 Handle<ScopeInfo> scope_info(script_context->scope_info(), isolate);
356 Handle<Name> name(scope_info->ContextSlotName(slot), isolate);
H A Druntime-function.cc169 target_shared->set_scope_info(source_shared->scope_info());
/external/v8/test/unittests/compiler/
H A Djs-context-relaxation-unittest.cc198 Handle<ScopeInfo> scope_info = Handle<ScopeInfo>::null(); local
199 const Operator* op = javascript()->CreateBlockContext(scope_info);
221 Handle<ScopeInfo> scope_info = Handle<ScopeInfo>::null(); local
222 const Operator* op = javascript()->CreateScriptContext(scope_info);
/external/v8/src/heap/
H A Dobject-stats.cc221 if (sfi->scope_info() != heap->empty_fixed_array()) {
223 SCOPE_INFO_SUB_TYPE, FixedArray::cast(sfi->scope_info())->Size());
/external/v8/src/compiler/
H A Djs-generic-lowering.cc547 Handle<ScopeInfo> scope_info = OpParameter<Handle<ScopeInfo>>(node); local
548 node->InsertInput(zone(), 0, jsgraph()->HeapConstant(scope_info));
554 Handle<ScopeInfo> scope_info = OpParameter<Handle<ScopeInfo>>(node); local
555 node->InsertInput(zone(), 1, jsgraph()->HeapConstant(scope_info));
/external/v8/src/interpreter/
H A Dbytecode-generator.cc1979 Register scope_info = register_allocator()->NewRegister(); local
1980 DCHECK(Register::AreContiguous(closure, scope_info));
1985 .StoreAccumulatorInRegister(scope_info)
2030 Register scope_info = register_allocator()->NextConsecutiveRegister(); local
2035 .StoreAccumulatorInRegister(scope_info);
2039 .CallRuntime(Runtime::kPushBlockContext, scope_info, 2);
/external/v8/src/profiler/
H A Dheap-snapshot-generator.cc1231 ScopeInfo* scope_info = context->closure()->shared()->scope_info(); local
1233 int context_locals = scope_info->ContextLocalCount();
1235 String* local_name = scope_info->ContextLocalName(i);
1240 if (scope_info->HasFunctionName()) {
1241 String* name = scope_info->FunctionName();
1243 int idx = scope_info->FunctionContextSlotIndex(name, &mode);
1368 TagObject(shared->scope_info(), "(function scope info)");
1370 "scope_info", shared->scope_info(),
[all...]

Completed in 440 milliseconds

123