Home
last modified time | relevance | path

Searched full:be (Results 1 – 25 of 2652) sorted by relevance

12345678910>>...107

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/strings/
Dstring_api.ets34 assert str3.length == 5: "Length of the string must be 5";
35 assert str3.compareTo("hello") == 0: "Strings must be equal";
37 … "Result of comparing must be -12, but got " + StringBuilder.toString(str3.compareTo("tello"));
39 … "Result of comparing must be 1, but got " + StringBuilder.toString(str3.compareTo("hekko"));
41 … "Result of comparing must be 3, but got " + StringBuilder.toString(str3.compareTo("elag"));
44 assert chars.length == 5: "Chars length must be 5";
45 assert chars[0] == c'h': "First letter must be `h`";
46 assert chars[1] == c'e': "Second letter must be `e`";
47 assert chars[2] == c'l': "Third letter must be `l`";
48 assert chars[3] == c'l': "Fourth letter must be `l`";
[all …]
/arkcompiler/ets_frontend/ts2panda/tests/
Dscope.test.ts35 expect(variable instanceof GlobalVariable).to.be.true;
37 expect(outVariable === variable).to.be.true;
38 expect(lv).to.be.equal(0);
39 expect(sp).to.be.equal(scope);
45 expect(variable instanceof GlobalVariable).to.be.true;
47 expect(outVariable === variable).to.be.true;
48 expect(lv).to.be.equal(0);
49 expect(sp).to.be.equal(scope);
55 expect(variable instanceof LocalVariable).to.be.true;
57 expect(outVariable === variable).to.be.true;
[all …]
Dlexenv.test.ts75 …expect(globalScope.getChildVariableScope().length, "should not have any children!").to.be.equal(0);
76 … expect(globalScope.getParentVariableScope(), "should not have any children!").to.be.equal(null);
77 …Scope.getBindingNode() === sourceFile, "functionblock.node should equal to sourceFile").to.be.true;
105 expect(children.length, "should have 2 child!").to.be.equal(2);
106 expect(parent, "should not have any children!").to.be.equal(null);
107 … expect(bindingNode, "functionblock.root should equal to sourceFile").to.be.deep.equal(sourceFile);
113 expect(grandchildren0.length === 2, "son should have two children!").to.be.true;
121 expect(parentOfGrandson0).to.be.equal(son0);
122 expect(grandgrandchiildren0.length).to.be.equal(0);
126 expect(grandson1.getParentVariableScope()).to.be.equal(son0);
[all …]
/arkcompiler/ets_frontend/arkguard/
DREADME.md8 In DevEco Studio, Arkguard can be enabled only in Stage Model (FA Model is not supported).
9 For now only name obfuscations can be used in DevEco Studio (because other obfuscation
21 When you create a new project, the following config will be generated in `build-profile.json5`.
32 When you create a new library, additional property `consumerFiles` will be added.
45 To enable obfuscation, the following conditions should be satisfied:
49 The files in the property `ruleOptions.files` will be applied when you build HAP or HAR.
51 The files in the property `consumerFiles` will be applied when you build the project or library whi…
52 depends on this library. They will also be merged into a file `obfuscation.txt` in the resulting HA…
58 HAP, `obfuscation.txt` will not be generated. For more details, please jump to
86 Specifies to disable all obfuscations. If you use this option, the resulting HAP or HAR will not be
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/templates/stdlib/
Dsearch.ets.j227 * The array has to be sorted before calling this function.
30 …ay to find a lower bound of a key. Has to be sorted, otherwise the answer is implementation-define…
65 * The array has to be sorted before calling this function.
68 …ay to find a lower bound of a key. Has to be sorted, otherwise the answer is implementation-define…
78 …// TODO(ivan-tyulyandin): code below is an overcheck, but will be helpful in case of strange excep…
79 …assert false : "lowerBoundSearch: should be unreacheable since indicies have to be correct by desi…
86 * The array has to be sorted before calling this function.
89 …ay to find a upper bound of a key. Has to be sorted, otherwise the answer is implementation-define…
91 * @param key a value to find upper bound of. It may be not in arr, upper bound will present anyway
124 * The array has to be sorted before calling this function.
[all …]
/arkcompiler/ets_frontend/ts2panda/scripts/
DdiagnosticMessages.json10 "A rest parameter must be last in a parameter list.": {
42 "A 'declare' modifier cannot be used in an already ambient context.": {
46 "'{0}' modifier cannot be used in an ambient context.": {
50 "'{0}' modifier cannot be used here.": {
58 "A rest parameter cannot be optional.": {
74 "A '{0}' modifier cannot be used with an import declaration.": {
98 "A 'delete' cannot be called on an identifier in strict mode.": {
102 "A 'continue' statement can only be used within an enclosing iteration statement.": {
106 "A 'break' statement can only be used within an enclosing iteration or switch statement.": {
114 "A 'return' statement can only be used within a function body.": {
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_array.cpp55 // 1. Let numberOfArgs be the number of arguments passed to this function call. in ArrayConstructor()
58 …// 3. If NewTarget is undefined, let newTarget be the active function object, else let newTarget b… in ArrayConstructor()
65 // 4. Let proto be GetPrototypeFromConstructor(newTarget, "%ArrayPrototype%"). in ArrayConstructor()
77 // 6. Let array be ArrayCreate(0, proto). in ArrayConstructor()
82 // a. Let defineStatus be CreateDataProperty(array, "0", len). in ArrayConstructor()
84 // c. Let intLen be 1. in ArrayConstructor()
86 // a. Let intLen be ToUint32(len). in ArrayConstructor()
88 // 9. Let setStatus be Set(array, "length", intLen, true). in ArrayConstructor()
115 // 8. Let k be 0. in ArrayConstructor()
116 // 9. Let items be a zero-origined List containing the argument items in order. in ArrayConstructor()
[all …]
Dbuiltins_typedarray.cpp49 THROW_TYPE_ERROR_AND_RETURN(argv->GetThread(), "TypedArray Constructor cannot be called.", in TypedArrayBaseConstructor()
161 // 1. Let C be the this value. in From()
169 // 3. If mapfn is undefined, let mapping be false. in From()
172 // b. Let mapping be true. in From()
182 // 5. Let usingIterator be ? GetMethod(source, @@iterator). in From()
207 // a. Let values be ? IterableToList(source, usingIterator). in From()
208 // b. Let len be the number of elements in values. in From()
209 // c. Let targetObj be ? TypedArrayCreate(C, « len »). in From()
228 // d. Let k be 0. in From()
230 // i. Let Pk be ! ToString(k). in From()
[all …]
Dbuiltins_global.cpp85 // 1. Let num be ToNumber(number). in IsFinite()
104 // 1. Let num be ToNumber(number). in IsNaN()
166 // 1. Let uriString be ToString(encodedURI). in DecodeURI()
171 …// 3. Let reservedURISet be a String containing one instance of each code unit valid in uriReserve… in DecodeURI()
182 // 1. Let uriString be ToString(uri). in EncodeURI()
187 // 3. Let unescapedURISet be a String containing one instance of in EncodeURI()
199 // 1. Let componentString be ToString(encodedURIComponent). in DecodeURIComponent()
204 // 3. Let reservedURIComponentSet be the empty String. in DecodeURIComponent()
215 // 1. Let componentString be ToString(uriComponent). in EncodeURIComponent()
220 …// 3. Let unescapedURIComponentSet be a String containing one instance of each code unit valid in … in EncodeURIComponent()
[all …]
Dbuiltins_promise_handler.cpp42 ASSERT_PRINT(resolve->GetPromise().IsECMAObject(), "Resolve: promise must be js object"); in Resolve()
44 // 2. Let promise be the value of F's [[Promise]] internal slot. in Resolve()
45 // 3. Let alreadyResolved be the value of F's [[AlreadyResolved]] internal slot. in Resolve()
56 // a. Let selfResolutionError be a newly created TypeError object. in Resolve()
61 …tory->GetJSError(ErrorType::TYPE_ERROR, "Resolve: The promise and resolution cannot be the same."); in Resolve()
71 // 8. Let then be Get(resolution, "then"). in Resolve()
83 // 10. Let thenAction be then.[[value]]. in Resolve()
114 ASSERT_PRINT(reject->GetPromise().IsECMAObject(), "Reject: promise must be js object"); in Reject()
116 // 2. Let promise be the value of F's [[Promise]] internal slot. in Reject()
117 // 3. Let alreadyResolved be the value of F's [[AlreadyResolved]] internal slot. in Reject()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
DnotNull.ets38 assert typeOf(b) == 1: "b must be type Int";
39 assert b == 5 : "b must be 5";
43 assert c == 40: "c should be 40";
56 assert typeOf(b) == 1: "b must be type Int";
73 assert d instanceof Double : "d must be type Double"
74 assert d == 3.1415 : "d must be 3.1415"
78 assert "3.1415".equals(sd) : "s must be '3.1415'"
82 assert f instanceof Float : "f must be type Float"
83 assert f == Float.DELTA : "f must be Float.DELTA"
96 assert false : "this must not be executed";
[all …]
/arkcompiler/ets_frontend/ts2panda/tests/statements/
DvariableDeclaration.test.ts60 expect(checkInstructions(insns, expected)).to.be.true;
62 expect(v instanceof GlobalVariable).to.be.true;
76 expect(checkInstructions(insns, expected)).to.be.true;
78 expect(v instanceof LocalVariable).to.be.true;
92 expect(checkInstructions(insns, expected)).to.be.true;
94 expect(v instanceof LocalVariable).to.be.true;
110 expect(checkInstructions(insns, expected)).to.be.true;
112 expect(v instanceof GlobalVariable).to.be.true;
126 expect(checkInstructions(insns, expected)).to.be.true;
128 expect(v instanceof LocalVariable).to.be.true;
[all …]
DfunctionDeclaration.test.ts58 expect(checkInstructions(insns, expected)).to.be.true;
60 expect(foo != undefined).to.be.true;
61 expect(foo instanceof GlobalVariable).to.be.true;
78 expect(checkInstructions(insns, expected)).to.be.true;
80 expect(foo != undefined).to.be.true;
81 expect(foo instanceof GlobalVariable).to.be.true;
99 expect(checkInstructions(insns!, expected)).to.be.true;
101 expect(foo != undefined).to.be.true;
102 expect(foo instanceof LocalVariable).to.be.true;
104 expect(parameterLength === 0).to.be.true;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/
DStringBuilder.ets37 * @param fromChars array that will be used to initialize the builder
51 * @param s string that will be used to initialize the builder
75 * @param o object that will be converted to a string
87 * @param s string to be appended
96 * @param i value to be appended
105 * @param i value to be appended
114 * @param i value to be appended
123 * @param i value to be appended
132 * @param i value to be appended
141 * @param i value to be appended
[all …]
/arkcompiler/runtime_core/static_core/docs/
Ddoxygen.config3 # This file describes the settings to be used by the documentation system
9 # All text after a single hash (#) is considered a comment and will be ignored.
12 # For lists, items can also be appended using:
14 # Values that contain spaces should be placed between quotes (\" \").
37 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This
38 # could be handy for archiving the generated documentation or if some version
57 # into which the generated documentation will be written. If a relative path is
58 # entered, it will be relative to the location where doxygen was started. If
59 # left blank the current directory will be used.
66 # option can be useful when feeding doxygen a huge amount of source files, where
[all …]
/arkcompiler/runtime_core/docs/
Ddoxygen.config3 # This file describes the settings to be used by the documentation system
9 # All text after a single hash (#) is considered a comment and will be ignored.
12 # For lists, items can also be appended using:
14 # Values that contain spaces should be placed between quotes (\" \").
37 # The PROJECT_NUMBER tag can be used to enter a project or revision number. This
38 # could be handy for archiving the generated documentation or if some version
57 # into which the generated documentation will be written. If a relative path is
58 # entered, it will be relative to the location where doxygen was started. If
59 # left blank the current directory will be used.
66 # option can be useful when feeding doxygen a huge amount of source files, where
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dcheckcast.yaml48 Resolve object type by specified id and if an object in accumulator can be cast to the
58 description: Check that null object reference can be cast to any type
61 'null' object reference can be cast to every type.
100 description: Check that null object reference can be cast to any type
103 'null' object reference can be cast to every type.
150 description: Check that null object reference can be cast to any array type
153 'null' object reference can be cast to every type.
193 description: Check that null object reference can be cast to any array type
196 'null' object reference can be cast to every type.
243 description: Check that any object can be cast to the base type
[all …]
/arkcompiler/runtime_core/libpandabase/
DREADME.md25 Instead of `PandArg`, `PandArgCompound` can be used, which serves for creation of the compound argu…
30 To create an argument, it's template constructor should be called. Here is an instance:
48 - Argument description will be used to form a help message.
50 - Min value is the number that the integer argument cannot be less than
51 - Max value is the number that the integer argument cannot be greater than
53 Sub-arguments should not be added to the parser via `PandArgParser::Add`.
55 Template parameter is an argument type. Following values could be passed:
82 Tail arguments are positional arguments, which should be introduced with help of parser API
87 and can be any type of argument. Compound arguments implicitly have default value `false` and user …
89 To access compound arguments from `C++`, regular convention should be used, for accessing sub-argum…
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/
DREADME.md25 Instead of `PandArg`, `PandArgCompound` can be used, which serves for creation of the compound argu…
30 To create an argument, it's template constructor should be called. Here is an instance:
48 - Argument description will be used to form a help message.
50 - Min value is the number that the integer argument cannot be less than
51 - Max value is the number that the integer argument cannot be greater than
53 Sub-arguments should not be added to the parser via `PandArgParser::Add`.
55 Template parameter is an argument type. Following values could be passed:
82 Tail arguments are positional arguments, which should be introduced with help of parser API
87 and can be any type of argument. Compound arguments implicitly have default value `false` and user …
89 To access compound arguments from `C++`, regular convention should be used, for accessing sub-argum…
[all …]
/arkcompiler/ets_runtime/ecmascript/base/
Djson_helper.cpp53 // 1. Let product be code unit 0x0022 (QUOTATION MARK). in ValueToQuotedString()
60 … * i. Let product be the concatenation of product and code unit 0x005C (REVERSE SOLIDUS). in ValueToQuotedString()
61 * ii. Let product be the concatenation of product and C. in ValueToQuotedString()
72 … * i. Let product be the concatenation of product and code unit 0x005C (REVERSE SOLIDUS). in ValueToQuotedString()
73 * ii. Let abbrev be the String value corresponding to the value of C as follows: in ValueToQuotedString()
79 * iii. Let product be the concatenation of product and abbrev. in ValueToQuotedString()
104 … * i. Let product be the concatenation of product and code unit 0x005C (REVERSE SOLIDUS). in ValueToQuotedString()
105 * ii. Let product be the concatenation of product and "u". in ValueToQuotedString()
106 … * iii. Let hex be the string result of converting the numeric code unit value of C to a String of in ValueToQuotedString()
108 * iv. Let product be the concatenation of product and hex. in ValueToQuotedString()
[all …]
/arkcompiler/ets_frontend/ets2panda/test/compiler/ets/
Dunion_types_3.ets18 assert (x0 as int) * 2 == 4: "Error! Must be 4";
20 assert (x0 as int) * 3 == -6: "Error! Must be -6";
22 assert (x0 as boolean) == true: "Error! Must be true";
24 assert ((x0 as String) + "STR2").equals("STR1STR2"): "Error! Must be `STR1STR2`";
27 assert (x1 as String).equals("AAA"): "Error! Must be `AAA`";
30 assert (x2 as boolean) == true: "Error! Must be `true`";
32 assert (x3 as double) == 3.14: "Error! Must be `3.14`";
Dunion_types_1.ets37 assert xx.num_to_return() == 777: "Error! The num field of class `C` must be 777";
42 assert x.num == 777: "Error! The num field of union must be 777";
44 assert a == 780: "Error! Variable 'a' must be 780";
46 assert x.num == 1000: "Error! The num field of union must be 1000";
53 assert x.num == 1000: "Error! The num field of union must be 1000";
56 assert xx.num_to_return() == 1000: "Error! The num field of class `C` must be 1000";
62 assert x.num == 41: "Error! The num field of union must be 41";
64 assert x.num == 42: "Error! The num field of union must be 42";
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dcheckcast.yaml27 Resolve object type by specified id and if an object in accumulator can be cast to the
36 description: Check that null object reference can be cast to any type
39 'null' object reference can be cast to every type.
76 description: Check that null object reference can be cast to any array type
79 'null' object reference can be cast to every type.
117 description: Check that any object can be cast to the base type
119 … description: Object of type O can be cast to type T if O is the same as T or is subtype of T.
159 description: Check that any object can be cast to its type
161 … description: Object of type O can be cast to type T if O is the same as T or is subtype of T.
201 description: Check that any array can be cast to base type
[all …]
/arkcompiler/runtime_core/compiler/docs/
Daot_resolve_string.md4 mode such runtime calls could be replaced with load from a special PLT-slot in AOT file. In that ca…
11 During AOT compilation `LoadString` instruction could be either encoded as regular `ResolveString` …
13 To use the latter encoding the following conditions have to be met:
15 - compiled method should not be a static class initializer (initializers get invoked only once and …
17 - `--compiler-aot-load-string-plt` option should be turned on (it is on by default).
26 There are two options controlling when and how many string will be saved into PLT-slots:
27 …-roots-limit` controls how many time the same string should be resolved before its pointer will be
29 - `--resolve-string-aot-threshold` controls how many strings could be save to PLT-slots (option app…
47 String pointers stored inside PLT-slots have to be treated as GC-roots to prevent its scavenge in c…
/arkcompiler/runtime_core/static_core/compiler/docs/
Daot_resolve_string.md4 mode such runtime calls could be replaced with load from a special PLT-slot in AOT file. In that ca…
11 During AOT compilation `LoadString` instruction could be either encoded as regular `ResolveString` …
13 To use the latter encoding the following conditions have to be met:
15 - compiled method should not be a static class initializer (initializers get invoked only once and …
17 - `--compiler-aot-load-string-plt` option should be turned on (it is on by default).
26 There are two options controlling when and how many string will be saved into PLT-slots:
27 …-roots-limit` controls how many time the same string should be resolved before its pointer will be
29 - `--resolve-string-aot-threshold` controls how many strings could be save to PLT-slots (option app…
47 String pointers stored inside PLT-slots have to be treated as GC-roots to prevent its scavenge in c…

12345678910>>...107