| /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_variance_n.params.yaml | 17 - base: |- 18 foo(i: [Base, Base]): void { 22 override foo(i: [Base, Derived]): void { 31 - base: |- 32 foo(i: [Base, Base]): void { 36 override foo(i: [Base, Derived]): void { 40 let i: [Derived, Base] = [ new Derived(), new Base()]; 45 base: |- 48 return [ new Derived(), new Base()]; 51 override foo(): [Base, Base] { [all …]
|
| D | override_with_object_n.params.yaml | 18 - base: |- 23 override foo(i: [Object, Base]): void { 27 let i: [Base, Base] = [ new Base(), new Base()]; 32 - base: |- 37 override foo(i: [Object, Base]): void { 41 let i: [Base, Object] = [ new Base(), new Object()]; 46 base: |- 47 foo(): [Base, Object] { 49 return [ new Base(), new Object()]; 60 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 | 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 | 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 | 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 …]
|
| /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/libabckit/tests/clean_scenarios/c_api/dynamic/scan_subclasses/ |
| D | README.md | 9 `modules/base.js:` 11 export class Base {} 15 import { Base } from './modules/base'; 17 class Child1 extends Base {} 18 class Child2 extends Base {} 23 Base class info: 26 {"modules/base", "Base"}
|
| /arkcompiler/runtime_core/libabckit/tests/clean_scenarios/cpp_api/dynamic/scan_subclasses/ |
| D | README.md | 9 `modules/base.js:` 11 export class Base {} 15 import { Base } from './modules/base'; 17 class Child1 extends Base {} 18 class Child2 extends Base {} 23 Base class info: 26 {"modules/base", "Base"}
|
| /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 …]
|