Home
last modified time | relevance | path

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

12345678910>>...81

/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 …]
Darrayfrom.js72 get(o, k) { method
73 print("get",k);
94 get(o, k) { method
95 print("get",k);
116 get length() {
117 print("get length");
124 get 0() {
125 print('get 0');
128 get 1() {
129 print('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/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/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/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/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.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/compiler/tests/aarch64/
Dcallconv64_test.cpp94 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
95 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT8_TYPE)); in TEST_F()
100 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F()
101 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT8_TYPE)); in TEST_F()
110 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
111 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT32_TYPE)); in TEST_F()
116 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F()
117 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT32_TYPE)); in TEST_F()
126 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
127 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT64_TYPE)); in TEST_F()
[all …]
/arkcompiler/runtime_core/compiler/tests/aarch64/
Dcallconv64_test.cpp98 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
99 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT8_TYPE)); in TEST_F()
104 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F()
105 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT8_TYPE)); in TEST_F()
114 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
115 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT32_TYPE)); in TEST_F()
120 EXPECT_EQ(std::get<Reg>(ret).GetId(), i); in TEST_F()
121 EXPECT_EQ(std::get<Reg>(ret), Reg(i, INT32_TYPE)); in TEST_F()
130 EXPECT_EQ(std::get<Reg>(ret).GetId(), 0); in TEST_F()
131 EXPECT_EQ(std::get<Reg>(ret), Reg(0, INT64_TYPE)); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/interface/ts_to_ets/
Dinterface_method.sts49 get(): int {
57 return (str as string) == (anyTypeMethodClass.get(str) as string)
63 return (num as int) == (anyTypeMethodClass.get(num) as int)
69 return (bool as boolean) == (anyTypeMethodClass.get(bool) as boolean)
75 return (anyTypeMethodClass.get(arr) as Array<int>) instanceof Array
81 return 'object' == (typeof anyTypeMethodClass.get(obj) as Object)
87 return (str as string) == (anyTypeMethodClass.get(str) as string)
93 return (num as int) == (anyTypeMethodClass.get(num) as int)
99 return (bool as boolean) == (anyTypeMethodClass.get(bool) as boolean)
105 return (anyTypeMethodClass.get(arr) as Array<int>) instanceof Array
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/interface/ets_to_ts/
Dcheck_any_type_interface_method.js21 ASSERT_TRUE(IClass.get(num) === num);
27 ASSERT_TRUE(IClass.get(string) === string);
33 ASSERT_TRUE(IClass.get(bool) === bool);
39 ASSERT_TRUE(Array.isArray(IClass.get(arr)));
45 ASSERT_TRUE(isObject(IClass.get(obj)));
51 ASSERT_TRUE(IClass.get(num) === num);
57 ASSERT_TRUE(IClass.get(string) === string);
63 ASSERT_TRUE(IClass.get(bool) === bool);
69 ASSERT_TRUE(Array.isArray(IClass.get(arr)));
75 ASSERT_TRUE(isObject(IClass.get(obj)));

12345678910>>...81