Home
last modified time | relevance | path

Searched +full:- +full:1 (Results 1 – 25 of 1153) sorted by relevance

12345678910>>...47

/arkcompiler/ets_frontend/es2panda/util/
Dbase64.cpp7 * http://www.apache.org/licenses/LICENSE-2.0
28 …for (size_t i = 0, j = 0; i < encodedRes.length() - 2; i += TRANSFORMED_CHAR_NUM, j += TO_TRANSFOR… in Base64Encode()
33 …encodedRes[i + 1] = base64CharSet[(inputString[j] & 0x03) << 4 | (inputString[j + 1] & 0xf0) >> 4]; in Base64Encode()
35 …encodedRes[i + 2] = base64CharSet[(inputString[j + 1] & 0x0f) << 2 | (inputString[j + 2] & 0xc0) >… in Base64Encode()
40 case 1: in Base64Encode()
41 encodedRes[encodedRes.length() - 2] = '='; in Base64Encode()
42 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode()
45 encodedRes[encodedRes.length() - 1] = '='; in Base64Encode()
56 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
57 -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, in Base64Decode()
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DemitExponentiationOperator1.ts8 * http://www.apache.org/licenses/LICENSE-2.0
21 1 ** -2;
22 AssertType(1 ** -2, "number");
23 AssertType(1, "int");
24 AssertType(-2, "int");
27 1 ** 2;
28 AssertType(1 ** 2, "number");
29 AssertType(1, "int");
32 (-1) ** 2
33 AssertType((-1) ** 2, "number");
[all …]
DemitCompoundExponentiationOperator2.ts8 * http://www.apache.org/licenses/LICENSE-2.0
24 comp **= 1;
25 AssertType(comp **= 1, "number");
27 AssertType(1, "int");
29 comp **= comp **= 1;
30 AssertType(comp **= comp **= 1, "number");
32 AssertType(comp **= 1, "number");
34 AssertType(1, "int");
36 comp **= comp **= 1 + 2;
37 AssertType(comp **= comp **= 1 + 2, "number");
[all …]
DnewWithSpreadES6.ts8 * http://www.apache.org/licenses/LICENSE-2.0
38 "a-b": typeof B;
42 1: typeof B;
72 new f(1, 2, "string");
73 AssertType(new f(1, 2, "string"), "any");
75 AssertType(1, "int");
79 new f(1, 2, ...a);
80 AssertType(new f(1, 2, ...a), "any");
82 AssertType(1, "int");
87 new f(1, 2, ...a, "string");
[all …]
DnewWithSpreadES5.ts8 * http://www.apache.org/licenses/LICENSE-2.0
37 "a-b": typeof B;
41 1: typeof B;
71 new f(1, 2, "string");
72 AssertType(new f(1, 2, "string"), "any");
74 AssertType(1, "int");
78 new f(1, 2, ...a);
79 AssertType(new f(1, 2, ...a), "any");
81 AssertType(1, "int");
86 new f(1, 2, ...a, "string");
[all …]
DsystemModule8.ts8 * http://www.apache.org/licenses/LICENSE-2.0
24 x = 1;
25 AssertType(x = 1, "int");
27 AssertType(1, "int");
33 x--;
34 AssertType(x--, "number");
41 --x;
42 AssertType(--x, "number");
45 x += 1;
46 AssertType(x += 1, "any");
[all …]
DtemplateStringBinaryOperations.ts8 * http://www.apache.org/licenses/LICENSE-2.0
21 let a = 1 + `${ 3 }`;
23 AssertType(1 + `${ 3 }`, "string");
24 AssertType(1, "int");
28 let b = 1 + `2${ 3 }`;
30 AssertType(1 + `2${ 3 }`, "string");
31 AssertType(1, "int");
35 let c = 1 + `${ 3 }4`;
37 AssertType(1 + `${ 3 }4`, "string");
38 AssertType(1, "int");
[all …]
DtemplateStringBinaryOperationsES6.ts8 * http://www.apache.org/licenses/LICENSE-2.0
21 let a = 1 + `${ 3 }`;
23 AssertType(1 + `${ 3 }`, "string");
24 AssertType(1, "int");
28 let b = 1 + `2${ 3 }`;
30 AssertType(1 + `2${ 3 }`, "string");
31 AssertType(1, "int");
35 let c = 1 + `${ 3 }4`;
37 AssertType(1 + `${ 3 }4`, "string");
38 AssertType(1, "int");
[all …]
Dparser.numericSeparators.decimal.ts8 * http://www.apache.org/licenses/LICENSE-2.0
21 1_000_000_000
22 AssertType(1_000_000_000, "int");
27 1e1_0
28 AssertType(1e1_0, "int");
30 1e+1_0
31 AssertType(1e+1_0, "int");
33 1e-1_0
34 AssertType(1e-1_0, "int");
42 1.1e-10_0
[all …]
DuncaughtCompilerError1.ts8 * http://www.apache.org/licenses/LICENSE-2.0
28 …if (lineTokens[index].trim() === '=' && index > 0 && token.type === '' && tokens[index - 1].type =…
29 AssertType(lineTokens[index].trim() === '=' && index > 0 && token.type === '' && tokens[index - 1].…
45 AssertType(tokens[index - 1].type === 'attribute.name.html', "boolean");
46 AssertType(tokens[index - 1].type, "any");
47 AssertType(tokens[index - 1], "any");
49 AssertType(index - 1, "number");
51 AssertType(1, "int");
54 if (index === (tokens.length - 1)) {
55 AssertType(index === (tokens.length - 1), "boolean");
[all …]
DliteralTypes2.ts8 * http://www.apache.org/licenses/LICENSE-2.0
28 function f1(p1 = 1, p2 = "abc", p3 = true, p4 = E.A) {
29 let v1 = 1;
31 AssertType(1, "int");
33 let v2 = -123;
35 AssertType(-123, "int");
66 let x1 = 1;
68 AssertType(1, "int");
70 let x2 = -123;
72 AssertType(-123, "int");
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dlda.const.yaml1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
15 - file-name: lda.const
19 … Create a new single-dimensional constant literal array and put a reference to it into register.
22 - file-name: array_def_err
28 - sig: lda.const v:out:ref, literalarray_id
32 - constant_literalarray_id
33 runner-options: [compile-failure]
34 header-template: []
35 code-template: |
[all …]
/arkcompiler/runtime_core/assembler/
Dcontext.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
17 #include "assembly-parser.h"
18 #include "utils/number-utils.h"
30 number = 1; in Make()
34 …token = std::string_view(&*(tokens[number - 1].whole_line.begin() + tokens[number - 1].bound_left), in Make()
35 tokens[number - 1].bound_right - tokens[number - 1].bound_left); in Make()
37 id = this->tokens[number - 1].type; in Make()
50 p.remove_prefix(1); in ValidateRegisterName()
52 if (p.empty() || (p.size() > 1 && p[0] == '0')) { in ValidateRegisterName()
[all …]
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/graphics/
DXMat4.js2 * Copyright (c) 2022-2023 Shenzhen Kaihong Digital Industry Development Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
26 [1, 0, 0, 0],
27 [0, 1, 0, 0],
28 [0, 0, 1, 0],
29 [0, 0, 0, 1],
44 this.mat[1][1] = _cos;
45 this.mat[1][2] = -_sin;
46 this.mat[2][1] = _sin;
54 this.mat[0][2] = -_sin;
[all …]
/arkcompiler/runtime_core/compiler/tests/
Dvn_test.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
41 PARAMETER(1, 1).u64(); in TEST_F()
47 BASIC_BLOCK(2, -1) in TEST_F()
49 INST(6, Opcode::Add).u64().Inputs(0, 1); in TEST_F()
50 INST(7, Opcode::Sub).u32().Inputs(1, 0); in TEST_F()
53 INST(10, Opcode::Sub).u32().Inputs(1, 0); in TEST_F()
56 INST(13, Opcode::Add).u64().Inputs(0, 1); in TEST_F()
66 PARAMETER(1, 1).u64(); in TEST_F()
72 BASIC_BLOCK(2, -1) in TEST_F()
[all …]
Dmove_constants_test.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
28 PARAMETER(0, 1).u64(); in TEST_F()
29 CONSTANT(1, nullptr); in TEST_F()
36 BASIC_BLOCK(3, -1) in TEST_F()
46 BASIC_BLOCK(5, -1) in TEST_F()
48 INST(6, Opcode::Return).ref().Inputs(1); in TEST_F()
51 BASIC_BLOCK(6, -1) in TEST_F()
53 INST(8, Opcode::Return).ref().Inputs(1); in TEST_F()
59 PARAMETER(0, 1).u64(); in TEST_F()
[all …]
Dcleanup_test.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
29 BASIC_BLOCK(3, -1) in TEST_F()
35 ASSERT_TRUE(GetGraph()->RunPass<Cleanup>()); in TEST_F()
40 BASIC_BLOCK(3, -1) in TEST_F()
53 PARAMETER(1, 1).s64(); in TEST_F()
56 INST(2, Opcode::If).SrcType(DataType::Type::INT64).CC(CC_LE).Inputs(0, 1); in TEST_F()
60 INST(3, Opcode::If).SrcType(DataType::Type::INT64).CC(CC_EQ).Inputs(0, 1); 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()
[all …]
Dsplit_resolver_test.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
36 graph->RunPass<LivenessAnalyzer>(); in RunLivenessAnalysis()
37 return &graph->GetAnalysis<LivenessAnalyzer>(); in RunLivenessAnalysis()
42 auto split = source->SplitAt(position - 1, GetAllocator()); in SplitAssignReg()
43 split->SetReg(reg); in SplitAssignReg()
49 auto split = source->SplitAt(position - 1, GetAllocator()); in SplitAssignSlot()
50 split->SetLocation(Location::MakeStackSlot(slot)); in SplitAssignSlot()
56 ASSERT(source->GetInst()->IsConst()); in SplitAssignImmSlot()
57 auto split = source->SplitAt(position - 1, GetAllocator()); in SplitAssignImmSlot()
[all …]
/arkcompiler/runtime_core/docs/
Ddesign-of-interpreter.md10 | ------------------------------- | ---------------------------------------------------------- |
23 1. The platform should scale from microcontrollers to hi-end mobile phones:
24 1. It should fit into 50Kb of ROM.
25 1. It should be able to run consuming 64Kb of RAM.
26 1. Program execution via bytecode interpretation should be enabled on all targets.
27 1. The platform should support multiple programming languages
33 1. Bytecode should allow the interpreter to run no slower than state of the art interpreters.
34 1. Bytecode should be compact in size to avoid bloating application code.
35 1. Bytecode description should have a single entry point to simplify maintenance
40 1. Bytecode is register-based: all arguments and variables are mapped to virtual registers,
[all …]
/arkcompiler/ets_frontend/es2panda/test/type_extractor/testcases/
Dtest-namespace-enum-transformed-function-expected.txt2 ------------------------------------
3 slot _.#14695981039346656037#_-1
10 index: 1
12 val: -1
24 ------------------------------------
25 slot _.#14695981039346656037_1#_-1
32 index: 1
34 val: -1
46 ------------------------------------
47 slot _.#14695981039346656037_2#_-1
[all …]
/arkcompiler/runtime_core/tests/cts-generator/runner/reporters/
Dtest_reporter.rb1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
30 @logger.log 2, '----------------------------------------'
74 @logger.log 1, "TEST FAILED: #{@pa_file}"
75 @logger.log 1, 'Compilation failed.'
76 @logger.log 1, output unless output.empty?
80 @logger.log 1, "TEST FAILED: #{@pa_file}"
81 @logger.log 1, 'Quickening failed.'
82 @logger.log 1, output unless output.empty?
86 @logger.log 1, "TEST FAILED: #{@pa_file}"
[all …]
/arkcompiler/ets_runtime/test/moduletest/array/
Dexpect_output.txt6 # http://www.apache.org/licenses/LICENSE-2.0
15 1,1,0,0,1,1
19 1,2,3,4,5
21 1,2,3,4
23 1,2,3,3
26 5,4,3,2,1
37 1
42 1
45 1
64 1
[all …]
/arkcompiler/ets_runtime/test/aottest/stownbyindex/
Dstownbyindex.ts7 * http://www.apache.org/licenses/LICENSE-2.0
17 var a : any[] = [ ["ok"], [1, 2, 3] ];
19 print(a[1][0]);
20 print(a[1][1]);
21 print(a[1][2]);
24 1 : ["yes", "no"],
27 print(b[1][0]);
28 print(b[1][1]);
30 print(b["100"][1]);
45 new Attrs(1, 1, 1),
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Dbit_table_test.cpp2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
61 ArenaVector<uint8_t> data(GetAllocator()->Adapter()); in TEST_F()
62 data.reserve(1_KB); in TEST_F()
64 BitTableBuilder<BitTableDefault<1>> builder(GetAllocator()); in TEST_F()
70 BitTable<BitTableDefault<1>> table; in TEST_F()
79 ArenaVector<uint8_t> data(GetAllocator()->Adapter()); in TEST_F()
80 data.reserve(1_KB); in TEST_F()
82 BitTableBuilder<BitTableDefault<1>> builder(GetAllocator()); in TEST_F()
89 BitTable<BitTableDefault<1>> table; in TEST_F()
[all …]
/arkcompiler/ets_runtime/tools/circuit_viewer/src/engine/
DRightMenu.js2 * Copyright (c) 2022-2023 Shenzhen Kaihong Digital Industry Development Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
20 static backgroundImg_ = -1;
21 static backgroundCut_ = -1;
23 static popItemFocusImg_ = -1;
24 static popItemFocusCut_ = -1;
58 type: 1,
93 l += 1;
97 X2DFast.px2f.drawCut(this.backgroundCut_, x, y, 1, 0.88, 0, -1, -1);
98 } else if (grp.length == 1) {
[all …]

12345678910>>...47