/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | js_pandafile.cpp | 277 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 …]
|
D | method_literal.h | 218 …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()
|
D | literal_data_extractor.cpp | 48 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 …]
|
D | js_pandafile.h | 373 static FunctionKind PUBLIC_API GetFunctionKind(panda_file::FunctionKind funcKind); 374 static FunctionKind GetFunctionKind(ConstPoolType type);
|
D | literal_data_extractor.h | 55 FunctionKind kind, uint16_t length,
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_function.h | 55 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 …]
|
D | method.h | 264 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…
|
D | js_function_kind.h | 22 enum class FunctionKind : uint8_t { enum
|
D | js_function.cpp | 35 …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()
|
D | object_factory.h | 194 …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,
|
D | object_factory.cpp | 151 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() 1413 … FunctionKind 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 …]
|
D | ecma_vm.cpp | 554 method->SetFunctionKind(FunctionKind::NORMAL_FUNCTION); in GenerateInternalNativeMethods()
|
/arkcompiler/runtime_core/libpandafile/ |
D | index_accessor.h | 46 FunctionKind GetFunctionKind() const in GetFunctionKind() 48 return static_cast<FunctionKind>((access_flags_ & FUNCTION_KIND_MASK) >> FLAG_WIDTH); in GetFunctionKind()
|
/arkcompiler/runtime_core/assembler/ |
D | assembly-function.h | 89 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/ |
D | js_function_test.cpp | 86 … FunctionKind::BASE_CONSTRUCTOR); in HWTEST_F_L0() 106 EXPECT_EQ(func->GetFunctionKind(), FunctionKind::BASE_CONSTRUCTOR); in HWTEST_F_L0()
|
D | accessor_data_test.cpp | 179 …Method::Cast(func1->GetMethod().GetTaggedObject())->SetFunctionKind(FunctionKind::BASE_CONSTRUCTOR… in HWTEST_F_L0()
|
D | js_serializer_test.cpp | 1837 …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/ |
D | pandagen.ts | 201 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/ |
D | pandagen.h | 244 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};
|
D | pandagen.cpp | 56 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/ |
D | panda_file_translator_test.cpp | 133 ecmascript::FunctionKind::BASE_CONSTRUCTOR); in HWTEST_F_L0()
|
/arkcompiler/ets_frontend/merge_abc/src/ |
D | assemblyFunctionProto.cpp | 167 …function.SetFunctionKind(static_cast<panda::panda_file::FunctionKind>(protoFunction.function_kind(… in Deserialize()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins.cpp | 233 … 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/ |
D | bytecode_info_collector.cpp | 108 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/ |
D | deoptimizer.cpp | 531 FunctionKind kind = method->GetFunctionKind(); in UpdateAndDumpDeoptInfo()
|