| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/02.override-compatible_signatures/ |
| D | override_variance.params.yaml | 18 - base: |- 23 override foo(i: Base): void { 26 call: new Derived().foo(new Base()); 30 - base: |- 35 override foo(i: Base): void { 43 base: |- 44 foo(i: Base): void { 51 call: new Derived().foo(new Base()); 55 - base: |- 56 foo(): Base { [all …]
|
| D | override_with_object.params.yaml | 18 - base: |- 19 foo(i: Base): void { 26 call: new Derived().foo(new Base()); 30 - base: |- 31 foo(i: Base): void { 43 base: |- 48 override foo(i: Base): void { 51 call: new Derived().foo(new Base()); 55 - base: |- 61 override foo(): Base { [all …]
|
| D | override_compatible_signature.params.yaml | 16 - base: |- 29 base: |- 43 base: |- 56 base: |- 68 - base: |- 80 - base: |- 88 call: new Derived().foo(new Base(), new Derived()) 92 - base: |- 100 call: new Derived().foo(new Base(), new Derived()) 104 - base: |- [all …]
|
| /arkcompiler/runtime_core/gn/ark-third-party/securec/ |
| D | BUILD.gn | 18 include_dirs = [ "$ark_third_party_root/utils_native/base/include" ] 22 "$ark_third_party_root/utils_native/base/src/securec/fscanf_s.c", 23 "$ark_third_party_root/utils_native/base/src/securec/fwscanf_s.c", 24 "$ark_third_party_root/utils_native/base/src/securec/gets_s.c", 25 "$ark_third_party_root/utils_native/base/src/securec/memcpy_s.c", 26 "$ark_third_party_root/utils_native/base/src/securec/memmove_s.c", 27 "$ark_third_party_root/utils_native/base/src/securec/memset_s.c", 28 "$ark_third_party_root/utils_native/base/src/securec/scanf_s.c", 29 "$ark_third_party_root/utils_native/base/src/securec/securecutil.c", 30 "$ark_third_party_root/utils_native/base/src/securec/secureinput_a.c", [all …]
|
| /arkcompiler/runtime_core/static_core/gn/third_party/securec/ |
| D | BUILD.gn | 18 include_dirs = [ "$ark_third_party_root/utils_native/base/include" ] 22 "$ark_third_party_root/utils_native/base/src/securec/fscanf_s.c", 23 "$ark_third_party_root/utils_native/base/src/securec/fwscanf_s.c", 24 "$ark_third_party_root/utils_native/base/src/securec/gets_s.c", 25 "$ark_third_party_root/utils_native/base/src/securec/memcpy_s.c", 26 "$ark_third_party_root/utils_native/base/src/securec/memmove_s.c", 27 "$ark_third_party_root/utils_native/base/src/securec/memset_s.c", 28 "$ark_third_party_root/utils_native/base/src/securec/scanf_s.c", 29 "$ark_third_party_root/utils_native/base/src/securec/securecutil.c", 30 "$ark_third_party_root/utils_native/base/src/securec/secureinput_a.c", [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/04.overloading_and_overriding_in_classes/ |
| D | static_method_over_n2.params.yaml | 16 # overload-equivalent -> hide Base method 17 …- { base: "i: Number|undefined|null", derived: "i: undefined|Number|null", call: "undefined", res:… 18 - { base: "i: Number|undefined|null", derived: "i: undefined|null|Number", call: "null", res: 2 } 19 # not overload-equivalent -> overload base method 20 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "new Number(), 1", res: 1… 21 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "1, new Number()", res: 2… 25 - { base: "i: Number", derived: "i: Double", call: "new Number()", res: 2 } 26 - { base: "i: Number", derived: "i: Double", call: "new Double()", res: 2 } 27 - { base: "i: Double", derived: "i: Number", call: "new Number()", res: 2 } 28 - { base: "i: Double", derived: "i: Number", call: "new Double()", res: 2 } [all …]
|
| D | instance_method_over_n2.params.yaml | 16 # override base method as arguments are the same 17 …- { base: "i: Number|undefined|null", derived: "i: undefined|Number|null", call: "undefined", res:… 18 - { base: "i: Number|undefined|null", derived: "i: undefined|null|Number", call: "null", res: 2 } 19 # overload base method as arguments are different 20 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "new Number(), 1", res: 1… 21 …- { base: "i: Number, j: number", derived: "i: number, k: Number", call: "1, new Number()", res: 2… 25 - { base: "i: Number", derived: "i: Double", call: "new Number()", res: 2 } 26 - { base: "i: Number", derived: "i: Double", call: "new Double()", res: 2 } 27 - { base: "i: Double", derived: "i: Number", call: "new Number()", res: 2 } 28 - { base: "i: Double", derived: "i: Number", call: "new Double()", res: 2 } [all …]
|
| D | single_class_overload_n.params.yaml | 43 new Base<String, Number>(); 45 new Base<String, Number>(1 as short); 47 new Base<String, Number>(new Short()); 49 new Base<String, Number>(1 as int); 51 new Base<String, Number>(new Int()); 53 new Base<String, Number>(1 as long); 55 new Base<String, Number>(new Long()); 57 new Base<String, Number>(1.1 as float); 59 new Base<String, Number>(new Float()); 61 new Base<String, Number>(1.2 as double); [all …]
|
| D | access_modifier_over.params.yaml | 19 class Derived extends Base { 37 class Derived extends Base { 47 class Derived extends Base { 65 class Derived extends Base { 83 class Derived extends Base { 101 class Derived extends Base { 111 class Derived extends Base { 119 class Derived extends Base { 127 class Derived extends Base { 136 class Derived extends Base { [all …]
|
| /arkcompiler/runtime_core/static_core/verification/util/ |
| D | shifted_vector.h | 25 using Base = VECTOR<T>; variable 29 explicit ShiftedVector(typename Base::size_type size) : Base(size) {} in ShiftedVector() 30 typename Base::reference operator[](int idx) 33 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); 35 typename Base::const_reference &operator[](int idx) const 38 return Base::operator[](static_cast<typename Base::size_type>(idx + SHIFT)); 40 typename Base::reference At(int idx) in At() 43 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in At() 45 typename Base::const_reference &At(int idx) const in At() 48 return Base::at(static_cast<typename Base::size_type>(idx + SHIFT)); in At() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/01.type_parameters/02.type_parameter_default/generic_interfaces/ |
| D | interface_type_parameter_default.params.yaml | 17 interface Base<T = SomeType> {} 18 class Derived implements Base {} 22 interface Base<T = SomeType> {} 23 class Derived implements Base<OtherType> {} 27 interface Base<T = SomeType> {} 28 class Derived<T = OtherType> implements Base<T> {} 32 interface Base<T = SomeType, U = OtherType> {} 33 class Derived implements Base {} 37 interface Base<T, U = OtherType> {} 38 class Derived implements Base<SomeType> {} [all …]
|
| D | wrong_interface_type_parameter_default.params.yaml | 16 - interface Base<T = SomeType, T = OtherType> {} 17 - interface Base<T, T = SomeType> {} 18 - interface Base<T = SomeType, V> 19 - interface Base<T = 5> 20 - interface Base<T = true> 21 - interface Base<T = "param"> 22 - interface Base<T = Base<T>>
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/05.generics/01.type_parameters/02.type_parameter_default/generic_classes/ |
| D | class_type_parameter_default.params.yaml | 17 class Base<T = SomeType> {} 18 class Derived extends Base {} 22 class Base<T = SomeType> {} 23 class Derived extends Base<OtherType> {} 27 class Base<T = SomeType> {} 28 class Derived<T = OtherType> extends Base<T> {} 32 class Base<T = SomeType, U = OtherType> {} 33 class Derived extends Base {} 37 class Base<T, U = OtherType> {} 38 class Derived extends Base<SomeType> {} [all …]
|
| D | wrong_class_type_parameter_default.params.yaml | 16 - class Base<T = SomeType, T = OtherType> {} 17 - class Base<T, T = SomeType> {} 18 - class Base<T = SomeType, V> 19 - class Base<T = 5> 20 - class Base<T = true> 21 - class Base<T = "param"> 22 - class Base<T = Base<T>>
|
| /arkcompiler/runtime_core/static_core/libpandabase/tests/ |
| D | regmask_test.cpp | 24 void CompareWithBitset(RegMask mask, BitsetType base) in CompareWithBitset() argument 26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset() 27 if (base.any()) { in CompareWithBitset() 28 ASSERT_EQ(mask.GetMinRegister(), Ctz(base.to_ulong())); in CompareWithBitset() 29 …ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong()… in CompareWithBitset() 31 ASSERT_EQ(mask.Size(), base.size()); in CompareWithBitset() 32 ASSERT_EQ(mask.Any(), base.any()); in CompareWithBitset() 33 ASSERT_EQ(mask.None(), base.none()); in CompareWithBitset() 34 for (size_t i = 0; i < base.size(); i++) { in CompareWithBitset() 35 ASSERT_EQ(mask.Test(i), base.test(i)); in CompareWithBitset() [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | regmask_test.cpp | 24 void CompareWithBitset(RegMask mask, BitsetType base) in CompareWithBitset() argument 26 ASSERT_EQ(mask.Count(), base.count()); in CompareWithBitset() 27 if (base.any()) { in CompareWithBitset() 28 ASSERT_EQ(mask.GetMinRegister(), static_cast<uint32_t>(Ctz(base.to_ulong()))); in CompareWithBitset() 29 …ASSERT_EQ(mask.GetMaxRegister(), base.size() - Clz(static_cast<RegMask::ValueType>(base.to_ulong()… in CompareWithBitset() 31 ASSERT_EQ(mask.Size(), base.size()); in CompareWithBitset() 32 ASSERT_EQ(mask.Any(), base.any()); in CompareWithBitset() 33 ASSERT_EQ(mask.None(), base.none()); in CompareWithBitset() 34 for (size_t i = 0; i < base.size(); i++) { in CompareWithBitset() 35 ASSERT_EQ(mask.Test(i), base.test(i)); in CompareWithBitset() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/utils/ |
| D | ref_vector.h | 24 // nullptr. As time goes by, the others, even the owner may forget it. Or with more coding base on … 75 explicit ref_vector(const allocator_type &alloc) noexcept : base(alloc) {} 82 // The pointer is stored in the base, and the Iter owns objects instead of their pointers. 86 ref_vector(const ref_vector &other) : base(other.base) {} 88 ref_vector(const ref_vector &other, const allocator_type &alloc) : base(other.base, alloc) {} 90 ref_vector(ref_vector &&other) noexcept : base(std::move(other)) {} 92 …ref_vector(ref_vector &&other, const allocator_type &alloc) noexcept : base(std::move(other), allo… 100 base = other.base; 106 base = std::move(other); 113 // The pointer is stored in the base, and the Iter owns objects instead of their pointers. [all …]
|
| D | iterator.h | 61 mpl_iterator(const mpl_iterator<U, Container> &iter) : iter(iter.base()) in mpl_iterator() 116 Iterator base() const noexcept in base() function 128 return lhs.base() == rhs.base(); 134 return lhs.base() == rhs.base(); 152 return lhs.base() < rhs.base(); 158 return lhs.base() < rhs.base(); 164 return lhs.base() <= rhs.base(); 170 return lhs.base() <= rhs.base(); 176 return lhs.base() > rhs.base(); 182 return lhs.base() > rhs.base(); [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
| D | instructions.yaml | 25 base 26 …C++ base that represent this opcode. In far future if we managed to generate also instruction clas… 55 base: UnaryOperation 63 base: UnaryOperation 71 base: UnaryOperation 79 base: UnaryOperation 87 base: BinaryOperation 95 base: BinaryOperation 103 base: BinaryOperation 111 base: FixedInputsInst<3> [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/checked/ |
| D | optimize_load_readonly_instance.sts | 16 class Base { 53 function getBaseX(b: Base): int { 65 …ions: "--compiler-regex='(ETSGLOBAL::checkGetBaseX|Base::<ctor>)' --compiler-inlining-blacklist='B… 68 //! INST_NOT /LoadObject.*Base.x/ 69 //! INST_COUNT /LoadObject.*Base.y/, 1 71 //! INST_COUNT /LoadObject.*Base.x/, 2 75 //! INST_COUNT /LoadObject.*Base.x/, 1 77 //! INST_COUNT /LoadObject.*Base.x/, 1 78 //! INST_COUNT /LoadObject.*Base.y/, 1 79 //! METHOD "Base::<ctor>" [all …]
|
| D | optimize_load_readonly_static.sts | 16 class Base { 21 Base.x = 2 24 Base.x = 3 27 Base.x = 4 28 Base.y = 10 54 return Base.x 65 //! RUN force_jit: true, options: "--compiler-regex='(ETSGLOBAL::getBaseX|Base::<cctor>)'"… 67 //! EVENT_NEXT "Compilation,Base::<cctor>" 70 //! INST /LoadStatic.*Base.x/ 71 //! METHOD "Base::<cctor>" [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_util/include/ |
| D | safe_ptr.h | 31 using Base = Ptr<T, AssertNotNull<T>>; variable 34 using pointer = typename Base::Pointer; 35 using ElementType = typename Base::ElementType; 41 SafePtr(pointer ptr) : base(ptr) {} in SafePtr() 43 SafePtr(T &ref) : base(ref, CheckNothing<T>) {} in SafePtr() 48 SafePtr(U *ptr) : base(ptr) in SafePtr() 53 SafePtr(U &ref) : base(ref, CheckNothing<T>) in SafePtr() 60 SafePtr(const SafePtr &other) : base(other.base) {} in SafePtr() 62 SafePtr(SafePtr &&other) noexcept : base(std::move(other.base)) {} in SafePtr() 65 explicit SafePtr(const SafePtr<U> &other) : base(other.get(), CheckNothing<T>) in SafePtr() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/ |
| D | TypeAssignableFromTest.sts | 113 class Base {} 115 class Derived extends Base {} 118 let foo: () => Base = () : Base => { return new Base() } 119 let foo1: (p: Base) => Base = (p: Base): Base => { return new Base()} 120 let foo2: (p: Base) => Derived = (p: Base): Derived => { return new Derived() } 121 let foo3: (p: Derived) => Base = (p: Derived): Base => { return new Base()} 128 return test(f1t.assignableFrom(f2t), "(Base) -> Base <- (Base) -> Derived") + 129 test(!f2t.assignableFrom(f1t), "(Base) -> Derived <\\- (Base) -> Base") + 130 test(f3t.assignableFrom(f2t), "(Derived) -> Base <- (Base) -> Derived") + 131 test(!f1t.assignableFrom(f4t), "(Base) -> Base <\\- (Derived) -> Derived") + [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/03.variance/01.invariance/ |
| D | invariance_function_callback.sts | 20 type Base = [ i: number ] 23 function logBase( b: Base): Base { 27 function logExt( callback: (e: Base) => Base, b: Base): Base { 32 let b: Base = [1.2];
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | forOfCustomIterator2.sts | 25 base: A; 26 constructor (base: A) { 27 this.base = base; 30 if (this.index >= this.base.data.length) { 37 done: this.index >= this.base.data.length, 38 value: this.base.data[this.index++] 44 constructor (base: A) { 45 super(base);
|