Home
last modified time | relevance | path

Searched refs:FunctionKind (Results 1 – 25 of 39) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/jspandafile/
Djs_pandafile.cpp277 FunctionKind JSPandaFile::GetFunctionKind(panda_file::FunctionKind funcKind) in GetFunctionKind()
279 FunctionKind kind; in GetFunctionKind()
281 case panda_file::FunctionKind::NONE: in GetFunctionKind()
282 case panda_file::FunctionKind::FUNCTION: in GetFunctionKind()
283 kind = FunctionKind::BASE_CONSTRUCTOR; in GetFunctionKind()
285 case panda_file::FunctionKind::NC_FUNCTION: in GetFunctionKind()
286 kind = FunctionKind::ARROW_FUNCTION; in GetFunctionKind()
288 case panda_file::FunctionKind::GENERATOR_FUNCTION: in GetFunctionKind()
289 kind = FunctionKind::GENERATOR_FUNCTION; in GetFunctionKind()
291 case panda_file::FunctionKind::ASYNC_FUNCTION: in GetFunctionKind()
[all …]
Dmethod_literal.h218 …using FunctionKindBits = BuiltinIdBits::NextField<FunctionKind, FUNCTION_KIND_NUM_BITS>; // offset…
252 void SetFunctionKind(FunctionKind kind) in SetFunctionKind()
267 FunctionKind GetFunctionKind() const in GetFunctionKind()
269 return static_cast<FunctionKind>(FunctionKindBits::Decode(extraLiteralInfo_)); in GetFunctionKind()
274 return GetFunctionKind() == FunctionKind::CLASS_CONSTRUCTOR; in IsClassConstructor()
287 static uint64_t SetFunctionKind(uint64_t extraLiteralInfo, FunctionKind kind) in SetFunctionKind()
292 static FunctionKind GetFunctionKind(uint64_t extraLiteralInfo) in GetFunctionKind()
294 return static_cast<FunctionKind>(FunctionKindBits::Decode(extraLiteralInfo)); in GetFunctionKind()
Dliteral_data_extractor.cpp48 FunctionKind kind; in ExtractObjectDatas()
79 kind = FunctionKind::NORMAL_FUNCTION; in ExtractObjectDatas()
84 kind = FunctionKind::GENERATOR_FUNCTION; in ExtractObjectDatas()
147 FunctionKind kind; in EnumerateLiteralVals()
173 kind = FunctionKind::NORMAL_FUNCTION; in EnumerateLiteralVals()
178 kind = FunctionKind::GENERATOR_FUNCTION; in EnumerateLiteralVals()
214 FunctionKind kind, uint16_t length, in DefineMethodInLiteral()
301 FunctionKind kind; in ExtractObjectDatas()
332 kind = FunctionKind::NORMAL_FUNCTION; in ExtractObjectDatas()
337 kind = FunctionKind::GENERATOR_FUNCTION; in ExtractObjectDatas()
[all …]
Djs_pandafile.h373 static FunctionKind PUBLIC_API GetFunctionKind(panda_file::FunctionKind funcKind);
374 static FunctionKind GetFunctionKind(ConstPoolType type);
Dliteral_data_extractor.h55 FunctionKind kind, uint16_t length,
/arkcompiler/ets_runtime/ecmascript/
Djs_function.h55 FunctionKind GetFunctionKind() const in GetFunctionKind()
83 FunctionKind kind = FunctionKind::NORMAL_FUNCTION);
162 FunctionKind kind = GetFunctionKind(); in IsBase()
163 return kind <= FunctionKind::CLASS_CONSTRUCTOR; in IsBase()
168 FunctionKind kind = GetFunctionKind(); in IsDerivedConstructor()
169 return kind == FunctionKind::DERIVED_CONSTRUCTOR; in IsDerivedConstructor()
172 inline static bool IsArrowFunction(FunctionKind kind) in IsArrowFunction()
174 … return (kind >= FunctionKind::ARROW_FUNCTION) && (kind <= FunctionKind::ASYNC_ARROW_FUNCTION); in IsArrowFunction()
177 inline static bool IsClassConstructor(FunctionKind kind) in IsClassConstructor()
179 … return (kind == FunctionKind::CLASS_CONSTRUCTOR) || (kind == FunctionKind::DERIVED_CONSTRUCTOR); in IsClassConstructor()
[all …]
Dmethod.h264 uint64_t SetFunctionKind(uint64_t extraLiteralInfo, FunctionKind kind) in SetFunctionKind()
269 FunctionKind GetFunctionKind(uint64_t extraLiteralInfo) const in GetFunctionKind()
271 return static_cast<FunctionKind>(FunctionKindBits::Decode(extraLiteralInfo)); in GetFunctionKind()
307 void SetFunctionKind(FunctionKind kind) in SetFunctionKind()
314 FunctionKind GetFunctionKind() const in GetFunctionKind()
439 …using FunctionKindBits = BuiltinIdBits::NextField<FunctionKind, FUNCTION_KIND_NUM_BITS>; // offset…
Djs_function_kind.h22 enum class FunctionKind : uint8_t { enum
Djs_function.cpp35 …nction::InitializeJSFunction(JSThread *thread, const JSHandle<JSFunction> &func, FunctionKind kind) in InitializeJSFunction()
46 if (kind == FunctionKind::BASE_CONSTRUCTOR || kind == FunctionKind::GENERATOR_FUNCTION || in InitializeJSFunction()
47 kind == FunctionKind::ASYNC_GENERATOR_FUNCTION) { in InitializeJSFunction()
55 if (kind == FunctionKind::ASYNC_GENERATOR_FUNCTION) { in InitializeJSFunction()
59 if (kind == FunctionKind::GENERATOR_FUNCTION) { in InitializeJSFunction()
64 …PropertyDescriptor desc(thread, accessor, kind != FunctionKind::BUILTIN_CONSTRUCTOR, false, false); in InitializeJSFunction()
153 if (JSHandle<JSFunction>::Cast(self)->GetFunctionKind() == FunctionKind::GETTER_FUNCTION) { in NameGetter()
156 if (JSHandle<JSFunction>::Cast(self)->GetFunctionKind() == FunctionKind::SETTER_FUNCTION) { in NameGetter()
668 FunctionKind kind = newTargetFunc->GetFunctionKind(); in GetInstanceJSHClass()
713 const JSHandle<JSFunction> &func, FunctionKind kind) in InitializeJSFunction()
Dobject_factory.h194 …JSHandle<Method> NewMethodForNativeFunction(const void *func, FunctionKind kind = FunctionKind::NO…
223 FunctionKind kind = FunctionKind::NORMAL_FUNCTION,
234 JSHandle<JSFunction> NewJSFunction(const JSHandle<Method> &methodHandle, FunctionKind kind,
482 FunctionKind kind = FunctionKind::NORMAL_FUNCTION);
628 JSHandle<JSHClass> GetNonOptimizedHclass(JSHandle<JSHClass> oldHClassHandle, FunctionKind kind);
674 JSHandle<JSHClass> CreateFunctionClass(FunctionKind kind, uint32_t size, JSType type,
Dobject_factory.cpp151 JSHandle<Method> ObjectFactory::NewMethodForNativeFunction(const void *func, FunctionKind kind, in NewMethodForNativeFunction()
600 ASSERT_PRINT(method->GetFunctionKind() == FunctionKind::CLASS_CONSTRUCTOR || in CloneClassCtor()
601 method->GetFunctionKind() == FunctionKind::DERIVED_CONSTRUCTOR, in CloneClassCtor()
1413FunctionKind kind, kungfu::BuiltinsStubCSigns::ID builtinId, in NewJSFunction()
1423 FunctionKind kind = method->GetFunctionKind(); in NewJSFunction()
1425 if (kind == FunctionKind::BASE_CONSTRUCTOR) { in NewJSFunction()
1429 } else if (kind == FunctionKind::CONCURRENT_FUNCTION) { in NewJSFunction()
1438 JSHandle<JSHClass> ObjectFactory::CreateFunctionClass(FunctionKind kind, uint32_t size, JSType type, in CreateFunctionClass()
1579 FunctionKind kind) in NewJSFunctionByHClass()
1638 …JSHandle<Method> target = NewMethodForNativeFunction(nativeFunc, FunctionKind::BUILTIN_CONSTRUCTOR… in NewJSNativeErrorFunction()
[all …]
Decma_vm.cpp554 method->SetFunctionKind(FunctionKind::NORMAL_FUNCTION); in GenerateInternalNativeMethods()
/arkcompiler/runtime_core/libpandafile/
Dindex_accessor.h46 FunctionKind GetFunctionKind() const in GetFunctionKind()
48 return static_cast<FunctionKind>((access_flags_ & FUNCTION_KIND_MASK) >> FLAG_WIDTH); in GetFunctionKind()
/arkcompiler/runtime_core/assembler/
Dassembly-function.h89 panda::panda_file::FunctionKind function_kind = panda::panda_file::FunctionKind::NONE;
102 void SetFunctionKind(panda::panda_file::FunctionKind kind) in SetFunctionKind()
107 panda::panda_file::FunctionKind GetFunctionKind() const in GetFunctionKind()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_function_test.cpp86FunctionKind::BASE_CONSTRUCTOR); in HWTEST_F_L0()
106 EXPECT_EQ(func->GetFunctionKind(), FunctionKind::BASE_CONSTRUCTOR); in HWTEST_F_L0()
Daccessor_data_test.cpp179 …Method::Cast(func1->GetMethod().GetTaggedObject())->SetFunctionKind(FunctionKind::BASE_CONSTRUCTOR… in HWTEST_F_L0()
Djs_serializer_test.cpp1837 …JSHandle<JSFunction> concurrentFunction = factory->NewJSFunction(env, nullptr, FunctionKind::CONCU… in HWTEST_F_L0()
1839 …EXPECT_TRUE(concurrentFunction->GetFunctionKind() == ecmascript::FunctionKind::CONCURRENT_FUNCTION… in HWTEST_F_L0()
1912 …JSHandle<JSFunction> concurrentFunction1 = factory->NewJSFunction(env, nullptr, FunctionKind::CONC… in HWTEST_F_L0()
1914 …EXPECT_TRUE(concurrentFunction1->GetFunctionKind() == ecmascript::FunctionKind::CONCURRENT_FUNCTIO… in HWTEST_F_L0()
1915 …JSHandle<JSFunction> concurrentFunction2 = factory->NewJSFunction(env, nullptr, FunctionKind::CONC… in HWTEST_F_L0()
1917 …EXPECT_TRUE(concurrentFunction2->GetFunctionKind() == ecmascript::FunctionKind::CONCURRENT_FUNCTIO… in HWTEST_F_L0()
/arkcompiler/ets_frontend/ts2panda/src/
Dpandagen.ts201 export enum FunctionKind { enum
230 private funcKind: FunctionKind = FunctionKind.NONE;
265 this.funcKind = FunctionKind.FUNCTION;
277 this.funcKind = FunctionKind.ASYNC_GENERATOR_FUNCTION;
282 this.funcKind = FunctionKind.ASYNC_NCFUNCTION;
286 this.funcKind = FunctionKind.ASYNC_FUNCTION;
293 this.funcKind = FunctionKind.GENERATOR_FUNCTION;
298 this.funcKind = FunctionKind.NC_FUNCTION;
302 this.funcKind = FunctionKind.FUNCTION;
/arkcompiler/ets_frontend/es2panda/compiler/core/
Dpandagen.h244 panda::panda_file::FunctionKind GetFunctionKind() const in GetFunctionKind()
251 return funcKind_ == panda::panda_file::FunctionKind::CONCURRENT_FUNCTION; in IsConcurrent()
540 panda::panda_file::FunctionKind funcKind_ {panda::panda_file::FunctionKind::NONE};
Dpandagen.cpp56 funcKind_ = panda::panda_file::FunctionKind::FUNCTION; in SetFunctionKind()
62 funcKind_ = panda::panda_file::FunctionKind::CONCURRENT_FUNCTION; in SetFunctionKind()
72 funcKind_ = panda::panda_file::FunctionKind::ASYNC_GENERATOR_FUNCTION; in SetFunctionKind()
77 funcKind_ = panda::panda_file::FunctionKind::ASYNC_NC_FUNCTION; in SetFunctionKind()
81 funcKind_ = panda::panda_file::FunctionKind::ASYNC_FUNCTION; in SetFunctionKind()
86 funcKind_ = panda::panda_file::FunctionKind::GENERATOR_FUNCTION; in SetFunctionKind()
91 funcKind_ = panda::panda_file::FunctionKind::NC_FUNCTION; in SetFunctionKind()
95 funcKind_ = panda::panda_file::FunctionKind::FUNCTION; in SetFunctionKind()
/arkcompiler/ets_runtime/ecmascript/jspandafile/tests/
Dpanda_file_translator_test.cpp133 ecmascript::FunctionKind::BASE_CONSTRUCTOR); in HWTEST_F_L0()
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyFunctionProto.cpp167 …function.SetFunctionKind(static_cast<panda::panda_file::FunctionKind>(protoFunction.function_kind(… in Deserialize()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins.cpp233 … factory_->CreateFunctionClass(FunctionKind::NORMAL_FUNCTION, JSAsyncAwaitStatusFunction::SIZE, in Initialize()
259 …JSHandle<JSHClass> FunctionClass = factory_->CreateFunctionClass(FunctionKind::BASE_CONSTRUCTOR, J… in Initialize()
262 …FunctionClass = factory_->CreateFunctionClass(FunctionKind::NORMAL_FUNCTION, JSFunction::SIZE, JST… in Initialize()
265 FunctionClass = factory_->CreateFunctionClass(FunctionKind::CLASS_CONSTRUCTOR, JSFunction::SIZE, in Initialize()
361 …factory_->CreateFunctionClass(FunctionKind::GENERATOR_FUNCTION, JSFunction::SIZE, JSType::JS_GENER… in Initialize()
366 factory_->CreateFunctionClass(FunctionKind::ASYNC_GENERATOR_FUNCTION, JSFunction::SIZE, in Initialize()
371 FunctionKind::ASYNC_FUNCTION, JSAsyncFunction::SIZE, JSType::JS_ASYNC_FUNCTION, in Initialize()
380 …V(FunctionClassWithProto, FunctionKind::BASE_CONSTRUCTOR, JSFunction::SIZE, FUNCTION, Function) … in InitializeFunctionHclassForOptimized()
381 …V(FunctionClassWithoutProto, FunctionKind::NORMAL_FUNCTION, JSFunction::SIZE, FUNCTION, Function) … in InitializeFunctionHclassForOptimized()
382 …V(GeneratorFunctionClass, FunctionKind::GENERATOR_FUNCTION, … in InitializeFunctionHclassForOptimized()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dbytecode_info_collector.cpp108 panda_file::FunctionKind funcKind = indexAccessor.GetFunctionKind(); in ProcessClasses()
109 FunctionKind kind = JSPandaFile::GetFunctionKind(funcKind); in ProcessClasses()
138 method->SetFunctionKind(FunctionKind::CLASS_CONSTRUCTOR); in ProcessClasses()
/arkcompiler/ets_runtime/ecmascript/deoptimizer/
Ddeoptimizer.cpp531 FunctionKind kind = method->GetFunctionKind(); in UpdateAndDumpDeoptInfo()

12