Lines Matching defs:JSFunction
152 class JSFunction : public JSFunctionBase {
160 CAST_CHECK(JSFunction, IsJSFunction);
162 static void InitializeJSFunction(JSThread *thread, const JSHandle<GlobalEnv> &env, const JSHandle<JSFunction> &func,
168 static JSTaggedValue SpeciesConstructor(const JSHandle<JSFunction> &func,
169 const JSHandle<JSFunction> &defaultConstructor);
178 static JSTaggedValue InvokeOptimizedEntrypoint(JSThread *thread, JSHandle<JSFunction> mainFunc,
180 static JSTaggedValue InvokeOptimizedEntrypoint(JSThread *thread, JSHandle<JSFunction> func,
186 static bool AddRestrictedFunctionProperties(const JSHandle<JSFunction> &func, const JSHandle<JSTaggedValue> &realm);
187 static bool MakeConstructor(JSThread *thread, const JSHandle<JSFunction> &func,
189 static bool SetFunctionLength(JSThread *thread, const JSHandle<JSFunction> &func, JSTaggedValue length,
191 static JSHandle<JSObject> NewJSFunctionPrototype(JSThread *thread, const JSHandle<JSFunction> &func);
200 static void SetFunctionNameNoPrefix(JSThread *thread, JSFunction *func, JSTaggedValue name);
212 static void SetFunctionPrototypeOrInstanceHClass(const JSThread *thread, const JSHandle<JSFunction> &fun,
319 static void SetProfileTypeInfo(const JSThread *thread, const JSHandle<JSFunction> &func,
322 JSHandle<JSFunction> targetFunc);
336 static void InitializeForConcurrentFunction(JSThread *thread, JSHandle<JSFunction> &func);
341 static void InitializeJSFunction(JSThread *thread, const JSHandle<JSFunction> &func,
343 static void InitializeSFunction(JSThread *thread, const JSHandle<JSFunction> &func,
345 static void InitializeWithDefaultValue(JSThread *thread, const JSHandle<JSFunction> &func);
346 static JSHClass *PUBLIC_API GetOrCreateInitialJSHClass(JSThread *thread, const JSHandle<JSFunction> &fun);
347 static JSHandle<JSHClass> GetInstanceJSHClass(JSThread *thread, JSHandle<JSFunction> constructor,
367 static JSHandle<JSHClass> GetOrCreateDerivedJSHClass(JSThread *thread, JSHandle<JSFunction> derived,
370 JSHandle<JSFunction> mainFunc, CJSInfo* cjsInfo);
373 class JSGeneratorFunction : public JSFunction {
377 static constexpr size_t SIZE = JSFunction::SIZE;
379 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, SIZE, SIZE)
401 class JSProxyRevocFunction : public JSFunction {
407 static constexpr size_t REVOCABLE_PROXY_OFFSET = JSFunction::SIZE;
410 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, REVOCABLE_PROXY_OFFSET, SIZE)
416 class JSPromiseReactionsFunction : public JSFunction {
420 static constexpr size_t PROMISE_OFFSET = JSFunction::SIZE;
424 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, PROMISE_OFFSET, SIZE)
430 class JSPromiseExecutorFunction : public JSFunction {
434 static constexpr size_t CAPABILITY_OFFSET = JSFunction::SIZE;
437 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, CAPABILITY_OFFSET, SIZE)
442 class JSAsyncModuleFulfilledFunction : public JSFunction {
446 static constexpr size_t SIZE = JSFunction::SIZE;
448 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, SIZE, SIZE)
453 class JSAsyncModuleRejectedFunction : public JSFunction {
457 static constexpr size_t SIZE = JSFunction::SIZE;
459 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, SIZE, SIZE)
464 class JSPromiseAllResolveElementFunction : public JSFunction {
468 static constexpr size_t INDEX_OFFSET = JSFunction::SIZE;
475 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, INDEX_OFFSET, SIZE)
481 class JSPromiseAnyRejectElementFunction : public JSFunction {
485 static constexpr size_t ERRORS_OFFSET = JSFunction::SIZE;
494 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, ERRORS_OFFSET, INDEX_OFFSET)
500 class JSPromiseAllSettledElementFunction : public JSFunction {
504 static constexpr size_t ALREADY_CALLED_OFFSET = JSFunction::SIZE;
512 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, ALREADY_CALLED_OFFSET, INDEX_OFFSET)
518 class JSPromiseFinallyFunction : public JSFunction {
522 static constexpr size_t CONSTRUCTOR_OFFSET = JSFunction::SIZE;
526 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, CONSTRUCTOR_OFFSET, SIZE)
532 class JSPromiseValueThunkOrThrowerFunction : public JSFunction {
536 static constexpr size_t RESULT_OFFSET = JSFunction::SIZE;
539 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, RESULT_OFFSET, SIZE)
544 class JSIntlBoundFunction : public JSFunction {
550 static constexpr size_t NUMBER_FORMAT_OFFSET = JSFunction::SIZE;
556 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, NUMBER_FORMAT_OFFSET, SIZE)
560 class JSAsyncGeneratorFunction : public JSFunction {
563 static constexpr size_t SIZE = JSFunction::SIZE;
564 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, SIZE, SIZE)
568 class JSAsyncFromSyncIterUnwarpFunction : public JSFunction {
571 static constexpr size_t DONE_OFFSET = JSFunction::SIZE;
574 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, DONE_OFFSET, SIZE);
578 class JSSharedFunction : public JSFunction {
581 static constexpr size_t SIZE = JSFunction::SIZE;
584 DECL_VISIT_OBJECT_FOR_JS_OBJECT(JSFunction, SIZE, SIZE)