Home
last modified time | relevance | path

Searched refs:ctor (Results 1 – 25 of 274) sorted by relevance

1234567891011

/arkcompiler/ets_runtime/test/moduletest/typearray/
Dtypearray.js32 ].forEach(function(ctor, i) { argument
33 if (testTypeArray1(ctor) && testTypeArray2(ctor) &&
34 testTypeArray3(ctor) && testTypeArray4(ctor) &&
35 testTypeArray6(ctor) && testTypeArray7(ctor) &&
36 testTypeArrayIC(ctor)) {
37 print(ctor.name + " test success !!!")
39 print(ctor.name + " test fail !!!")
46 ].forEach(function(ctor, i) { argument
47 if (testTypeArray5(ctor) ) {
48 print(ctor.name + " test success !!!")
[all …]
/arkcompiler/ets_runtime/test/moduletest/typedarraywith/
Dtypedarraywith.js33 ].forEach(function (ctor, i) { argument
34 if (testTypeArrayWith1(ctor)) {
35 print(ctor.name + " test success !!!");
37 print(ctor.name + " test fail !!!");
44 ].forEach(function (ctor, i) { argument
45 if (testTypeArrayWith2(ctor)) {
46 print(ctor.name + " test success !!!");
48 print(ctor.name + " test fail !!!");
52 function testTypeArrayWith1(ctor) { argument
54 let obj = new ctor(arr);
[all …]
/arkcompiler/ets_runtime/test/moduletest/typedarraytosorted/
Dtypedarraytosorted.js33 ].forEach(function (ctor, i) { argument
34 if (testTypeArrayToSorted1(ctor)) {
35 print(ctor.name + " test success !!!");
37 print(ctor.name + " test fail !!!");
44 ].forEach(function (ctor, i) { argument
45 if (testTypeArrayToSorted2(ctor)) {
46 print(ctor.name + " test success !!!");
48 print(ctor.name + " test fail !!!");
52 function testTypeArrayToSorted1(ctor) { argument
54 let obj = new ctor(arr);
[all …]
/arkcompiler/ets_runtime/test/moduletest/typedarrayat/
Dtypedarrayat.js32 ].forEach(function (ctor, i) { argument
33 if (testTypeArrayAt1(ctor)) {
34 print(ctor.name + " test success !!!")
36 print(ctor.name + " test fail !!!")
43 ].forEach(function (ctor, i) { argument
44 if (testTypeArrayAt2(ctor)) {
45 print(ctor.name + " test success !!!")
47 print(ctor.name + " test fail !!!")
51 function testTypeArrayAt1(ctor) { argument
53 let obj = new ctor(5);
[all …]
/arkcompiler/runtime_core/static_core/libllvmbackend/lowering/
Dllvm_ir_constructor.cpp1299 auto ctor = static_cast<LLVMIrConstructor *>(v); in VisitLiveIn() local
1302 … auto regInput = std::find(ctor->cc_.begin(), ctor->cc_.end(), inst->CastToLiveIn()->GetDstReg()); in VisitLiveIn()
1303 ASSERT(regInput != ctor->cc_.end()); in VisitLiveIn()
1304 auto idx = std::distance(ctor->cc_.begin(), regInput); in VisitLiveIn()
1305 auto n = ctor->func_->arg_begin() + idx; in VisitLiveIn()
1306 ctor->ValueMapAdd(inst, ctor->CoerceValue(n, ctor->GetExactType(inst->GetType()))); in VisitLiveIn()
1312 auto ctor = static_cast<LLVMIrConstructor *>(v); in VisitParameter() local
1313 ASSERT(ctor->GetGraph()->GetMode().IsFastPath()); in VisitParameter()
1314 auto n = ctor->GetArgument(inst->CastToParameter()->GetArgNumber()); in VisitParameter()
1315 ctor->ValueMapAdd(inst, n, false); in VisitParameter()
[all …]
/arkcompiler/ets_runtime/test/moduletest/typedarrayfindlast/
Dtypedarrayfindlast.js33 ].forEach(function (ctor, i) { argument
34 if (testTypeArrayAt1(ctor)) {
35 print(ctor.name + " test success !!!");
37 print(ctor.name + " test fail !!!");
44 ].forEach(function (ctor, i) { argument
45 if (testTypeArrayAt2(ctor)) {
46 print(ctor.name + " test success !!!");
48 print(ctor.name + " test fail !!!");
52 function testTypeArrayAt1(ctor) { argument
54 let obj = new ctor([10, 11, 12, 13, 14]);
[all …]
/arkcompiler/ets_runtime/test/moduletest/weakcollectionswithsymbol/
Dexpect_output.txt37 0 wr.deref() == ctor true
38 1 wr.deref() == ctor true
39 2 wr.deref() == ctor true
40 3 wr.deref() == ctor true
41 4 wr.deref() == ctor true
42 5 wr.deref() == ctor true
43 6 wr.deref() == ctor true
44 7 wr.deref() == ctor true
45 8 wr.deref() == ctor true
46 9 wr.deref() == ctor true
[all …]
Dweakrefforsymbol.js50 ].forEach(function (ctor, i) { argument
51 let wr = new WeakRef(ctor);
52 print(i + " wr.deref() == ctor " + (wr.deref() == ctor));
/arkcompiler/ets_runtime/test/moduletest/errorcause/
Derrorcause.js30 ].forEach(function (ctor, i) { argument
31 if (testErrorCause(ctor)) {
32 print(ctor.name + " test success !!!")
34 print(ctor.name + " test fail !!!")
38 function testErrorCause(ctor) { argument
40 let err = new ctor("message", { cause: "error cause" });
/arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/
Dets_stringbuilder.ets22 //! INST /StringBuilder::<ctor>/
27 //! INST_NOT /StringBuilder::<ctor>/
32 //! INST /StringBuilder::<ctor>/
37 //! INST_NOT /StringBuilder::<ctor>/
42 //! INST /StringBuilder::<ctor>/
53 //! INST /StringBuilder::<ctor>/
63 //! INST /StringBuilder::<ctor>/
71 //! INST_NOT /StringBuilder::<ctor>/
77 //! INST /StringBuilder::<ctor>/
85 //! INST /StringBuilder::<ctor>/
[all …]
/arkcompiler/ets_frontend/es2panda/test/type_extractor/testcases_with_assert/
Dtest-constructor-type-as-type-annotation.ts21 function classConstructorTypeTest(ctor: Ctor<MyClass>)
23 const obj = new ctor();
24 AssertType(ctor, "any");
29 function typeOfClassTest(ctor: typeof MyClass)
31 const obj = new ctor;
32 AssertType(ctor, "any");
/arkcompiler/ets_frontend/ets2panda/linter-4.2/test/
Dconstructor_types.ts48 ctor: ClockConstructor,
52 return new ctor(hour, minute);
61 ctor: new (hour: number, minute: number) => ClockInterface,
65 return new ctor(h, m);
86 function fn2(ctor: SomeConstructor) {
87 return new ctor("hello");
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dconstructor_types.ts48 ctor: ClockConstructor,
52 return new ctor(hour, minute);
61 ctor: new (hour: number, minute: number) => ClockInterface,
65 return new ctor(h, m);
86 function fn2(ctor: SomeConstructor) {
87 return new ctor("hello");
/arkcompiler/ets_runtime/test/moduletest/typedarraysubarray/
Dtypedarraysubarray.js26 ].forEach(function (ctor, i) { argument
27 testTypeArrayAt1(ctor)
30 function testTypeArrayAt1(ctor) { argument
32 let obj = new ctor([10, 11, 12, 13, 14]);
/arkcompiler/ets_runtime/test/moduletest/typedarrayslice/
Dtypearrayslice.js26 ].forEach(function (ctor, i) { argument
27 testTypeArraySlice1(ctor, i)
30 function testTypeArraySlice1(ctor, i) { argument
31 let obj = new ctor(i+1);
/arkcompiler/runtime_core/static_core/pandastdlib/
Dpandastdlib.pa150 .function void panda.Object.ctor(panda.Object a0) <ctor> {
154 …ion void panda.StackOverflowException.ctor(panda.StackOverflowException a0, panda.String a1, panda…
172 …nction void panda.NullPointerException.ctor(panda.NullPointerException a0, panda.String a1, panda.…
190 …da.ArrayIndexOutOfBoundsException.ctor(panda.ArrayIndexOutOfBoundsException a0, panda.String a1, p…
208 …oid panda.IndexOutOfBoundsException.ctor(panda.IndexOutOfBoundsException a0, panda.String a1, pand…
226 …tion void panda.IllegalStateException.ctor(panda.IllegalStateException a0, panda.String a1, panda.…
244 …nda.UnsupportedOperationException.ctor(panda.UnsupportedOperationException a0, panda.String a1, pa…
262 …unction void panda.ArrayStoreException.ctor(panda.ArrayStoreException a0, panda.String a1, panda.O…
280 ….StringIndexOutOfBoundsException.ctor(panda.StringIndexOutOfBoundsException a0, panda.String a1, p…
298 …id panda.NegativeArraySizeException.ctor(panda.NegativeArraySizeException a0, panda.String a1, pan…
[all …]
/arkcompiler/runtime_core/pandastdlib/
Dpandastdlib.pa148 …ion void panda.StackOverflowException.ctor(panda.StackOverflowException a0, panda.String a1, panda…
156 …nction void panda.NullPointerException.ctor(panda.NullPointerException a0, panda.String a1, panda.…
174 …da.ArrayIndexOutOfBoundsException.ctor(panda.ArrayIndexOutOfBoundsException a0, panda.String a1, p…
192 …oid panda.IndexOutOfBoundsException.ctor(panda.IndexOutOfBoundsException a0, panda.String a1, pand…
210 …tion void panda.IllegalStateException.ctor(panda.IllegalStateException a0, panda.String a1, panda.…
228 …nda.UnsupportedOperationException.ctor(panda.UnsupportedOperationException a0, panda.String a1, pa…
246 …unction void panda.ArrayStoreException.ctor(panda.ArrayStoreException a0, panda.String a1, panda.O…
264 ….StringIndexOutOfBoundsException.ctor(panda.StringIndexOutOfBoundsException a0, panda.String a1, p…
282 …id panda.NegativeArraySizeException.ctor(panda.NegativeArraySizeException a0, panda.String a1, pan…
300 …unction void panda.ArithmeticException.ctor(panda.ArithmeticException a0, panda.String a1, panda.O…
[all …]
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_displaynames_test.cpp75 JSHandle<JSTaggedValue> ctor = env->GetDisplayNamesFunction(); in HWTEST_F_L0() local
77 …SHandle<JSDisplayNames>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
141 JSHandle<JSTaggedValue> ctor = env->GetDisplayNamesFunction(); in HWTEST_F_L0() local
143 …SHandle<JSDisplayNames>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
184 JSHandle<JSTaggedValue> ctor = env->GetDisplayNamesFunction(); in HWTEST_F_L0() local
186 …SHandle<JSDisplayNames>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
235 JSHandle<JSTaggedValue> ctor = env->GetDisplayNamesFunction(); in HWTEST_F_L0() local
237 …SHandle<JSDisplayNames>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
Djs_plural_rules_test.cpp68 JSHandle<JSTaggedValue> ctor = env->GetPluralRulesFunction(); in HWTEST_F_L0() local
70 …JSHandle<JSPluralRules>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
120 JSHandle<JSTaggedValue> ctor = env->GetPluralRulesFunction(); in HWTEST_F_L0() local
122 …JSHandle<JSPluralRules>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
151 JSHandle<JSTaggedValue> ctor = env->GetPluralRulesFunction(); in HWTEST_F_L0() local
153 …JSHandle<JSPluralRules>::Cast(factory->NewJSObjectByConstructor(JSHandle<JSFunction>(ctor), ctor)); in HWTEST_F_L0()
/arkcompiler/runtime_core/tests/cts-assembly/
Dexceptions-04.pa17 .function void R.ctor(R a0) <ctor> {
22 # check exception from ctor
26 initobj.short R.ctor
/arkcompiler/runtime_core/static_core/tests/cts-assembly/
Dexceptions-from-ctor.pa17 .function void R.ctor(R a0) <ctor> {
22 # check exception from ctor
26 initobj.short R.ctor
/arkcompiler/runtime_core/static_core/tests/irtoc-interpreter-tests/
Dbarriers.pa23 .function void object_array_elem.ctor(object_array_elem a0, i32 a1) <ctor> {
29 .function void object.ctor(object a0, i32 a1) <ctor> {
41 initobj.short object_array_elem.ctor, v4
58 initobj.short object.ctor, v3
/arkcompiler/runtime_core/tests/irtoc-interpreter-tests/
Dbarriers.pa26 .function void object_array_elem.ctor(object_array_elem a0, i32 a1) <ctor> {
32 .function void object.ctor(object a0, i32 a1) <ctor> {
44 initobj.short object_array_elem.ctor, v4
61 initobj.short object.ctor, v3
/arkcompiler/ets_frontend/es2panda/ir/expressions/
DnewExpression.cpp49 compiler::VReg ctor = pg->AllocReg(); in Compile() local
52 pg->StoreAccumulator(this, ctor); in Compile()
61 pg->NewObject(this, ctor, arguments_.size() + 1); in Compile()
66 pg->NewObjSpread(this, ctor); in Compile()
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/gtest_plugin/
Dgtest_launcher.js30 globalThis.ASSERT_THROWS = function ASSERT_THROWS(ctor, fn) { argument
31 ASSERT_TRUE(ctor != undefined && fn != undefined);
35 if (exc instanceof ctor) {
38 throw Error("ASSERT_THROWS: expected instance of " + ctor.name);

1234567891011