Lines Matching defs:context
950 Handle<Context> context(
951 JSFunction::cast(reaction->fulfill_handler()).context(), isolate);
953 JSGeneratorObject::cast(context->extension()), isolate);
978 Handle<Context> context(function->context(), isolate);
979 Handle<JSFunction> combinator(context->native_context().promise_all(),
983 // Now peak into the Promise.all() resolve element context to
989 PromiseCapability::cast(context->get(index)), isolate);
997 Handle<Context> context(function->context(), isolate);
999 context->native_context().promise_all_settled(), isolate);
1002 // Now peak into the Promise.allSettled() resolve element context to
1008 PromiseCapability::cast(context->get(index)), isolate);
1015 Handle<Context> context(function->context(), isolate);
1016 Handle<JSFunction> combinator(context->native_context().promise_any(),
1020 // Now peak into the Promise.any() reject element context to
1025 PromiseCapability::cast(context->get(index)), isolate);
1032 Handle<Context> context(function->context(), isolate);
1034 handle(JSPromise::cast(context->get(PromiseBuiltins::kPromiseSlot)),
1077 Handle<Context> context(
1078 JSFunction::cast(promise_reaction_job_task->handler()).context(),
1081 JSGeneratorObject::cast(context->extension()), isolate);
1144 isolate->context())) {
1469 DCHECK(!context().is_null());
1496 // current lexical context and the accessed object.
1507 // Get the native context of current top context.
1885 auto FoundHandler = [&](Context context, Address instruction_start,
1890 thread_local_top()->pending_handler_context_ = context;
1912 if (!catchable_by_js && !context().is_null()) {
2070 int context_reg = 0; // Will contain register index holding context.
2086 // the correct context for the handler from the interpreter register.
2087 Context context =
2089 DCHECK(context.IsContext());
2095 // Patch the context register directly on the frame, so that we don't
2096 // need to have a context read + write in the baseline code.
2097 sp_frame->PatchContext(context);
2113 // it and the context in which this C++ code runs.
2115 return FoundHandler(context, code.InstructionStart(), 0,
2812 void Isolate::InstallConditionalFeatures(Handle<Context> context) {
2813 Handle<JSGlobalObject> global = handle(context->global_object(), this);
2815 if (IsSharedArrayBufferConstructorEnabled(context)) {
2824 bool Isolate::IsSharedArrayBufferConstructorEnabled(Handle<Context> context) {
2830 v8::Local<v8::Context> api_context = v8::Utils::ToLocal(context);
2836 bool Isolate::IsWasmSimdEnabled(Handle<Context> context) {
2839 v8::Local<v8::Context> api_context = v8::Utils::ToLocal(context);
2848 bool Isolate::AreWasmExceptionsEnabled(Handle<Context> context) {
2851 v8::Local<v8::Context> api_context = v8::Utils::ToLocal(context);
2866 v8::Utils::ToLocal(handle(context(), this));
2876 // 1st candidate: most-recently-entered author function's context
2886 Context context = Context::cast(it.frame()->context());
2887 return Handle<Context>(context.native_context(), this);
2890 // 2nd candidate: the last Context::Scope's incumbent context if any.
2896 // Last candidate: the entered context or microtask context.
2898 // no cross-context function running, then the incumbent realm must match
2914 DCHECK(context().is_null() || context().IsContext());
4445 Object context = heap()->native_contexts_list();
4446 while (!context.IsUndefined(this)) {
4447 Context current_context = Context::cast(context);
4455 context = current_context.next_context_link();
4462 Object context = heap()->native_contexts_list();
4463 while (!context.IsUndefined(this)) {
4464 Context current_context = Context::cast(context);
4468 context = current_context.next_context_link();
4890 Handle<Context> context, Handle<JSObject> error, Handle<JSArray> sites) {
4891 v8::Local<v8::Context> api_context = Utils::ToLocal(context);
5158 // - requires a current native context, which may not always exist.
5159 // TODO(jgruber): Consider either removing the native context requirement in
5161 if (heap_.gc_state() == Heap::NOT_IN_GC && !context().is_null()) {
5162 DCHECK(context().IsContext());
5163 DCHECK(context().native_context().IsNativeContext());
5199 // (number of GC since the context was detached, the context).
5200 void Isolate::AddDetachedContext(Handle<Context> context) {
5205 MaybeObjectHandle::Weak(context));
5217 MaybeObject context = detached_contexts->Get(i + 1);
5218 DCHECK(context->IsWeakOrCleared());
5219 if (!context->IsCleared()) {
5222 detached_contexts->Set(new_length + 1, context);
5237 MaybeObject context = detached_contexts->Get(i + 1);
5238 DCHECK(context->IsWeakOrCleared());
5240 PrintF("detached context %p\n survived %d GCs (leak?)\n",
5241 reinterpret_cast<void*>(context.ptr()), mark_sweeps);
5423 if (!isolate->context().is_null()) {
5424 context_ = Handle<Context>(isolate->context(), isolate);
5446 : isolate_(isolate), context_(isolate->context(), isolate) {}
5523 Handle<NativeContext> context) {
5525 i::Object id = context->recorder_context_id();
5528 context->set_recorder_context_id(
5535 ToApiHandle<v8::Context>(context)));