Lines Matching defs:context
141 Handle<Context> context(isolate->context(), isolate);
142 DCHECK(context->IsModuleContext());
144 SourceTextModule::cast(context->extension()).regular_exports(), isolate);
161 value = *Factory::JSFunctionBuilder(isolate, sfi, context)
180 Handle<Context> context(isolate->context(), isolate);
209 value = Factory::JSFunctionBuilder(isolate, sfi, context)
237 // context, or a declaration block scope. Since this is called from eval, the
238 // context passed is the context of the caller, which may be some nested
239 // context and not the declaration context.
240 Handle<Context> context(isolate->context().declaration_context(), isolate);
242 DCHECK(context->IsFunctionContext() || context->IsNativeContext() ||
243 context->IsScriptContext() || context->IsEvalContext() ||
244 (context->IsBlockContext() &&
245 context->scope_info().is_declaration_scope()));
256 Context::Lookup(context, name, DONT_FOLLOW_CHAINS, &index, &attributes,
269 if (context->has_extension() && context->extension().IsJSGlobalObject()) {
270 Handle<JSGlobalObject> global(JSGlobalObject::cast(context->extension()),
274 } else if (context->IsScriptContext()) {
275 DCHECK(context->global_object().IsJSGlobalObject());
277 JSGlobalObject::cast(context->global_object()), isolate);
289 DCHECK(holder.is_identical_to(context));
290 context->set(index, *value);
296 } else if (context->has_extension()) {
297 object = handle(context->extension_object(), isolate);
299 } else if (context->scope_info().HasContextExtensionSlot()) {
303 DCHECK((context->IsBlockContext() &&
304 context->scope_info().is_declaration_scope()) ||
305 context->IsFunctionContext());
309 context->set_extension(*object);
415 // Store the context and the arguments array at the beginning of the
417 Handle<Context> context(isolate->context(), isolate);
423 mapped_count, context, arguments, AllocationType::kYoung);
447 // Walk all context slots to find context allocated parameters. Mark each
562 Handle<Context> context(isolate->context(), isolate);
563 return *Factory::JSFunctionBuilder{isolate, shared, context}
574 Handle<Context> context(isolate->context(), isolate);
577 return *Factory::JSFunctionBuilder{isolate, shared, context}
589 Handle<Context> outer(isolate->context(), isolate);
599 Handle<Context> current(isolate->context(), isolate);
610 Handle<Context> current(isolate->context(), isolate);
620 Handle<Context> current(isolate->context(), isolate);
634 Handle<Context> context(isolate->context(), isolate);
635 Handle<Object> holder = Context::Lookup(context, name, FOLLOW_CHAINS, &index,
646 // If the slot was found in a context or in module imports and exports it
652 // The slot was found in a JSReceiver, either a context extension object,
671 Handle<Context> context(isolate->context(), isolate);
672 Handle<Object> holder = Context::Lookup(context, name, FOLLOW_CHAINS, &index,
699 // Otherwise, if the slot was found the holder is a context extension
764 Isolate* isolate, Handle<Context> context, Handle<String> name,
773 Context::Lookup(context, name, context_lookup_flags, &index, &attributes,
788 // The property was found in a context slot.
805 // Slow case: The property is not in a context slot. It is either in a
806 // context extension object, a property of the subject of a with, or a
818 object = handle(context->global_object(), isolate);
835 Handle<Context> context(isolate->context(), isolate);
838 StoreLookupSlot(isolate, context, name, value, LanguageMode::kSloppy));
846 Handle<Context> context(isolate->context(), isolate);
849 StoreLookupSlot(isolate, context, name, value, LanguageMode::kStrict));
852 // Store into a dynamic declaration context for sloppy-mode block-scoped
861 Handle<Context> declaration_context(isolate->context().declaration_context(),