Home
last modified time | relevance | path

Searched full:4 (Results 1 – 25 of 1756) sorted by relevance

12345678910>>...71

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DtemplateStringBinaryOperations.ts35 let c = 1 + `${ 3 }4`;
37 AssertType(1 + `${ 3 }4`, "string");
39 AssertType(`${ 3 }4`, "string");
42 let d = 1 + `2${ 3 }4`;
44 AssertType(1 + `2${ 3 }4`, "string");
46 AssertType(`2${ 3 }4`, "string");
63 let g = `${ 3 }4` + 5;
65 AssertType(`${ 3 }4` + 5, "string");
66 AssertType(`${ 3 }4`, "string");
70 let h = `2${ 3 }4` + 5;
[all …]
DtemplateStringBinaryOperationsES6.ts35 let c = 1 + `${ 3 }4`;
37 AssertType(1 + `${ 3 }4`, "string");
39 AssertType(`${ 3 }4`, "string");
42 let d = 1 + `2${ 3 }4`;
44 AssertType(1 + `2${ 3 }4`, "string");
46 AssertType(`2${ 3 }4`, "string");
63 let g = `${ 3 }4` + 5;
65 AssertType(`${ 3 }4` + 5, "string");
66 AssertType(`${ 3 }4`, "string");
70 let h = `2${ 3 }4` + 5;
[all …]
DcontextualTypeLogicalOr.ts30 x && [1, 2, 3, 4] ||
314] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4]…
324] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4]…
334] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4]…
344] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4]…
354] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4]…
364] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4]…
37 … 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3…
38 …(x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x…
39 AssertType(x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4] || x && [1, 2, 3, 4
[all …]
DarrayBestCommonTypes.ts38 <number>(this.voidIfAny([4, 2][0]));
39 AssertType(<number>(this.voidIfAny([4, 2][0])), "number");
40 AssertType((this.voidIfAny([4, 2][0])), "number");
41 AssertType(this.voidIfAny([4, 2][0]), "number");
44 AssertType([4, 2][0], "number");
45 AssertType([4, 2], "number[]");
46 AssertType(4, "int");
50 <number>(this.voidIfAny([4, 2, undefined][0]));
51 AssertType(<number>(this.voidIfAny([4, 2, undefined][0])), "number");
52 AssertType((this.voidIfAny([4, 2, undefined][0])), "number");
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dserializer_test.cpp49 constexpr const int64_t IMM_FOUR = 4; in DoTest()
103 DoTest<std::string>({}, 4); in TEST_F()
104 DoTest<std::string>("", 4); in TEST_F()
105 DoTest<std::string>("Hello World!", 4 + 12); in TEST_F()
106 DoTest<std::string>("1", 4 + 1); in TEST_F()
107 DoTest<std::string>({}, 4); in TEST_F()
112 DoTest<std::vector<uint8_t>>({1, 2, 3, 4}, 4 + 1 * 4); in TEST_F()
113 DoTest<std::vector<uint16_t>>({143, 452, 334}, 4 + 2 * 3); in TEST_F()
114 DoTest<std::vector<uint32_t>>({15434, 4564562, 33453, 43456, 346346}, 4 + 5 * 4); in TEST_F()
115 DoTest<std::vector<uint64_t>>({14345665644345, 34645345465}, 4 + 8 * 2); in TEST_F()
[all …]
Dspan_test.cpp47 std::vector v {4, 5, 6}; in TEST()
48 const std::vector const_v {-4, -5, -6}; in TEST()
57 EXPECT_EQ(ToString(Double(Span(c))), "2 4 6 "); in TEST()
59 EXPECT_EQ(ToString(Span(const_v)), "-4 -5 -6 "); in TEST()
68 int c[] {1, 2, 3, 4, 5}; in TEST()
73 EXPECT_EQ(ToString(s), "2 3 4 "); in TEST()
75 EXPECT_EQ(ToString(l), "3 4 "); in TEST()
88 ASSERT_DEATH(sp.SubSpan<Foo>(4, 3), ".*"); in TEST()
91 auto sub_sp = sp.SubSpan<Foo>(4, 2); in TEST()
102 ASSERT_DEATH(sp.SubSpan<uint16_t>(4, 1), ".*"); in TEST()
[all …]
/arkcompiler/ets_frontend/testTs/expect/types/spread/
DobjectSpreadRepeatedNullCheckPerf.txt24}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'b'}, {'t': 25, 'v': 4}, {'t': 2, 'v': 0}, {…
/arkcompiler/ets_runtime/test/aottest/classstatic/
Dclassstatic.ts20 this.mode = 4;
41 static TwoCC = 4;
45 static test4 = 4;
49 static test8 = 4;
53 static test12 = 4;
57 static test15 = 4;
61 static test19 = 4;
65 static test23 = 4;
69 static test27 = 4;
75 static test33 = 4;
[all …]
/arkcompiler/ets_frontend/test262/
Des5_tests.txt258 built-ins/Array/isArray/15.4.3.2-1-4.js
294 built-ins/Array/prototype/concat/S15.4.4.4_A1_T1.js
295 built-ins/Array/prototype/concat/S15.4.4.4_A1_T2.js
296 built-ins/Array/prototype/concat/S15.4.4.4_A1_T3.js
297 built-ins/Array/prototype/concat/S15.4.4.4_A1_T4.js
298 built-ins/Array/prototype/concat/S15.4.4.4_A2_T1.js
299 built-ins/Array/prototype/concat/S15.4.4.4_A2_T2.js
300 built-ins/Array/prototype/concat/S15.4.4.4_A3_T1.js
301 built-ins/Array/prototype/concat/S15.4.4.4_A3_T2.js
302 built-ins/Array/prototype/concat/S15.4.4.4_A3_T3.js
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dmove_constants_test.cpp31 BASIC_BLOCK(2, 4, 3) in TEST_F()
41 BASIC_BLOCK(4, 6, 5) in TEST_F()
43 INST(4, Opcode::IfImm).CC(CC_LE).Imm(10).Inputs(0); in TEST_F()
61 BASIC_BLOCK(2, 4, 3) in TEST_F()
71 BASIC_BLOCK(4, 6, 5) in TEST_F()
74 INST(4, Opcode::IfImm).CC(CC_LE).Imm(10).Inputs(0); in TEST_F()
102 BASIC_BLOCK(2, 4, 3) in TEST_F()
112 BASIC_BLOCK(4, 6, 5) in TEST_F()
114 INST(4, Opcode::IfImm).CC(CC_LE).Imm(10).Inputs(0); in TEST_F()
134 BASIC_BLOCK(2, 4, 3) in TEST_F()
[all …]
Dcleanup_test.cpp58 BASIC_BLOCK(3, 4, 5) in TEST_F()
62 BASIC_BLOCK(4, 5) in TEST_F()
64 INST(4, Opcode::Add).s64().Inputs(0, 1); in TEST_F()
68 INST(5, Opcode::Phi).s64().Inputs({{3, 1}, {4, 4}}); in TEST_F()
88 BASIC_BLOCK(3, 4, 6) in TEST_F()
92 BASIC_BLOCK(4, 6) in TEST_F()
94 INST(4, Opcode::Add).s64().Inputs(0, 1); in TEST_F()
98 INST(5, Opcode::Phi).s64().Inputs({{2, 0}, {3, 1}, {4, 4}}); in TEST_F()
111 BASIC_BLOCK(2, 3, 4) in TEST_F()
115 BASIC_BLOCK(3, 4) in TEST_F()
[all …]
Dgraph_comparator_test.cpp31 BASIC_BLOCK(2, 3, 4) in CreateGraph()
37 INST(4, Opcode::Add).s32().Inputs(0, 1); in CreateGraph()
39 BASIC_BLOCK(4, 5, 6) in CreateGraph()
75 INST(4, Opcode::Return).s32().Inputs(2); in TEST_F()
104 BASIC_BLOCK(2, 3, 4) in TEST_F()
110 INST(4, Opcode::Add).s32().Inputs(0, 1); in TEST_F()
112 BASIC_BLOCK(4, 5) in TEST_F()
118 INST(6, Opcode::Phi).s32().Inputs({{3, 4}, {4, 5}}); in TEST_F()
128 BASIC_BLOCK(2, 3, 4) in TEST_F()
134 INST(4, Opcode::Add).s32().Inputs(0, 1); in TEST_F()
[all …]
Dbasicblock_test.cpp68 * [3] [4]
92 BASIC_BLOCK(2, 3, 4) in TEST_F()
97 BASIC_BLOCK(4, 5) {} in TEST_F()
107 INST(4, Opcode::Add).u64().Inputs(0, 1); in TEST_F()
119 INST(8, Opcode::Phi).u64().Inputs({{3, 4}, {6, 5}, {7, 6}}); in TEST_F()
128 CheckVectorEqualBlocksIdSet(BB(2).GetSuccsBlocks(), {3, 4}); in TEST_F()
131 CheckVectorEqualBlocksIdSet(BB(4).GetPredsBlocks(), {2}); in TEST_F()
132 CheckVectorEqualBlocksIdSet(BB(4).GetSuccsBlocks(), {5}); in TEST_F()
133 CheckVectorEqualBlocksIdSet(BB(5).GetPredsBlocks(), {4}); in TEST_F()
163 * [3] [4]
[all …]
Dvn_test.cpp44 PARAMETER(4, 4).f32(); in TEST_F()
51 INST(8, Opcode::Mul).f32().Inputs(4, 5); in TEST_F()
55 INST(12, Opcode::Mul).f32().Inputs(4, 5); in TEST_F()
69 PARAMETER(4, 4).f32(); in TEST_F()
76 INST(8, Opcode::Mul).f32().Inputs(4, 5); in TEST_F()
80 INST(12, Opcode::Mul).f32().Inputs(4, 5); in TEST_F()
102 PARAMETER(4, 4).f32(); in TEST_F()
105 BASIC_BLOCK(2, 3, 4) in TEST_F()
110 INST(9, Opcode::Cmp).s32().SrcType(DataType::Type::FLOAT32).Fcmpg(false).Inputs(4, 5); in TEST_F()
120 BASIC_BLOCK(4, 5, 6) in TEST_F()
[all …]
/arkcompiler/ets_runtime/test/moduletest/array/
Dexpect_output.txt19 1,2,3,4,5
20 4
21 1,2,3,4
22 4
25 2,3,4,5,6
26 5,4,3,2,1
48 4
78 6,,4,3,2,1
79 1,2,3,4,,6
80 1,2,6,4,5
[all …]
/arkcompiler/ets_frontend/ts2panda/ts2abc/tests/sources/
Dadd.json12 4,
17 "columnNum": 4
28 "columnNum": 4
39 "columnNum": 4
50 "columnNum": 4
61 "columnNum": 4
68 "columnNum": 4
78 "columnNum": 4
104 4
128 "columnNum": 4
[all …]
/arkcompiler/ets_frontend/testTs/expect/types/typeRelationships/typeInference/
DunionAndIntersectionInference2.txt1 {'lb': [{'t': 2, 'v': 4}, {'t': 2, 'v': 2}, {'t': 25, 'v': 4}, {'t': 24, 'v': '_2'}], 'k': '_1'}
2 {'lb': [{'t': 2, 'v': 5}, {'t': 25, 'v': 4}], 'k': '_2'}
3 {'lb': [{'t': 2, 'v': 4}, {'t': 2, 'v': 2}, {'t': 24, 'v': '_2'}, {'t': 25, 'v': 4}], 'k': '_3'}
4 {'lb': [{'t': 2, 'v': 4}, {'t': 2, 'v': 2}, {'t': 25, 'v': 4}, {'t': 24, 'v': '_5'}], 'k': '_4'}
5 {'lb': [{'t': 2, 'v': 6}, {'t': 2, 'v': 1}, {'t': 5, 'v': 'name'}, {'t': 25, 'v': 4}], 'k': '_5'}
6 {'lb': [{'t': 2, 'v': 4}, {'t': 2, 'v': 3}, {'t': 25, 'v': 1}, {'t': 25, 'v': 4}, {'t': 25, 'v': 2}…
/arkcompiler/ets_frontend/testTs/expect/expressions/typeGuards/
DtypeGuardOfFormTypeOfString.txt1 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 4}, {'tag': …
2 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 4}, {'tag': …
3 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 1}, {'tag': …
4 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 3}, {'tag': 2, 'value': 4}, {'tag': …
5 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 4}, {'tag': …
6 …: 0}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'p'}, {'tag': 2, 'value': 4}, {'tag': 2, 'value'…
8 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 1}, {'tag': …
9 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 2}, {'tag': …
DtypeGuardOfFormTypeOfBoolean.txt1 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 4}, {'tag': …
2 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 4}, {'tag': …
3 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 1}, {'tag': …
4 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 3}, {'tag': 2, 'value': 4}, {'tag': …
5 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 4}, {'tag': …
6 …: 0}, {'tag': 2, 'value': 1}, {'tag': 5, 'value': 'p'}, {'tag': 2, 'value': 4}, {'tag': 2, 'value'…
8 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 1}, {'tag': …
9 {'literalBuffer': [{'tag': 2, 'value': 4}, {'tag': 2, 'value': 2}, {'tag': 2, 'value': 2}, {'tag': …
/arkcompiler/toolchain/tooling/base/
Dpt_base64.cpp24 255, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
62 …*dest++ = (base64Chars[0] << 2) | ((base64Chars[1] & 0x30) >> 4); // 2: shift 2bits, 4: shift 4bits in Decode()
63 …*dest++ = (base64Chars[1] << 4) | ((base64Chars[2] & 0x3c) >> 2); // 2: shift 2bits, 4: shift 4bits in Decode()
72 … tmp[0] = (base64Chars[0] << 2) | ((base64Chars[1] & 0x30) >> 4); // 2: shift 2bits, 4: shift 4bits in Decode()
73 … tmp[1] = (base64Chars[1] << 4) | ((base64Chars[2] & 0x3c) >> 2); // 2: shift 2bits, 4: shift 4bits in Decode()
101 *dest++ = ENCODE_TABLE[((src[0] & 0x03) << 4) | (src[1] >> 4)]; // 4: shift 4bits in Encode()
113 *dest++ = ENCODE_TABLE[((src[0] & 0x03) << 4) | (src[1] >> 4)]; // 4: shift 4bits in Encode()
119 *dest++ = ENCODE_TABLE[((src[0] & 0x03) << 4)]; // 4: shift 4bits in Encode()
/arkcompiler/ets_frontend/testTs/expect/types/union/
DcontextualTypeWithUnionTypeMembers.txt1 …PropertyType'}, {'t': 25, 'v': 4}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'propertyOnly…
2 …nMethodType'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4}], 'k': '_2…
4 …hodOnlyInI1'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4}], 'k': '_4…
5 …PropertyType'}, {'t': 25, 'v': 4}, {'t': 2, 'v': 0}, {'t': 2, 'v': 0}, {'t': 5, 'v': 'propertyOnly…
6 …nMethodType'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4}], 'k': '_6…
8 …hodOnlyInI2'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4}], 'k': '_8…
9 {'lb': [{'t': 2, 'v': 4}, {'t': 2, 'v': 2}, {'t': 24, 'v': '_1'}, {'t': 24, 'v': '_5'}], 'k': '_9'}
11 …': 2, 'v': 1}, {'t': 5, 'v': 'commonPropertyDifferentType'}, {'t': 25, 'v': 4}, {'t': 2, 'v': 0}, …
12 …pe'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 2}, {'t': 25, 'v': 4}, {'t': 25, 'v': 1}, {'t': 25, 'v': 4}]…
14 …odDifferentReturnType'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 2}, {'t': 25, 'v': 4}, {'t': 25, 'v': 1},…
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcall_signature.cpp238 // 4 : 4 input parameters in DEF_CALL_SIGNATURE()
239 …CallSignature setPropertyByName("DeprecatedSetPropertyByName", 0, 4, ArgumentsOrder::DEFAULT_ORDER, in DEF_CALL_SIGNATURE()
242 // 4 : 4 input parameters in DEF_CALL_SIGNATURE()
243 std::array<VariableType, 4> params = { in DEF_CALL_SIGNATURE()
255 // 4 : 4 input parameters in DEF_CALL_SIGNATURE()
256 …CallSignature setPropertyByNameWithOwn("SetPropertyByNameWithOwn", 0, 4, ArgumentsOrder::DEFAULT_O… in DEF_CALL_SIGNATURE()
259 // 4 : 4 input parameters in DEF_CALL_SIGNATURE()
260 std::array<VariableType, 4> params = { in DEF_CALL_SIGNATURE()
291 // 4 : 4 input parameters in DEF_CALL_SIGNATURE()
292 …CallSignature setPropertyByName("DeprecatedSetPropertyByValue", 0, 4, ArgumentsOrder::DEFAULT_ORDE… in DEF_CALL_SIGNATURE()
[all …]
/arkcompiler/ets_frontend/testTs/expect/types/stringLiteral/
DstringLiteralTypesWithVariousOperators01.txt1 {'lb': [{'t': 2, 'v': 4}, {'t': 2, 'v': 2}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4}], 'k': '_1'}
2 {'lb': [{'t': 2, 'v': 4}, {'t': 2, 'v': 3}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4}, {'t': 25, 'v': 1}…
/arkcompiler/ets_frontend/testTs/expect/declarationEmit/
DdeclarationEmitWorkWithInlineComments.txt24}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4}, {'t': 25, 'v': 4},…
5 … 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 25, 'v': 4}, {'t': 25, 'v': 0}]…
8 … 5, 'v': 'constructor'}, {'t': 2, 'v': 0}, {'t': 2, 'v': 1}, {'t': 25, 'v': 4}, {'t': 25, 'v': 0}]…
/arkcompiler/ets_frontend/ts2panda/tests/types/
Dunion.test.ts38 ["#4#str", shift + 2],
40 ["#6#full", shift + 4],
48 … [2, 4], [24, "snippet_1"], [24, "snippet_2"], [24, "snippet_3"], [24, "snippet_4"], [2, 0]
51 [2, 4], [2, 2], [25, 1], [25, 2]
54 [2, 4], [2, 2], [25, 4], [25, 5]
57 [2, 4], [2, 2], [25, 7], [25, 6]
60 [2, 4], [2, 6], [25, 1], [25, 2],
61 [25, 4], [25, 5], [25, 7], [25, 6]
76 ["#4#c", shift + 2],
84 … [2, 4], [24, "snippet_1"], [24, "snippet_2"], [24, "snippet_3"], [24, "snippet_4"], [2, 0]
[all …]

12345678910>>...71