| /arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/ |
| D | 18_annotations.rst | 8 distributed under the License is distributed on an "AS IS" BASIS, 18 An *annotation* is a special language element that changes the semantics of 21 The example below illustrates the declaring and using of an annotation: 38 An annotation must be placed immediately before the declaration it is applied to. 39 An annotation can include arguments as in the example above. 41 For an annotation to be used, the name of the annotation must be prefixed with 52 at the place of usage. An annotation declaration can be exported and used in 71 The declaration of a *annotation* is similar to that of an interface where the 86 As any other declared entity, an annotation can be exported by using the 91 The default value of an *annotation field* can be specified by using [all …]
|
| D | 10_interfaces.rst | 8 distributed under the License is distributed on an "AS IS" BASIS, 21 An interface declaration declares an *interface type*, i.e., a reference 42 Creating an instance of interface type is not possible. 46 An interface can be declared a *direct extension* of one or more other 70 The value of a variable declared as an interface type can be a reference 102 An *interface declaration* specifies a new named reference type: 123 The *identifier* in an interface declaration specifies the interface name. 125 An interface declaration with ``typeParameters`` introduces a new generic 128 The scope of an interface declaration is defined in :ref:`Scopes`. 150 An interface declared with an ``extends`` clause extends all other named [all …]
|
| D | 1_intro.rst | 8 distributed under the License is distributed on an "AS IS" BASIS, 92 an entity can represent a very high-level (abstract) concept. Providing more 97 ‘idea’ of an abstract data structure. This abstract notion can be turned 117 |LANG| provides an efficient application development solution for a wide 127 |LANG| is designed as a part of the modern language manifold. To provide an 220 - Is comprised of an abstract symbol (*nonterminal*) as its left-hand side, 253 - Question mark '``?``' to specify an optional (zero- or one-time) occurrence 274 The production below is an example that specifies a list of expressions: 308 -- a formula for calculating values. An expression has the syntactic 319 (2) a syntactic construct that denotes an elementary calculation within [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/core/ |
| D | Errors.sts | 10 * distributed under the License is distributed on an "AS IS" BASIS, 19 * @class Represents an error that occurs when assertion fails. 37 * @class Represents an error that occurs when division by zero is performed. 46 * @class Represents an error that occurs when null pointer is dereferenced. 55 * @class Represents an error that occurs when exception is thrown and not catched 64 * @class Represents an error that occurs when trying to interpret syntactically invalid code 81 * @class Represents an error that occurs when JSONValue can not be assigned to a type 90 * @class Represents an error that occurs when provided collection index is out of range 107 * @class Represents an error that occurs when array is oging to be indexed out of its bounds 125 * @class Represents an error that occurs when memory allocation fails [all …]
|
| D | Numeric.sts | 10 * distributed under the License is distributed on an "AS IS" BASIS, 24 * Returns the value of an object as a byte 31 * Returns the value of an object as an int 38 * Returns the value of an object as a short 45 * Returns the value of an object as a long 52 * Returns the value of an object as a float 59 * Returns the value of an object as a double
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/annotations/ |
| D | annotations.rst | 8 distributed under the License is distributed on an "AS IS" BASIS, 16 An *annotation* is a special language element that changes the semantics of 19 The example below illustrates the declaring and using of an annotation: 36 An annotation must be placed immediately before the declaration it is applied to. 39 For an annotation to be used, its name must be prefixed with the symbol ``@`` 50 name is not accessible at the place of usage. An annotation declaration can be 72 The definition of a *user-defined annotation* is similar to that of an 90 As any other declarated entity, an annotation can be exported, using ``export`` keyword. 94 The default value of an *annotation field* can be specified 98 An *user-defined annotation* must be defined at top-level, [all …]
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/tools/ |
| D | paoc.py | 12 # distributed under the License is distributed on an "AS IS" BASIS, 50 aot_stats = '--compiler-dump-stats-csv={an}.dump.csv ' 58 '--paoc-output={an}' 79 lib.with_suffix('.an'), 85 an = abc.with_suffix('.an') 86 res = self.run_paoc(abc, an, opts=opts) 90 an_size = self.x_sh.get_filesize(an) 93 bu.result.aot_stats = self.get_aot_stats(an, bu.path) 94 bu.binaries.append(an) 98 an: Union[str, Path], [all …]
|
| D | ark.py | 12 # distributed under the License is distributed on an "AS IS" BASIS, 47 stdlib = str(ToolBase.libs / 'etsstdlib.an') \ 49 else str(self.dev_dir / 'etsstdlib.an') 60 an_files.append('{an}') 62 opts += '--enable-an:force --aot-files=' + \ 79 an_files = [str(f) for f in self.x_libs(bu, '.an')] + \ 80 [str(abc.with_suffix('.an'))] 81 an = ':'.join(an_files) if an_files else '' 87 abc=abc, options=options, gclog=gclog, an=an)
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/regression/ |
| D | bigint_from_double.sts | 10 * distributed under the License is distributed on an "AS IS" BASIS, 52 negativeTest("1.234e2", "not an integer"); 53 negativeTest("1e-7", "not an integer"); 54 negativeTest("0.0035", "not an integer"); 55 negativeTest("0.00023e4", "not an integer"); 56 negativeTest("+1e-1", "not an integer"); 57 negativeTest("-35.42", "not an integer"); 58 negativeTest("-3700e-3", "not an integer"); 59 negativeTest("-0.039", "not an integer"); 60 negativeTest("-0.0485e+3", "not an integer");
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/07.expressions/01.evaluation_of_expressions/03.operator_precedence/ |
| D | null_coalescing.sts | 10 * distributed under the License is distributed on an "AS IS" BASIS, 28 let an: A|null = null; 32 let res: boolean = ((an ?? a) instanceof I ? bn ?? b : an ?? a) === b 35 res = ((a ?? an) instanceof B ? an ?? a : bn ?? b) === b 42 let y: Object = an ?? b
|
| /arkcompiler/ets_frontend/ets2panda/test/parser/ets/ |
| D | assignNullableToNonNullableTypeAlias.sts | 10 * distributed under the License is distributed on an "AS IS" BASIS, 18 type AN = A | null; 22 let an : AN = new A(); 24 x = an;
|
| /arkcompiler/runtime_core/static_core/plugins/ets/doc/tutorial/ |
| D | functions.rst | 10 distributed under the License is distributed on an "AS IS" BASIS, 26 Below is an example of a simple function with two string parameters and string 37 the corresponding argument of an optional parameter can be omitted. The last 45 An optional parameter has the form '``name?: Type``': 57 Another form contains an expression that specifies a default value. If the 75 functions or methods can take an unlimited number of arguments: 124 If the name of a variable defined in the function is equal to the name of an 173 A function can be defined as an arrow function, for example: 181 If an arrow function return type is omitted, then it is inferred 184 An expression can be specified as an arrow function to make the notation [all …]
|
| D | interfaces.rst | 8 distributed under the License is distributed on an "AS IS" BASIS, 18 An interface declaration introduces a new type. Interfaces are a common way 24 An interface usually contains properties and method headers: 36 The examples below illustrate a class that implements an interface: 64 An interface property can be in a form of a field, a getter, a setter, or both. 80 A class that implements an interface can also use a short or a long notation: 111 An interface can extend other interfaces as in the example below: 123 An extended interface contains all properties and methods of the
|
| /arkcompiler/ets_frontend/ets2panda/linter/test_extended_features/ |
| D | @arkts.collections.d.ets | 10 * distributed under the License is distributed on an "AS IS" BASIS, 130 * Represents an array-like object that can be concatenated. 148 …* Adds all the elements of an ArkTS ConcatArray into a string, separated by the specified separato… 160 * Returns a copy of a section of an ArkTS ConcatArray. 200 * Creates an ArkTS Array with arrayLength elements initialized to initialValue. 214 * Creates an ArkTS Array from an array-like object. 216 * @param { ArrayLike<T> } arrayLike - An array-like object to convert to an ArkTS Array. 228 * A constructor used to create an ArkTS Array. 238 * A constructor used to create an ArkTS Array. 240 * @param { T } first - First element when initializing an ArkTS Array. [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/stdlib/escompat/ |
| D | Errors.sts | 10 * distributed under the License is distributed on an "AS IS" BASIS, 19 * @class Represents an error that occurs when global eval() function fails 36 …* @class Represents an error that occurs when an operation could not be performed, typically (but … 53 …* @class Represents an error that occurs when a variable that doesn't exist (or hasn't yet been in… 70 …* @class Represents an error that occurs when a global URI handling function was used in a wrong w… 87 * The AggregateError object represents an error when several errors 97 * @param errors An iterable of errors, may not actually be Error 100 * @param s An human-readable description of the aggregate error. 103 * error. When catching and re-throwing an error with a
|
| D | TypedUArrays.sts | 10 * distributed under the License is distributed on an "AS IS" BASIS, 101 * Creates an empty Uint8ClampedArray. 108 * Creates an Uint8ClampedArray with respect to data accessed via Iterable<Number> interface 124 * Creates an Uint8ClampedArray with respect to data, byteOffset and length. 175 * Creates an Uint8ClampedArray with respect to data, byteOffset and length. 186 * Creates an Uint8ClampedArray with respect to data, byteOffset and length. 199 * Creates an Uint8ClampedArray with respect to buf and byteOffset. 210 * Creates an Uint8ClampedArray with respect to data, byteOffset and length. 223 * Creates an Uint8ClampedArray with respect to buf and byteOffset. 234 * Creates an Uint8ClampedArray with respect to buf. [all …]
|
| D | TypedArrays.sts | 10 * distributed under the License is distributed on an "AS IS" BASIS, 91 * Creates an empty Int8Array. 98 * Creates an Int8Array with respect to data accessed via Iterable<Number> interface 114 * Creates an Int8Array with respect to data, byteOffset and length. 165 * Creates an Int8Array with respect to data, byteOffset and length. 178 * Creates an Int8Array with respect to data, byteOffset and length. 191 * Creates an Int8Array with respect to data, byteOffset and length. 204 * Creates an Int8Array with respect to data, byteOffset and length. 217 * Creates an Int8Array with respect to buf and byteOffset. 228 * Creates an Int8Array with respect to buf. [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | nullableType.sts | 10 * distributed under the License is distributed on an "AS IS" BASIS, 86 let an : A | null; 87 an = null; 88 an = new A(); 89 an = new A_alias(); 90 an = new NullableA_alias(); 91 an = new B(); 92 on = an; 100 na = an; 107 an = bn; [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/array/ |
| D | expect_output.txt | 9 # distributed under the License is distributed on an "AS IS" BASIS, 194 Exception usage, but does not throw an error 195 Caught an error: RangeError: Invalid array length 207 Caught an error: TypeError: the mapfn is not callable. 208 Caught an error: Error: Something went wrong 209 Exception usage, but does not throw an error 276 Caught an error: TypeError: the callbackfun is not callable. 277 Caught an error: ReferenceError: undefinedVariable is not defined 293 Caught an error: TypeError: the callbackfun is not callable. 294 Caught an error: TypeError: is not callable [all …]
|
| /arkcompiler/runtime_core/static_core/compiler/docs/ |
| D | escape_analysis.md | 4 …ect's scope. Currently there is only one such an optimization - **Scalar replacement** which elimi… 12 …cape a method this algorithm also capable of finding execution paths where an object is not escapi… 14 …an object is escaping a method the algorithm initially marks all the allocations as virtual and it… 15 At the end of the analysis each object allocation has a state describing if an allocation could be … 17 Escape analysis assigns a state to each basic block (BasicBlockState) that binds an object state to… 18 …ions can share the same state (it can happen, for example, when an instruction is just an alias to… 33 * alias mapping - a map from an instruction in the original method to an in instruction that should… 94 if inst is an allocation: 102 record inst as an alias to a field from input's vstate
|
| /arkcompiler/runtime_core/static_core/tests/checked/ |
| D | force_an.pa | 9 # distributed under the License is distributed on an "AS IS" BASIS, 14 #! CHECKER Enable an 16 #! RUN options: "--enable-an", entry: "_GLOBAL::main" 19 #! CHECKER Enable an force 21 #! RUN options: "--enable-an:force", entry: "_GLOBAL::main", abort: 6
|
| /arkcompiler/runtime_core/libpandabase/ |
| D | README.md | 23 pandargs API consists of two major entities: template class `PandArg`, which represents an argument… 30 To create an argument, it's template constructor should be called. Here is an instance: 55 Template parameter is an argument type. Following values could be passed: 64 `arg_list_t` is a type, declared in `pandargs.h` under `panda` namespace, which is an alias for `st… 67 - `PandArgType GetType()` - returns type of an argument 68 - `std::string GetName()` - returns name of an argument 69 - `std::string GetDesc()` - returns description of an argument 70 - `T GetValue()` - returns value of an argument depending on it's type 71 - `T GetDefaultValue()` - returns default value of an argument 72 - `void SetValue(T val)` - set value of an argument [all …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/ |
| D | README.md | 23 pandargs API consists of two major entities: template class `PandArg`, which represents an argument… 30 To create an argument, it's template constructor should be called. Here is an instance: 55 Template parameter is an argument type. Following values could be passed: 64 `arg_list_t` is a type, declared in `pandargs.h` under `panda` namespace, which is an alias for `st… 67 - `PandArgType GetType()` - returns type of an argument 68 - `std::string GetName()` - returns name of an argument 69 - `std::string GetDesc()` - returns description of an argument 70 - `T GetValue()` - returns value of an argument depending on it's type 71 - `T GetDefaultValue()` - returns default value of an argument 72 - `void SetValue(T val)` - set value of an argument [all …]
|
| /arkcompiler/runtime_core/static_core/tests/vm-benchmarks/src/vmb/plugins/platforms/ |
| D | arkts_host.py | 12 # distributed under the License is distributed on an "AS IS" BASIS, 44 an = ToolBase.libs.joinpath( 45 Path(self.ark.etsstdlib).with_suffix('.an').name) 48 res = self.paoc.run_paoc(self.ark.etsstdlib, an, timeout=1800) 51 self.ext_info['etsstdlib']['etsstdlib.an'] = \ 53 size=self.x_sh.get_filesize(an), 55 an, self.paoc.libs))
|
| D | arkts_device.py | 12 # distributed under the License is distributed on an "AS IS" BASIS, 43 an = Path(self.ark.etsstdlib).with_suffix('.an') 46 res = self.paoc.run_paoc(self.ark.etsstdlib, an, timeout=1800) 49 self.ext_info['etsstdlib']['etsstdlib.an'] = \ 51 size=self.x_sh.get_filesize(an), 53 an, self.paoc.libs))
|