Home
last modified time | relevance | path

Searched full:get (Results 1 – 25 of 2588) sorted by relevance

12345678910>>...104

/arkcompiler/ets_runtime/test/moduletest/arrayfrom/
Dexpect_output.txt34 get toJSON
35 get 0
36 get 1
37 get 2
38 get 3
39 get length
46 get toJSON
47 get length
48 get 0
49 get 1
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/map/Get/
DbuiltinMapGet.ts26 return myMap.get(x);
38 print(x.get(y));
46 //aot: [trace] aot inline builtin: Map.get, caller function name:func_main_0@builtinMapGet
47 print(myMap.get()); //: undefined
51 //aot: [trace] aot inline builtin: Map.get, caller function name:func_main_0@builtinMapGet
52 print(myMap.get()); //: 42
55 //aot: [trace] aot inline builtin: Map.get, caller function name:func_main_0@builtinMapGet
56 print(myMap.get(0)); //: 5
57 //aot: [trace] aot inline builtin: Map.get, caller function name:func_main_0@builtinMapGet
58 print(myMap.get(3)); //: undefined
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/escompat/
DReflectGetBadCases.sts19 // get
20 failures += test(reflectGetBadCases(), "Reflect.get on types without fields and elements");
57 Reflect.get(c, "a")
59 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
63 Reflect.get(bo, "a")
65 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
69 Reflect.get(bt, "a")
71 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
75 Reflect.get(sh, "a")
77 … result += e.toString().contains("`target` argument of Reflect.get must have fields", 0) ? 0 : 1
[all …]
DReflectGet.sts19 // get
20 failures += test(reflectGetClass(), "Reflect.get on class type");
21 failures += test(reflectGetArray(), "Reflect.get on array type");
22 failures += test(reflectGetLambda(), "Reflect.get on function type");
51 result += (Reflect.get(p, "x") as Number == 10) ? 0 : 1
52 result += (Reflect.get(p, "y") as Number == 20) ? 0 : 1
53 result += (Reflect.get(p, "z") as Number == 30) ? 0 : 1
55 result += (Reflect.get(p, "axisnum") == undefined) ? 0 : 1
56 result += (Reflect.get(p, "qwerty") == undefined) ? 0 : 1
57 result += (Reflect.get(p, 1) == null) ? 0 : 1
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dunique_fd_test.cpp40 EXPECT_EQ(fd_a.Get(), DEFAULT_VALUE);
41 EXPECT_EQ(fd_b.Get(), dupDF.stdinValue);
42 EXPECT_EQ(fd_c.Get(), dupDF.stdoutValue);
43 EXPECT_EQ(fd_d.Get(), dupDF.stferrValue);
50 EXPECT_EQ(fd_a.Get(), DEFAULT_VALUE);
51 EXPECT_EQ(fd_b.Get(), DEFAULT_VALUE);
52 EXPECT_EQ(fd_c.Get(), DEFAULT_VALUE);
53 EXPECT_EQ(fd_d.Get(), DEFAULT_VALUE);
54 EXPECT_EQ(fd_e.Get(), DEFAULT_VALUE);
55 EXPECT_EQ(fd_f.Get(), dupDF.stdinValue);
[all …]
/arkcompiler/runtime_core/compiler/tests/aarch32/
Dcallconv32_test.cpp106 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
107 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT8_TYPE)); in TEST_F()
112 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F()
113 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT8_TYPE)); in TEST_F()
122 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
123 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT32_TYPE)); in TEST_F()
128 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F()
129 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT32_TYPE)); in TEST_F()
138 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
139 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT64_TYPE)); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Dunique_fd_test.cpp46 EXPECT_EQ(fdA.Get(), DEFAULT_VALUE); in TEST()
47 EXPECT_EQ(fdB.Get(), dupDf.stdinValue); in TEST()
48 EXPECT_EQ(fdC.Get(), dupDf.stdoutValue); in TEST()
49 EXPECT_EQ(fdD.Get(), dupDf.stferrValue); in TEST()
57 EXPECT_EQ(fdA.Get(), DEFAULT_VALUE); in TEST()
58 EXPECT_EQ(fdB.Get(), DEFAULT_VALUE); in TEST()
59 EXPECT_EQ(fdC.Get(), DEFAULT_VALUE); in TEST()
60 EXPECT_EQ(fdD.Get(), DEFAULT_VALUE); in TEST()
61 EXPECT_EQ(fdE.Get(), DEFAULT_VALUE); in TEST()
62 EXPECT_EQ(fdF.Get(), dupDf.stdinValue); in TEST()
[all …]
/arkcompiler/runtime_core/static_core/compiler/tests/aarch32/
Dcallconv32_test.cpp90 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in CheckMissesDueAlign()
91 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT8_TYPE)); in CheckMissesDueAlign()
95 EXPECT_EQ(std::get<Reg>(ret).GetId(), 2U); in CheckMissesDueAlign()
96 EXPECT_EQ(std::get<Reg>(ret), Reg(2U, INT64_TYPE)); in CheckMissesDueAlign()
100 EXPECT_EQ(std::get<uint8_t>(ret), 0); in CheckMissesDueAlign()
104 EXPECT_EQ(std::get<uint8_t>(ret), 2U); in CheckMissesDueAlign()
108 EXPECT_EQ(std::get<uint8_t>(ret), 4U); in CheckMissesDueAlign()
112 EXPECT_EQ(std::get<uint8_t>(ret), 5U); in CheckMissesDueAlign()
116 EXPECT_EQ(std::get<uint8_t>(ret), 6U); in CheckMissesDueAlign()
120 EXPECT_EQ(std::get<uint8_t>(ret), 8U); in CheckMissesDueAlign()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/class_method/sts_to_js/
Dclass_method.sts23 get(): int {
28 if (x instanceof UserClass && x.get() == this.get()) {
42 if (x instanceof ChildClass && x.get() == this.get()) {
57 get(): int;
65 get(): int {
70 if (x instanceof InterfaceClass && x.get() == this.get()) {
85 private get(): int {
90 if (x instanceof PrivateClass && x.get() == this.get()) {
105 protected get(): int {
110 if (x instanceof ProtectedClass && x.get() == this.get()) {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/class_method/ts_to_sts/put_another_instance_class/
Dput_another_instance_class.sts46 return TSClass.compare(AnotherClass.get) as boolean == false;
53 return TSClass.compare(AnotherClass.get) as boolean == false;
60 return TSClass.compare(AnotherClass.get) as boolean == false;
67 return TSClass.childMethodCompare(AnotherClass.get) as boolean == false;
74 return TSClass.childMethodCompare(AnotherClass.get) as boolean == false;
81 return TSClass.childMethodCompare(AnotherClass.get) as boolean == false;
88 return TSClass.compare(AnotherClass.get) as boolean == false;
95 return TSClass.compare(AnotherClass.get) as boolean == false;
102 return TSClass.compare(AnotherClass.get) as boolean == false;
109 return TSClass.compare(AnotherClass.get) as boolean == false;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_static/ts_to_sts/
Dmain.ts36 static get<T>(value: T): T { method in GenericStatic
42 return GenericStatic.get(arg);
49 return GenericExtends.get(arg);
53 static get<T extends Literal>(value: T): T { method in LiteralStatic
59 return LiteralStatic.get(arg);
64 static get<T extends TupleType>(value: T): T[0] { method in ExtraSetStatic
70 return ExtraSetStatic.get(arg);
74 static get<T extends Subset>(value: T): T { method in SubsetByRefStatic
80 return SubsetByRefStatic.get(arg);
85 static get<T extends typeof BaseObj.a>(value: T): T { method in SubsetByValueStatic
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/generic_static/sts_to_js/
Dgeneric_static.sts34 // static get<T extends Literal>(value: T): T {
40 // return LiteralStatic.get(arg);
47 // static get<T extends Tuple>(value: T): int {
53 // return ExtraSetStatic.get(arg);
58 static get<T>(value: T): T {
64 return GenericStatic.get(arg);
71 return GenericExtends.get(arg);
75 static get<T extends ArrayInt>(value: T): T {
81 return SubsetByRefStatic.get(arg);
87 // static get<T extends typeof BaseObj.a>(value: T): T {
[all …]
/arkcompiler/ets_frontend/arkguard/test/grammar/getsetaccessor/propertyConfig/
Dgetaccessor_1.ts18 static get INT(): SettingType_2 & {
19 get name_get_prop_2(): "INT";
20 get orignal_get_prop_2(): 0;
24 static get DOUBLE(): SettingType_2 & {
25 get name_get_prop_2(): "DOUBLE";
26 get orignal_get_prop_2(): 1;
33 get name_get_prop_2(): "INT" {
36 get orignal_get_prop_2():0 {
42 get name_get_prop_2(): "DOUBLE" {
45 get orignal_get_prop_2():1 {
Dgetaccessor_1_expected.txt17 static get INT(): SettingType_2 & {
18 get j(): "INT";
19 get k(): 0;
23 static get l(): SettingType_2 & {
24 get j(): "DOUBLE";
25 get k(): 1;
31 get j(): "INT" {
34 get k(): 0 {
39 get j(): "DOUBLE" {
42 get k(): 1 {
Dobject_literal_get.ts17 get foo2() {
19 get foo2() {
27 get foo2() {
29 get foo2() {
37 get foo2(): { property
38 get foo2(): {
39 get foo2(): {}
Dobject_literal_get_expected.txt16 get m() {
18 get m() {
25 get m() {
27 get m() {
34 get m(): {
35 get m(): {
36 get m(): {};
/arkcompiler/ets_frontend/arkguard/test/grammar/getsetaccessor/defaultConfig/
Dgetaccessor_1.ts18 static get INT(): SettingType_1 & {
19 get name_get_2(): "INT";
20 get orignal_get_2(): 0;
24 static get DOUBLE(): SettingType_1 & {
25 get name_get_2(): "DOUBLE";
26 get orignal_get_2(): 1;
33 get name_get_2(): "INT" {
36 get orignal_get_2():0 {
42 get name_get_2(): "DOUBLE" {
45 get orignal_get_2():1 {
Dgetaccessor_1_expected.txt17 static get INT(): SettingType_1 & {
18 get name_get_2(): "INT";
19 get orignal_get_2(): 0;
23 static get DOUBLE(): SettingType_1 & {
24 get name_get_2(): "DOUBLE";
25 get orignal_get_2(): 1;
31 get name_get_2(): "INT" {
34 get orignal_get_2(): 0 {
39 get name_get_2(): "DOUBLE" {
42 get orignal_get_2(): 1 {
Dobject_literal_get_expected.txt16 get foo1() {
18 get foo1() {
25 get foo1() {
27 get foo1() {
34 get foo1(): {
35 get foo1(): {
36 get foo1(): {};
Dobject_literal_get.ts17 get foo1() {
19 get foo1() {
27 get foo1() {
29 get foo1() {
37 get foo1(): { property
38 get foo1(): {
39 get foo1(): {}
/arkcompiler/runtime_core/static_core/tests/checked/
Dinline_small.pa24 #! EVENTS_COUNT /Inline,C::Get,D::Get,.*STATIC,SUCCESS/, 1
25 #! EVENTS_COUNT /Inline,B::Get,C::Get,.*STATIC,SUCCESS/, 1
26 #! EVENTS_COUNT /Inline,A::Get,B::Get,.*STATIC,SUCCESS/, 1
27 #! EVENTS_COUNT /Inline,A::main,A::Get,.*STATIC,SUCCESS/, 1
35 #! EVENTS_COUNT /Inline,D::Get,D::GetModified,.*STATIC,SUCCESS/, 0
36 #! EVENTS_COUNT /Inline,C::Get,D::Get,.*STATIC,SUCCESS/, 1
37 #! EVENTS_COUNT /Inline,B::Get,C::Get,.*STATIC,SUCCESS/, 1
38 #! EVENTS_COUNT /Inline,A::Get,B::Get,.*STATIC,SUCCESS/, 1
39 #! EVENTS_COUNT /Inline,A::main,A::Get,.*STATIC,SUCCESS/, 1
54 .function i32 D.Get(D a0) {
[all …]
/arkcompiler/runtime_core/static_core/libllvmbackend/templates/
Dintrinsics_gen.inl.erb22 …return llvm::FunctionType::get(llvm::Type::getDoubleTy(ctx), {llvm::Type::getDoubleTy(ctx), llvm::…
24 …return llvm::FunctionType::get(llvm::Type::getFloatTy(ctx), {llvm::Type::getFloatTy(ctx), llvm::Ty…
26 …return llvm::FunctionType::get(llvm::Type::getDoubleTy(ctx), {llvm::Type::getDoubleTy(ctx), llvm::…
28 …return llvm::FunctionType::get(llvm::Type::getFloatTy(ctx), {llvm::Type::getFloatTy(ctx), llvm::Ty…
30 …return llvm::FunctionType::get(llvm::Type::getDoubleTy(ctx), {llvm::Type::getDoubleTy(ctx)}, false…
32 … return llvm::FunctionType::get(llvm::Type::getFloatTy(ctx), {llvm::Type::getFloatTy(ctx)}, false);
35 return llvm::FunctionType::get(llvm::Type::getVoidTy(ctx),
36 …{llvm::PointerType::get(ctx, 0), llvm::PointerType::get(ctx, 0), llvm::Type::getInt64Ty(ctx)}, fal…
38 return llvm::FunctionType::get(llvm::Type::getVoidTy(ctx),
39 … {llvm::PointerType::get(ctx, 0), llvm::Type::getInt8Ty(ctx), llvm::Type::getInt64Ty(ctx)}, false);
[all …]
/arkcompiler/ets_frontend/es2panda/test/parser/ts/
Dtest_GetOrSetAccessor7.ts18 get:number property
22 get
26 get; property
30 get?:number property
34 get():number; method
38 get<T>():number; method
42 get?():number; method
46 get, property
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/spec/07.expressions/7.5.Object_Literal/7.5.3.Object_Literal_of_Record_Type/
Drecord-boxable-types.sts27 assert string_number.get("hello") == 10
28 assert string_number.get("world") == 20
36 assert string_double.get("hello") == 10
37 assert string_double.get("world") == 20
45 assert string_float.get("hello") == 10
46 assert string_float.get("world") == 20
54 assert string_long.get("hello") == 10
55 assert string_long.get("world") == 20
63 assert string_int.get("hello") == 10
64 assert string_int.get("world") == 20
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/class_method/ts_to_sts/
Dmain.ts21 get(): number { method in UserClass
26 if (typeof x === 'function' && x === this.get) {
42 if (typeof x === 'function' && x === this.get) {
59 get(): number; method
67 get(): number { method in InterfaceClass
72 if (typeof x === 'function' && x === this.get) {
89 static get(): number { method in StaticClass
94 if (typeof x === 'function' && x === this.get) {
109 private get(): number { method in PrivateClass
114 if (typeof x === 'function' && x === this.get) {
[all …]

12345678910>>...104