Home
last modified time | relevance | path

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

12345

/external/v8/src/builtins/
Dbuiltins-promise-gen.cc22 Node* const native_context = LoadNativeContext(context); in AllocateJSPromise() local
24 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in AllocateJSPromise()
94 Node* promise, Node* debug_event, Node* native_context) { in CreatePromiseResolvingFunctions() argument
96 promise, debug_event, native_context); in CreatePromiseResolvingFunctions()
98 native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX); in CreatePromiseResolvingFunctions()
100 native_context, in CreatePromiseResolvingFunctions()
105 native_context, in CreatePromiseResolvingFunctions()
117 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
125 LoadContextElement(native_context, in TF_BUILTIN()
132 AllocateAndInitJSPromise(native_context, UndefinedConstant()); in TF_BUILTIN()
[all …]
Dbuiltins-promise-gen.h104 Node* promise, Node* native_context, Node* promise_context);
116 Node* native_context);
118 Node* native_context);
121 Node* native_context);
123 Node* CreatePromiseGetCapabilitiesExecutorContext(Node* native_context,
136 Node* CreatePromiseContext(Node* native_context, int slots);
145 void BranchIfPromiseResolveLookupChainIntact(Node* native_context,
153 void BranchIfPromiseSpeciesLookupChainIntact(Node* native_context,
161 void BranchIfPromiseThenLookupChainIntact(Node* native_context,
165 Node* InvokeResolve(Node* native_context, Node* constructor, Node* value,
[all …]
Dbuiltins-async-gen.cc33 Node* const native_context = LoadNativeContext(context); in Await() local
49 InitializeFunctionContext(native_context, closure_context, context_length); in Await()
55 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in Await()
87 InitializeNativeClosure(closure_context, native_context, on_resolve, in Await()
94 InitializeNativeClosure(closure_context, native_context, on_reject, in Await()
157 Node* const native_context = LoadNativeContext(context); in AwaitOptimized() local
159 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in AwaitOptimized()
180 InitializeFunctionContext(native_context, closure_context, context_length); in AwaitOptimized()
204 InitializeNativeClosure(closure_context, native_context, on_resolve, in AwaitOptimized()
211 InitializeNativeClosure(closure_context, native_context, on_reject, in AwaitOptimized()
[all …]
Dbuiltins-async-iterator-gen.cc82 Node* const native_context,
122 Node* const native_context = LoadNativeContext(context); in Generate_AsyncFromSyncIteratorMethod() local
142 if_method_undefined(native_context, promise, &reject_promise); in Generate_AsyncFromSyncIteratorMethod()
154 context, native_context, iter_result, &reject_promise, &var_exception); in Generate_AsyncFromSyncIteratorMethod()
164 Node* const on_fulfilled = CreateUnwrapClosure(native_context, done); in Generate_AsyncFromSyncIteratorMethod()
187 Node* const native_context = LoadNativeContext(context); in Generate_AsyncFromSyncIteratorMethodOptimized() local
207 if_method_undefined(native_context, promise, &reject_promise); in Generate_AsyncFromSyncIteratorMethodOptimized()
219 context, native_context, iter_result, &reject_promise, &var_exception); in Generate_AsyncFromSyncIteratorMethodOptimized()
222 LoadContextElement(native_context, Context::PROMISE_FUNCTION_INDEX); in Generate_AsyncFromSyncIteratorMethodOptimized()
227 native_context, promise_fun, value); in Generate_AsyncFromSyncIteratorMethodOptimized()
[all …]
Dbuiltins-arguments-gen.cc174 Node* const native_context = LoadNativeContext(context); in EmitFastNewRestParameter() local
176 LoadJSArrayElementsMap(PACKED_ELEMENTS, native_context); in EmitFastNewRestParameter()
230 Node* const native_context = LoadNativeContext(context); in EmitFastNewStrictArguments() local
232 LoadContextElement(native_context, Context::STRICT_ARGUMENTS_MAP_INDEX); in EmitFastNewStrictArguments()
297 Node* const native_context = LoadNativeContext(context); in EmitFastNewSloppyArguments() local
299 native_context, Context::FAST_ALIASED_ARGUMENTS_MAP_INDEX); in EmitFastNewSloppyArguments()
377 Node* const native_context = LoadNativeContext(context); in EmitFastNewSloppyArguments() local
379 LoadContextElement(native_context, Context::SLOPPY_ARGUMENTS_MAP_INDEX); in EmitFastNewSloppyArguments()
391 Node* const native_context = LoadNativeContext(context); in EmitFastNewSloppyArguments() local
393 LoadContextElement(native_context, Context::SLOPPY_ARGUMENTS_MAP_INDEX); in EmitFastNewSloppyArguments()
Dbuiltins-object-gen.cc111 Node* native_context = LoadNativeContext(context); in ConstructAccessorDescriptor() local
113 native_context, Context::ACCESSOR_PROPERTY_DESCRIPTOR_MAP_INDEX); in ConstructAccessorDescriptor()
135 Node* native_context = LoadNativeContext(context); in ConstructDataDescriptor() local
136 Node* map = LoadContextElement(native_context, in ConstructDataDescriptor()
226 Node* native_context = LoadNativeContext(context); in GetOwnValuesOrEntries() local
227 Node* array_map = LoadJSArrayElementsMap(PACKED_ELEMENTS, native_context); in GetOwnValuesOrEntries()
270 TNode<Context> native_context = LoadNativeContext(context); in FastGetOwnValuesOrEntries() local
272 LoadJSArrayElementsMap(PACKED_ELEMENTS, native_context); in FastGetOwnValuesOrEntries()
742 Node* native_context = LoadNativeContext(context); in TF_BUILTIN() local
743 Node* array_map = LoadJSArrayElementsMap(PACKED_ELEMENTS, native_context); in TF_BUILTIN()
[all …]
Dbuiltins-intl.cc535 Handle<NativeContext> native_context(isolate->context()->native_context(), in BUILTIN() local
539 native_context, NumberFormat::ContextSlot::kLength); in BUILTIN()
545 native_context->number_format_internal_format_number_shared_fun(), in BUILTIN()
624 Handle<NativeContext> native_context(isolate->context()->native_context(), in BUILTIN() local
627 native_context, DateFormat::ContextSlot::kLength); in BUILTIN()
633 native_context->date_format_internal_format_shared_fun(), isolate); in BUILTIN()
769 isolate->native_context()->intl_locale_function(), isolate); in BUILTIN()
781 isolate->native_context()->intl_locale_function(), isolate); in BUILTIN()
1214 Handle<NativeContext> native_context(isolate->context()->native_context(), in BUILTIN() local
1217 native_context, JSCollator::ContextSlot::kLength); in BUILTIN()
[all …]
Dbuiltins-async-gen.h82 Node* CreateUnwrapClosure(Node* const native_context, Node* const done);
85 void InitializeNativeClosure(Node* context, Node* native_context,
87 Node* AllocateAsyncIteratorValueUnwrapContext(Node* native_context,
Dbuiltins-regexp-gen.cc66 TNode<Context> native_context = LoadNativeContext(context); in AllocateRegExpResult() local
68 LoadContextElement(native_context, Context::REGEXP_RESULT_MAP_INDEX)); in AllocateRegExpResult()
96 TNode<Context> context, TNode<Context> native_context, in RegExpCreate() argument
99 CAST(LoadContextElement(native_context, Context::REGEXP_FUNCTION_INDEX)); in RegExpCreate()
254 TNode<Context> native_context = LoadNativeContext(context); in ConstructNewResultFromMatchInfo() local
256 native_context, Context::SLOW_OBJECT_WITH_NULL_PROTOTYPE_MAP)); in ConstructNewResultFromMatchInfo()
734 TNode<Context> native_context = LoadNativeContext(context); in RegExpPrototypeExecBodyWithoutResult() local
736 native_context, Context::REGEXP_LAST_MATCH_INFO_INDEX)); in RegExpPrototypeExecBodyWithoutResult()
835 Node* const native_context = LoadNativeContext(context); in IsFastRegExpNoPrototype() local
837 LoadContextElement(native_context, Context::REGEXP_FUNCTION_INDEX); in IsFastRegExpNoPrototype()
[all …]
Dbuiltins-proxy-gen.cc115 Node* native_context = LoadNativeContext(context); in AllocateJSArrayForCodeStubArguments() local
116 Node* array_map = LoadJSArrayElementsMap(PACKED_ELEMENTS, native_context); in AllocateJSArrayForCodeStubArguments()
125 Node* proxy, Node* native_context) { in CreateProxyRevokeFunctionContext() argument
128 InitializeFunctionContext(native_context, context, kProxyContextLength); in CreateProxyRevokeFunctionContext()
135 Node* const native_context = LoadNativeContext(context); in AllocateProxyRevokeFunction() local
138 CreateProxyRevokeFunctionContext(proxy, native_context); in AllocateProxyRevokeFunction()
140 native_context, Context::STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX); in AllocateProxyRevokeFunction()
142 LoadContextElement(native_context, Context::PROXY_REVOKE_SHARED_FUN); in AllocateProxyRevokeFunction()
211 Node* const native_context = LoadNativeContext(context); in TF_BUILTIN() local
230 native_context, Context::PROXY_REVOCABLE_RESULT_MAP_INDEX); in TF_BUILTIN()
Dbuiltins-arraybuffer.cc42 (*target == target->native_context()->array_buffer_fun()) in ConstructBuffer()
60 DCHECK(*target == target->native_context()->array_buffer_fun() || in BUILTIN()
61 *target == target->native_context()->shared_array_buffer_fun()); in BUILTIN()
87 Handle<JSFunction> target(isolate->native_context()->array_buffer_fun(), in BUILTIN()
Dbuiltins-collections-gen.cc44 TNode<Context> native_context,
52 TNode<Context> native_context,
60 TNode<Context> native_context,
96 TNode<Context> native_context);
102 TNode<Context> native_context);
117 TNode<Context> native_context,
164 Variant variant, TNode<Context> context, TNode<Context> native_context, in AddConstructorEntries() argument
179 HasInitialCollectionPrototype(variant, native_context, collection), in AddConstructorEntries()
194 AddConstructorEntriesFromFastJSArray(variant, context, native_context, in AddConstructorEntries()
202 CSA_ASSERT(this, HasInitialCollectionPrototype(variant, native_context, in AddConstructorEntries()
[all …]
/external/v8/src/
Dbootstrapper.cc171 Handle<NativeContext> native_context() { return native_context_; } in native_context() function in v8::internal::BASE_EMBEDDED
267 Handle<Context> native_context,
281 Handle<Context> native_context);
622 native_context()->set_empty_function(*empty_function); in CreateEmptyFunction()
646 native_context()->set_sloppy_function_without_prototype_map(*map); in CreateSloppyModeFunctionMaps()
653 native_context()->set_sloppy_function_with_readonly_prototype_map(*map); in CreateSloppyModeFunctionMaps()
660 native_context()->set_sloppy_function_map(*map); in CreateSloppyModeFunctionMaps()
664 native_context()->set_sloppy_function_with_name_map(*map); in CreateSloppyModeFunctionMaps()
709 native_context()->set_strict_function_without_prototype_map(*map); in CreateStrictModeFunctionMaps()
712 native_context()->set_method_with_name_map(*map); in CreateStrictModeFunctionMaps()
[all …]
Dcompilation-cache.cc131 Handle<Context> native_context, LanguageMode language_mode) { in Lookup() argument
141 table->LookupScript(source, native_context, language_mode); in Lookup()
173 Handle<Context> native_context, in Put() argument
178 SetFirstTable(CompilationCacheTable::PutScript(table, source, native_context, in Put()
184 Handle<Context> native_context, in Lookup() argument
195 result = table->LookupEval(source, outer_info, native_context, language_mode, in Lookup()
208 Handle<Context> native_context, in Put() argument
215 native_context, feedback_cell, position); in Put()
266 Handle<Context> native_context, LanguageMode language_mode) { in LookupScript() argument
270 resource_options, native_context, language_mode); in LookupScript()
[all …]
Dcompilation-cache.h86 Handle<Context> native_context,
121 Handle<Context> native_context,
126 Handle<Context> native_context, Handle<FeedbackCell> feedback_cell,
161 Handle<Context> native_context, LanguageMode language_mode);
178 void PutScript(Handle<String> source, Handle<Context> native_context,
Doptimized-compilation-info.cc150 return !closure().is_null() && (closure()->native_context() != nullptr); in has_native_context()
153 Context* OptimizedCompilationInfo::native_context() const { in native_context() function in v8::internal::OptimizedCompilationInfo
154 return has_native_context() ? closure()->native_context() : nullptr; in native_context()
162 return has_global_object() ? native_context()->global_object() : nullptr; in global_object()
Disolate-inl.h29 Handle<NativeContext> Isolate::native_context() { in native_context() function
30 return handle(context()->native_context(), this); in native_context()
34 return context()->native_context(); in raw_native_context()
Dapi-natives.cc167 Handle<Context> native_context = isolate->native_context(); in GetIntrinsic() local
168 DCHECK(!native_context.is_null()); in GetIntrinsic()
172 return native_context->iname(); in GetIntrinsic()
314 isolate->native_context()->set_fast_template_instantiations_cache( in CacheTemplateInstantiation()
325 isolate->native_context()->set_slow_template_instantiations_cache( in CacheTemplateInstantiation()
347 isolate->native_context()->set_slow_template_instantiations_cache(*cache); in UncacheTemplateInstantiation()
359 return fun->context()->native_context() == isolate->raw_native_context(); in IsSimpleInstantiation()
638 shared, isolate->native_context()); in CreateApiFunction()
Dcontexts-inl.h76 NativeContext* Context::native_context() const { in native_context() function
119 return this->native_context()->security_token() == in HasSameSecurityTokenAs()
120 that->native_context()->security_token(); in HasSameSecurityTokenAs()
/external/v8/src/runtime/
Druntime-maths.cc21 Handle<Context> native_context = isolate->native_context(); in RUNTIME_FUNCTION() local
22 DCHECK_EQ(0, native_context->math_random_index()->value()); in RUNTIME_FUNCTION()
33 if (native_context->math_random_cache()->IsFixedDoubleArray()) { in RUNTIME_FUNCTION()
35 FixedDoubleArray::cast(native_context->math_random_cache()), isolate); in RUNTIME_FUNCTION()
41 native_context->set_math_random_cache(*cache); in RUNTIME_FUNCTION()
Druntime-compiler.cc162 isolate->set_context(deoptimizer->function()->native_context()); in RUNTIME_FUNCTION()
300 Handle<Context> native_context(context->native_context(), isolate); in CompileGlobalEval() local
304 if (native_context->allow_code_gen_from_strings()->IsFalse(isolate) && in CompileGlobalEval()
305 !Compiler::CodeGenerationFromStringsAllowed(isolate, native_context, in CompileGlobalEval()
308 native_context->ErrorMessageForCodeGenerationFromStrings(); in CompileGlobalEval()
341 if (*callee != isolate->native_context()->global_eval_fun() || in RUNTIME_FUNCTION()
/external/v8/src/ic/
Dcall-optimization.cc25 return constant_function_->context()->native_context(); in GetAccessorContext()
28 return constructor->context()->native_context(); in GetAccessorContext()
31 bool CallOptimization::IsCrossContextLazyAccessorPair(Context* native_context, in IsCrossContextLazyAccessorPair() argument
33 DCHECK(native_context->IsNativeContext()); in IsCrossContextLazyAccessorPair()
35 return native_context != GetAccessorContext(holder_map); in IsCrossContextLazyAccessorPair()
Dkeyed-store-generic.cc86 Node* native_context, ElementsKind from_kind,
98 Node* native_context, ElementsKind packed_kind,
169 Node* receiver, Node* receiver_map, Node* elements, Node* native_context, in TryRewriteElements() argument
181 Node* packed_map = LoadJSArrayElementsMap(from_kind, native_context); in TryRewriteElements()
184 LoadContextElement(native_context, Context::ArrayMapIndex(to_kind))); in TryRewriteElements()
192 native_context, Context::ArrayMapIndex(holey_from_kind)); in TryRewriteElements()
195 native_context, Context::ArrayMapIndex(holey_to_kind))); in TryRewriteElements()
212 Node* receiver, Node* receiver_map, Node* native_context, in TryChangeToHoleyMapHelper() argument
215 Node* packed_map = LoadJSArrayElementsMap(packed_kind, native_context); in TryChangeToHoleyMapHelper()
221 LoadContextElement(native_context, Context::ArrayMapIndex(holey_kind)); in TryChangeToHoleyMapHelper()
[all …]
/external/v8/src/objects/
Dcompilation-cache.h79 Handle<Context> native_context,
82 Handle<Context> native_context,
92 Handle<Context> native_context, LanguageMode language_mode,
97 Handle<Context> native_context, Handle<FeedbackCell> feedback_cell,
/external/v8/src/compiler/
Djs-create-lowering.h37 Handle<Context> native_context, Zone* zone) in NON_EXPORTED_BASE()
42 native_context_(native_context), in NON_EXPORTED_BASE()
119 Handle<Context> native_context() const { return native_context_; } in NON_EXPORTED_BASE()

12345