/arkcompiler/ets_frontend/es2panda/ir/base/ |
D | scriptFunction.h | 148 bool IsConstructor() const in IsConstructor() function 203 return !(IsGenerator() || IsArrow() || IsConstructor() || IsMethod()); in CanBeConcurrent()
|
/arkcompiler/ets_frontend/es2panda/compiler/function/ |
D | functionBuilder.cpp | 48 if (!rootNode->IsScriptFunction() || !rootNode->AsScriptFunction()->IsConstructor()) { in ImplicitReturn() 61 if (rootNode->AsScriptFunction()->IsConstructor() && in ImplicitReturn()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_function.cpp | 219 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()
|
D | js_object-inl.h | 66 inline bool JSObject::IsConstructor() const in IsConstructor() function 68 return GetJSHClass()->IsConstructor(); in IsConstructor()
|
D | js_promise.cpp | 86 if (!obj->IsConstructor()) { in NewPromiseCapability()
|
D | js_array.cpp | 125 if (constructor->IsConstructor()) { in ArraySpeciesCreate() 160 if (!constructor->IsConstructor()) { in ArraySpeciesCreate()
|
D | js_tagged_value-inl.h | 290 inline bool JSTaggedValue::IsConstructor() const in IsConstructor() function 292 return IsHeapObject() && GetTaggedObject()->GetClass()->IsConstructor(); in IsConstructor()
|
D | js_tagged_value.h | 441 bool IsConstructor() const;
|
D | js_object.h | 531 bool IsConstructor() const;
|
D | js_hclass.h | 1148 inline bool IsConstructor() const in IsConstructor() function
|
D | js_proxy.cpp | 964 ASSERT(target->IsConstructor()); in ConstructInternal()
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_reflect.cpp | 61 if (!target->IsConstructor()) { in ReflectConstruct() 68 if (!newTarget->IsConstructor()) { in ReflectConstruct()
|
D | builtins_promise_handler.cpp | 282 …ASSERT_PRINT(thenFinallyConstructor->IsConstructor(), "thenFinallyConstructor is not constructor"); in ThenFinally() 323 …ASSERT_PRINT(catchFinallyConstructor->IsConstructor(), "catchFinallyConstructor is not constructor… in CatchFinally()
|
D | builtins_promise.cpp | 458 ASSERT_PRINT(ctor->IsConstructor(), "PerformPromiseAll is not constructor"); in PerformPromiseAll() 1071 ASSERT_PRINT(constructor->IsConstructor(), "constructor is not constructor"); in Finally()
|
D | builtins_arraybuffer.cpp | 286 ASSERT(constructor->IsConstructor()); in CloneArrayBuffer()
|
D | builtins_typedarray.cpp | 163 if (!thisHandle->IsConstructor()) { in From() 322 if (!thisHandle->IsConstructor()) { in Of()
|
/arkcompiler/ets_frontend/es2panda/util/ |
D | helpers.cpp | 327 if (iter->IsConstructor()) { in GetContainingConstructor() 365 ASSERT(node->IsConstructor()); in GetClassDefiniton() 486 if (func->IsConstructor()) { in FunctionName()
|
/arkcompiler/ets_frontend/es2panda/compiler/core/ |
D | function.cpp | 176 if (decl->IsConstructor() && pg->Binder()->Program()->Extension() != ScriptExtension::TS) { in CompileFunction()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | object_factory_test.cpp | 129 EXPECT_TRUE(!cls->IsConstructor()); in HWTEST_F_L0()
|
D | tagged_value_test.cpp | 971 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/ |
D | runtime_adapter_test.cpp | 146 EXPECT_FALSE(adapter.IsConstructor(main, class_id)); in TEST()
|
D | common.h | 70 … bool IsConstructor([[maybe_unused]] MethodPtr method, [[maybe_unused]] uint32_t class_id) override in IsConstructor() function
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs-inl.h | 914 } 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/ |
D | new_object_stub_builder.cpp | 481 Branch(IsConstructor(ctor), &fastPath, &slowPath); in NewThisObjectChecked()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | typed_array_helper_test.cpp | 208 EXPECT_TRUE(constructor->IsConstructor()); in HWTEST_F_L0()
|