Home
last modified time | relevance | path

Searched refs:native_context (Results 1 – 25 of 163) sorted by relevance

1234567

/third_party/node/deps/v8/src/builtins/
Dbuiltins-async-gen.cc31 const TNode<NativeContext> native_context = LoadNativeContext(context); in Await() local
50 LoadContextElement(native_context, Context::PROMISE_PROTOTYPE_INDEX); in Await()
65 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in Await()
75 var_value = NewJSPromise(native_context, outer_promise); in Await()
76 CallBuiltin(Builtin::kResolvePromise, native_context, var_value.value(), in Await()
92 LoadContextElement(native_context, Context::AWAIT_CONTEXT_MAP_INDEX)); in Await()
98 LoadContextElement(native_context, Context::SCOPE_INFO_INDEX); in Await()
102 native_context); in Await()
110 InitializeNativeClosure(closure_context, native_context, on_resolve, in Await()
116 InitializeNativeClosure(closure_context, native_context, on_reject, in Await()
[all …]
Dbuiltins-microtask-queue-gen.cc46 void EnterMicrotaskContext(TNode<Context> native_context);
57 TNode<Context> native_context) { in GetMicrotaskQueue() argument
58 CSA_DCHECK(this, IsNativeContext(native_context)); in GetMicrotaskQueue()
59 return LoadExternalPointerFromObject(native_context, in GetMicrotaskQueue()
107 TNode<Context> native_context, Label* bailout) { in PrepareForContext() argument
108 CSA_DCHECK(this, IsNativeContext(native_context)); in PrepareForContext()
111 GotoIf(WordEqual(GetMicrotaskQueue(native_context), IntPtrConstant(0)), in PrepareForContext()
114 EnterMicrotaskContext(native_context); in PrepareForContext()
115 SetCurrentContext(native_context); in PrepareForContext()
151 TNode<NativeContext> native_context = LoadNativeContext(microtask_context); in RunSingleMicrotask() local
[all …]
Dbuiltins-async-iterator-gen.cc33 std::function<void(const TNode<NativeContext> native_context,
69 const TNode<Context> context, const TNode<NativeContext> native_context,
110 const TNode<NativeContext> native_context = LoadNativeContext(context); in Generate_AsyncFromSyncIteratorMethod() local
131 if_method_undefined(native_context, promise, &reject_promise); in Generate_AsyncFromSyncIteratorMethod()
159 LoadIteratorResult(context, native_context, iter_result.value(), in Generate_AsyncFromSyncIteratorMethod()
163 CAST(LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX)); in Generate_AsyncFromSyncIteratorMethod()
171 value_wrapper = CallBuiltin(Builtin::kPromiseResolve, native_context, in Generate_AsyncFromSyncIteratorMethod()
179 CreateUnwrapClosure(native_context, done); in Generate_AsyncFromSyncIteratorMethod()
198 const TNode<Context> context, const TNode<NativeContext> native_context, in LoadIteratorResult() argument
209 LoadContextElement(native_context, Context::ITERATOR_RESULT_MAP_INDEX); in LoadIteratorResult()
[all …]
Dbuiltins-object-gen.cc104 TNode<NativeContext> native_context = LoadNativeContext(context); in ConstructAccessorDescriptor() local
106 native_context, Context::ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX)); in ConstructAccessorDescriptor()
126 TNode<NativeContext> native_context = LoadNativeContext(context); in ConstructDataDescriptor() local
128 native_context, Context::DATA_PROPERTY_DESCRIPTOR_MAP_INDEX)); in ConstructDataDescriptor()
191 TNode<NativeContext> native_context = LoadNativeContext(context); in GetOwnValuesOrEntries() local
193 LoadJSArrayElementsMap(PACKED_ELEMENTS, native_context); in GetOwnValuesOrEntries()
228 TNode<NativeContext> native_context = LoadNativeContext(context); in FastGetOwnValuesOrEntries() local
230 LoadJSArrayElementsMap(PACKED_ELEMENTS, native_context); in FastGetOwnValuesOrEntries()
508 TNode<NativeContext> native_context = LoadNativeContext(context); in TF_BUILTIN() local
510 LoadJSArrayElementsMap(PACKED_ELEMENTS, native_context); in TF_BUILTIN()
[all …]
Dbuiltins-shadow-realms.cc38 Handle<NativeContext> native_context; in BUILTIN() local
40 isolate, native_context, in BUILTIN()
53 O->set_native_context(*native_context); in BUILTIN()
113 Handle<NativeContext> caller_context = isolate->native_context(); in BUILTIN()
117 Handle<NativeContext>(shadow_realm->native_context(), isolate); in BUILTIN()
Dbuiltins-async-gen.h41 TNode<JSFunction> CreateUnwrapClosure(TNode<NativeContext> native_context,
46 TNode<NativeContext> native_context,
50 TNode<NativeContext> native_context, TNode<Oddball> done);
/third_party/node/deps/v8/src/numbers/
Dmath-random.cc18 Handle<Context> native_context) { in InitializeContext() argument
22 native_context->set_math_random_cache(*cache); in InitializeContext()
25 native_context->set_math_random_state(*pod); in InitializeContext()
26 ResetContext(*native_context); in InitializeContext()
29 void MathRandom::ResetContext(Context native_context) { in ResetContext() argument
30 native_context.set_math_random_index(Smi::zero()); in ResetContext()
32 PodArray<State>::cast(native_context.math_random_state()).set(0, state); in ResetContext()
36 Context native_context = Context::cast(Object(raw_native_context)); in RefillCache() local
39 PodArray<State>::cast(native_context.math_random_state()); in RefillCache()
58 FixedDoubleArray::cast(native_context.math_random_cache()); in RefillCache()
[all …]
Dmath-random.h17 Handle<Context> native_context);
19 static void ResetContext(Context native_context);
/third_party/node/deps/v8/src/init/
Dbootstrapper.cc184 Handle<NativeContext> native_context() { return native_context_; } in native_context() function in v8::internal::Genesis
273 Handle<Context> native_context,
286 Handle<Context> native_context);
389 Handle<NativeContext> context(isolate->native_context()); in CreateFunctionForBuiltin()
406 Handle<NativeContext> context(isolate->native_context()); in CreateFunctionForBuiltinWithPrototype()
455 Handle<NativeContext> context(isolate->native_context()); in CreateFunctionForBuiltinWithoutPrototype()
704 native_context()->set_empty_function(*empty_function); in CreateEmptyFunction()
728 native_context()->set_sloppy_function_without_prototype_map(*map); in CreateSloppyModeFunctionMaps()
735 native_context()->set_sloppy_function_with_readonly_prototype_map(*map); in CreateSloppyModeFunctionMaps()
742 native_context()->set_sloppy_function_map(*map); in CreateSloppyModeFunctionMaps()
[all …]
/third_party/node/deps/v8/src/api/
Dapi-natives.cc47 Isolate* isolate, Handle<NativeContext> native_context,
54 return InstantiateFunction(isolate, isolate->native_context(), data, in InstantiateFunction()
174 Handle<Context> native_context = isolate->native_context(); in GetIntrinsic() local
175 DCHECK(!native_context.is_null()); in GetIntrinsic()
179 return native_context->iname(); in GetIntrinsic()
290 Isolate* isolate, Handle<NativeContext> native_context, int serial_number, in ProbeInstantiationsCache() argument
299 native_context->fast_template_instantiations_cache(); in ProbeInstantiationsCache()
307 native_context->slow_template_instantiations_cache(); in ProbeInstantiationsCache()
317 Handle<NativeContext> native_context, in CacheTemplateInstantiation() argument
330 handle(native_context->fast_template_instantiations_cache(), isolate); in CacheTemplateInstantiation()
[all …]
/third_party/node/deps/v8/src/heap/
Dmemory-measurement-inl.h20 Address* native_context) { in Infer() argument
23 return InferForContext(isolate, Context::cast(object), native_context); in Infer()
25 *native_context = object.ptr(); in Infer()
29 native_context); in Infer()
38 native_context); in Infer()
Dmemory-measurement.h74 Address* native_context);
78 Address* native_context);
80 Address* native_context);
82 Address* native_context);
Dmemory-measurement.cc128 Handle<NativeContext> native_context = in ShouldMeasure() local
130 return context_->security_token() == native_context->security_token(); in ShouldMeasure()
340 Address* native_context) { in InferForContext() argument
347 *native_context = maybe_native_context.ptr(); in InferForContext()
355 Address* native_context) { in InferForJSFunction() argument
368 return InferForContext(isolate, Context::cast(maybe_context), native_context); in InferForJSFunction()
373 Address* native_context) { in InferForJSObject() argument
378 *native_context = maybe_context.ptr(); in InferForJSObject()
387 native_context); in InferForJSObject()
/third_party/node/deps/v8/src/objects/
Dcompilation-cache-table.cc24 Context native_context) { in SearchLiteralsMapEntry() argument
26 DCHECK(native_context.IsNativeContext()); in SearchLiteralsMapEntry()
38 HeapObjectReference::Weak(native_context)) { in SearchLiteralsMapEntry()
47 Handle<Context> native_context, in AddToFeedbackCellsMap() argument
49 Isolate* isolate = native_context->GetIsolate(); in AddToFeedbackCellsMap()
50 DCHECK(native_context->IsNativeContext()); in AddToFeedbackCellsMap()
66 entry = SearchLiteralsMapEntry(*cache, cache_entry, *native_context); in AddToFeedbackCellsMap()
94 HeapObjectReference::Weak(*native_context)); in AddToFeedbackCellsMap()
116 Context native_context) { in SearchLiteralsMap() argument
118 int entry = SearchLiteralsMapEntry(cache, cache_entry, native_context); in SearchLiteralsMap()
[all …]
Dosr-optimized-code-cache.cc23 Handle<NativeContext> native_context, in Insert() argument
31 Handle<OSROptimizedCodeCache> osr_cache(native_context->osr_code_cache(), in Insert()
52 entry = GrowOSRCache(isolate, native_context, &osr_cache); in Insert()
68 NativeContext native_context) { in Clear() argument
69 native_context.set_osr_code_cache(*OSROptimizedCodeCache::Empty(isolate)); in Clear()
73 Handle<NativeContext> native_context) { in Compact() argument
74 Handle<OSROptimizedCodeCache> osr_cache(native_context->osr_code_cache(), in Compact()
104 native_context->set_osr_code_cache(*new_osr_cache); in Compact()
174 Isolate* isolate, Handle<NativeContext> native_context, in GrowOSRCache() argument
184 native_context->set_osr_code_cache(**osr_cache); in GrowOSRCache()
Dtemplate-objects.cc19 Isolate* isolate, Handle<NativeContext> native_context, in GetTemplateObject() argument
27 if (native_context->template_weakmap().IsUndefined(isolate)) { in GetTemplateObject()
33 EphemeronHashTable::cast(native_context->template_weakmap()), isolate); in GetTemplateObject()
82 native_context->set_template_weakmap(*template_weakmap); in GetTemplateObject()
/third_party/node/deps/v8/src/snapshot/
Dcontext-serializer.cc25 SanitizeNativeContextScope(Isolate* isolate, NativeContext native_context, in SanitizeNativeContextScope() argument
29 native_context_(native_context), in SanitizeNativeContextScope()
30 microtask_queue_(native_context.microtask_queue()), in SanitizeNativeContextScope()
31 optimized_code_list_(native_context.OptimizedCodeListHead()), in SanitizeNativeContextScope()
32 deoptimized_code_list_(native_context.DeoptimizedCodeListHead()) { in SanitizeNativeContextScope()
46 native_context.set_microtask_queue(isolate, nullptr); in SanitizeNativeContextScope()
47 native_context.SetOptimizedCodeListHead(undefined); in SanitizeNativeContextScope()
48 native_context.SetDeoptimizedCodeListHead(undefined); in SanitizeNativeContextScope()
107 isolate(), context_.native_context(), allow_active_isolate_for_testing(), in Serialize()
/third_party/node/deps/v8/src/codegen/
Dcompilation-cache.cc219 Handle<Context> native_context, in Lookup() argument
231 table, source, outer_info, native_context, language_mode, position); in Lookup()
243 Handle<Context> native_context, in Put() argument
250 native_context, feedback_cell, position); in Put()
320 Handle<Context> native_context(context->native_context(), isolate()); in LookupEval() local
321 result = eval_contextual_.Lookup(source, outer_info, native_context, in LookupEval()
363 Handle<Context> native_context(context->native_context(), isolate()); in PutEval() local
364 eval_contextual_.Put(source, outer_info, function_info, native_context, in PutEval()
Doptimized-compilation-info.cc201 return !closure().is_null() && !closure()->native_context().is_null(); in has_native_context()
204 NativeContext OptimizedCompilationInfo::native_context() const { in native_context() function in v8::internal::OptimizedCompilationInfo
206 return closure()->native_context(); in native_context()
215 return native_context().global_object(); in global_object()
/third_party/node/deps/v8/src/ic/
Dcall-optimization.cc28 return constant_function_->native_context(); in GetAccessorContext()
31 return constructor.native_context(); in GetAccessorContext()
34 bool CallOptimization::IsCrossContextLazyAccessorPair(Context native_context, in IsCrossContextLazyAccessorPair() argument
36 DCHECK(native_context.IsNativeContext()); in IsCrossContextLazyAccessorPair()
38 return native_context != GetAccessorContext(holder_map); in IsCrossContextLazyAccessorPair()
Dkeyed-store-generic.cc120 TNode<NativeContext> native_context,
138 TNode<NativeContext> native_context,
265 TNode<FixedArrayBase> elements, TNode<NativeContext> native_context, in TryRewriteElements() argument
277 TNode<Map> packed_map = LoadJSArrayElementsMap(from_kind, native_context); in TryRewriteElements()
280 LoadContextElement(native_context, Context::ArrayMapIndex(to_kind))); in TryRewriteElements()
288 native_context, Context::ArrayMapIndex(holey_from_kind)); in TryRewriteElements()
291 native_context, Context::ArrayMapIndex(holey_to_kind))); in TryRewriteElements()
309 TNode<NativeContext> native_context, ElementsKind packed_kind, in TryChangeToHoleyMapHelper() argument
311 TNode<Map> packed_map = LoadJSArrayElementsMap(packed_kind, native_context); in TryChangeToHoleyMapHelper()
317 LoadContextElement(native_context, Context::ArrayMapIndex(holey_kind))); in TryChangeToHoleyMapHelper()
[all …]
/third_party/node/deps/v8/src/runtime/
Druntime-compiler.cc193 isolate->set_context(deoptimizer->function()->native_context()); in RUNTIME_FUNCTION()
261 function->native_context().osr_code_cache().FirstOsrOffsetFor( in RUNTIME_FUNCTION()
352 Handle<Context> native_context(context->native_context(), isolate); in CompileGlobalEval() local
359 isolate, native_context, source_object); in CompileGlobalEval()
362 return native_context->global_eval_fun(); in CompileGlobalEval()
366 native_context->ErrorMessageForCodeGenerationFromStrings(); in CompileGlobalEval()
395 if (*callee != isolate->native_context()->global_eval_fun()) { in RUNTIME_FUNCTION()
Druntime-shadow-realm.cc14 Handle<NativeContext> native_context = args.at<NativeContext>(0); in RUNTIME_FUNCTION() local
18 isolate, JSWrappedFunction::Create(isolate, native_context, value)); in RUNTIME_FUNCTION()
/third_party/node/deps/v8/src/deoptimizer/
Ddeoptimizer.cc181 NativeContext native_context = function_.native_context(); in FindDeoptimizingCode() local
182 Object element = native_context.DeoptimizedCodeListHead(); in FindDeoptimizingCode()
296 void Deoptimizer::DeoptimizeMarkedCodeForContext(NativeContext native_context) { in DeoptimizeMarkedCodeForContext() argument
299 Isolate* isolate = native_context.GetIsolate(); in DeoptimizeMarkedCodeForContext()
337 Object element = native_context.OptimizedCodeListHead(); in DeoptimizeMarkedCodeForContext()
351 native_context.SetOptimizedCodeListHead(next); in DeoptimizeMarkedCodeForContext()
355 code.set_next_code_link(native_context.DeoptimizedCodeListHead()); in DeoptimizeMarkedCodeForContext()
356 native_context.SetDeoptimizedCodeListHead(ToCodeT(code)); in DeoptimizeMarkedCodeForContext()
380 native_context.osr_code_cache().EvictDeoptimizedCode(isolate); in DeoptimizeMarkedCodeForContext()
393 NativeContext native_context = NativeContext::cast(context); in DeoptimizeAll() local
[all …]
/third_party/node/deps/v8/src/compiler/
Djs-create-lowering.cc179 ? native_context().fast_aliased_arguments_map() in ReduceJSCreateArguments()
180 : native_context().sloppy_arguments_map()); in ReduceJSCreateArguments()
207 jsgraph()->Constant(native_context().strict_arguments_map()); in ReduceJSCreateArguments()
235 native_context().js_array_packed_elements_map()); in ReduceJSCreateArguments()
282 has_aliased_arguments ? native_context().fast_aliased_arguments_map() in ReduceJSCreateArguments()
283 : native_context().sloppy_arguments_map()); in ReduceJSCreateArguments()
320 jsgraph()->Constant(native_context().strict_arguments_map()); in ReduceJSCreateArguments()
358 jsgraph()->Constant(native_context().js_array_packed_elements_map()); in ReduceJSCreateArguments()
756 native_context().initial_array_iterator_map()); in ReduceJSCreateArrayIterator()
796 native_context().async_function_object_map()); in ReduceJSCreateAsyncFunctionObject()
[all …]

1234567