Home
last modified time | relevance | path

Searched refs:IsConstructor (Results 1 – 25 of 41) sorted by relevance

12

/arkcompiler/ets_frontend/es2panda/ir/base/
DscriptFunction.h148 bool IsConstructor() const in IsConstructor() function
203 return !(IsGenerator() || IsArrow() || IsConstructor() || IsMethod()); in CanBeConcurrent()
/arkcompiler/ets_frontend/es2panda/compiler/function/
DfunctionBuilder.cpp48 if (!rootNode->IsScriptFunction() || !rootNode->AsScriptFunction()->IsConstructor()) { in ImplicitReturn()
61 if (rootNode->AsScriptFunction()->IsConstructor() && in ImplicitReturn()
/arkcompiler/ets_runtime/ecmascript/
Djs_function.cpp219 ASSERT_PRINT(func->IsConstructor(), "func must be Constructor type"); in MakeConstructor()
290 if (!(func->IsConstructor() && target->IsConstructor())) { in Construct()
431 if (!func->IsConstructor()) { in ConstructInternal()
551 if (!target->IsConstructor()) { in ConstructInternal()
554 ASSERT(target->IsConstructor()); in ConstructInternal()
Djs_object-inl.h66 inline bool JSObject::IsConstructor() const in IsConstructor() function
68 return GetJSHClass()->IsConstructor(); in IsConstructor()
Djs_promise.cpp86 if (!obj->IsConstructor()) { in NewPromiseCapability()
Djs_array.cpp125 if (constructor->IsConstructor()) { in ArraySpeciesCreate()
160 if (!constructor->IsConstructor()) { in ArraySpeciesCreate()
Djs_tagged_value-inl.h290 inline bool JSTaggedValue::IsConstructor() const in IsConstructor() function
292 return IsHeapObject() && GetTaggedObject()->GetClass()->IsConstructor(); in IsConstructor()
Djs_tagged_value.h441 bool IsConstructor() const;
Djs_object.h531 bool IsConstructor() const;
Djs_hclass.h1148 inline bool IsConstructor() const in IsConstructor() function
Djs_proxy.cpp964 ASSERT(target->IsConstructor()); in ConstructInternal()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_reflect.cpp61 if (!target->IsConstructor()) { in ReflectConstruct()
68 if (!newTarget->IsConstructor()) { in ReflectConstruct()
Dbuiltins_promise_handler.cpp282 …ASSERT_PRINT(thenFinallyConstructor->IsConstructor(), "thenFinallyConstructor is not constructor"); in ThenFinally()
323 …ASSERT_PRINT(catchFinallyConstructor->IsConstructor(), "catchFinallyConstructor is not constructor… in CatchFinally()
Dbuiltins_promise.cpp458 ASSERT_PRINT(ctor->IsConstructor(), "PerformPromiseAll is not constructor"); in PerformPromiseAll()
1071 ASSERT_PRINT(constructor->IsConstructor(), "constructor is not constructor"); in Finally()
Dbuiltins_arraybuffer.cpp286 ASSERT(constructor->IsConstructor()); in CloneArrayBuffer()
Dbuiltins_typedarray.cpp163 if (!thisHandle->IsConstructor()) { in From()
322 if (!thisHandle->IsConstructor()) { in Of()
/arkcompiler/ets_frontend/es2panda/util/
Dhelpers.cpp327 if (iter->IsConstructor()) { in GetContainingConstructor()
365 ASSERT(node->IsConstructor()); in GetClassDefiniton()
486 if (func->IsConstructor()) { in FunctionName()
/arkcompiler/ets_frontend/es2panda/compiler/core/
Dfunction.cpp176 if (decl->IsConstructor() && pg->Binder()->Program()->Extension() != ScriptExtension::TS) { in CompileFunction()
/arkcompiler/ets_runtime/ecmascript/tests/
Dobject_factory_test.cpp129 EXPECT_TRUE(!cls->IsConstructor()); in HWTEST_F_L0()
Dtagged_value_test.cpp971 ASSERT_TRUE(jsFunction->IsConstructor()); in HWTEST_F_L0()
973 ASSERT_FALSE(jsFunction->IsConstructor()); in HWTEST_F_L0()
979 ASSERT_FALSE(JSTaggedValue(1).IsConstructor()); in HWTEST_F_L0()
/arkcompiler/runtime_core/bytecode_optimizer/tests/
Druntime_adapter_test.cpp146 EXPECT_FALSE(adapter.IsConstructor(main, class_id)); in TEST()
Dcommon.h70 … bool IsConstructor([[maybe_unused]] MethodPtr method, [[maybe_unused]] uint32_t class_id) override in IsConstructor() function
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h914 } else if (!parent->IsConstructor()) { in RuntimeSetClassInheritanceRelationship()
2335 if (!(newTarget->IsConstructor() && ctor->IsConstructor())) { in RuntimeOptConstruct()
2374 ASSERT(target->IsConstructor()); in RuntimeOptConstructProxy()
2420 ASSERT(target->IsConstructor()); in RuntimeOptConstructBoundFunction()
2441 if (!ctor->IsConstructor()) { in RuntimeOptConstructGeneric()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dnew_object_stub_builder.cpp481 Branch(IsConstructor(ctor), &fastPath, &slowPath); in NewThisObjectChecked()
/arkcompiler/ets_runtime/ecmascript/base/tests/
Dtyped_array_helper_test.cpp208 EXPECT_TRUE(constructor->IsConstructor()); in HWTEST_F_L0()

12