Lines Matching defs:context

186   // Creates some basic objects. Used for creating a context from scratch.
188 // Creates the empty function. Used for creating a context from scratch.
207 // context from scratch or using a deserialized one from the context snapshot
210 // rest of the context snapshot. At the end we link the global proxy and the
211 // context to each other.
219 // Hooks the given global proxy into the context in the case we do not
220 // replace the global object from the deserialized native context.
222 // The native context has a ScriptContextTable that store declarative bindings
226 // New context initialization. Used for creating a context from scratch.
369 Handle<Context> context) {
371 return ((*map == context->get(Context::STRICT_FUNCTION_MAP_INDEX)) ||
372 (*map == context->get(
375 context->get(
389 Handle<NativeContext> context(isolate->native_context());
390 DCHECK(IsFunctionMapOrSpecialBuiltin(map, builtin, context));
396 return Factory::JSFunctionBuilder{isolate, info, context}
406 Handle<NativeContext> context(isolate->native_context());
411 DCHECK(IsFunctionMapOrSpecialBuiltin(map, builtin, context));
419 Factory::JSFunctionBuilder{isolate, info, context}.set_map(map).Build();
455 Handle<NativeContext> context(isolate->native_context());
457 DCHECK(IsFunctionMapOrSpecialBuiltin(map, builtin, context));
463 return Factory::JSFunctionBuilder{isolate, info, context}
985 // maps in the native context. The "prototype" property descriptor is
1088 // maps in the native context. The "prototype" property descriptor is
1191 // Replace all of the cached initial array maps in the native context with
1235 static void AddToWeakNativeContextList(Isolate* isolate, Context context) {
1236 DCHECK(context.IsNativeContext());
1240 DCHECK(context.next_context_link().IsUndefined(isolate));
1241 // Check that context is not in the list yet.
1245 DCHECK(current != context);
1249 context.set(Context::NEXT_CONTEXT_LINK, heap->native_contexts_list(),
1251 heap->set_native_contexts_list(context);
1255 // Allocate the native context FixedArray first and then patch the
1258 // native context).
1276 Handle<Context> context =
1282 context->set(slot, native_context()->global_proxy());
1285 ScriptContextTable::Extend(isolate(), script_contexts, context);
1378 // Set the native context for the global object.
1381 // Set the native context of the global proxy.
1383 // Set the global proxy of the native context. If the native context has been
1397 // snapshot, and then set up the link to the native context.
1508 // Security setup: Set the security token of the native context to the global
2748 // TODO(ishell): microtask queue pointer will be moved from native context
4023 { // --- context extension
4024 // Create a function for the context extension objects.
4137 Handle<Context> context(isolate->context(), isolate);
4138 DCHECK(context->IsNativeContext());
4151 // Set up the function context. Conceptually, we should clone the
4152 // function before overwriting the context but since we're in a
4155 Factory::JSFunctionBuilder{isolate, function_info, context}.Build();
4337 // there's one global (per native context) map here that is used for the
4414 Handle<NativeContext> context(isolate_->native_context());
4415 Handle<JSGlobalObject> global(context->global_object(), isolate());
4421 Factory::JSFunctionBuilder{isolate(), info, context}.Build();
4476 SimpleInstallFunction(isolate_, console, "context", Builtin::kConsoleContext,
6297 // Before creating the roots we must save the context and restore it
6309 // context that is yet to be deserialized. We need to prepare a global
6324 // We can only de-serialize a context if the isolate was initialized from
6325 // a snapshot. Otherwise we have to build the context from scratch.
6326 // Also create a context from scratch to expose natives, if required by flag.
6329 Handle<Context> context;
6333 .ToHandle(&context)) {
6334 native_context_ = Handle<NativeContext>::cast(context);
6353 // The global proxy needs to be integrated into the native context.
6364 // We get here if there was no context snapshot.
6389 PrintF("[Initializing context from scratch took %0.3f ms]\n", ms);
6435 // Before creating the roots we must save the context and restore it
6468 // A remote global proxy has no native context.