Home
last modified time | relevance | path

Searched +full:non +full:- +full:object (Results 1 – 25 of 446) sorted by relevance

12345678910>>...18

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Darray-object.sts2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
19 let object_array: Object[] = arr1 as Object[];
20 let object: Object = arr1 as Object;
22 // TypeError: Cannot access property of non-object or non-enum type
27 object.toString();
29 // TypeError: Cannot access property of non-object or non-enum type
34 object.$_hashCode();
38 assert(arr1 == object);
41 // Cannot cast type 'int[]' to 'Object[]'
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/ts_import_ets/ts/
Dtest7.ts.json3 "Copyright (c) 2023-2024 Huawei Device Co., Ltd.",
8 "http://www.apache.org/licenses/LICENSE-2.0",
24 … \"Sendable\" interfaces are allowed for importing from ets into ts file (arkts-no-ts-import-ets)",
34 … \"Sendable\" interfaces are allowed for importing from ets into ts file (arkts-no-ts-import-ets)",
44 …"rule": "Casting \"Non-sendable\" data to \"Sendable\" type is not allowed (arkts-sendable-as-expr…
54 …of \"Sendable\" type can not be initialized using object literal or array literal (arkts-sendable-
64 …"rule": "Casting \"Non-sendable\" data to \"Sendable\" type is not allowed (arkts-sendable-as-expr…
74 …of \"Sendable\" type can not be initialized using object literal or array literal (arkts-sendable-
84 …"rule": "Casting \"Non-sendable\" data to \"Sendable\" type is not allowed (arkts-sendable-as-expr…
94 …of \"Sendable\" type can not be initialized using object literal or array literal (arkts-sendable-
[all …]
/arkcompiler/ets_runtime/test/sharedtest/sendable/
Dexpect_output.txt6 # http://www.apache.org/licenses/LICENSE-2.0
15 sendable inherit from non-sendable failed. err: TypeError: Class not derived from a sendable object
16 sendable change proto failed. err: TypeError: Cannot set proto with sendable object, code: undefined
17 non-sendable inherit from non-sendable succeed.
18 non-sendable inherit from sendable failed. err: TypeError: The subclass of sendable class must be a…
20 sendable contain non-sendable failed. err: TypeError: Cannot set sendable property with mismatched …
21 sendable contain static non-sendable failed. err: TypeError: Cannot set sendable property with mism…
Dsendable.ts7 * http://www.apache.org/licenses/LICENSE-2.0
45 print('sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code);
66 // 2. non-sendable can not inherit from sendable
76 print('non-sendable inherit from non-sendable succeed.');
78 print('non-sendable inherit from non-sendable failed. err: ' + err + ', code: ' + err.code);
91 print('non-sendable inherit from sendable succeed.');
93 print('non-sendable inherit from sendable failed. err: ' + err + ', code: ' + err.code);
96 // 3. non-sendable can not implement sendable
129 print('sendable contain non-sendable succeed.');
131 print('sendable contain non-sendable failed. err: ' + err + ', code: ' + err.code);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/gc/
Drun_gc_every_safepoint.sts2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
17 let obj_array = new Object[4];
19 obj_array[i] = new Object();
20 …assert GC.getObjectAddress(obj_array[i]) > 0: "getObjectAddress for regular object must return val…
23 …assert GC.getObjectAddress(obj_array[i]) > 0: "getObjectAddress for regular object must return val…
28 let obj = new Object();
29 … assert GC.getObjectAddress(obj) > 0: "getObjectAddress for regular object must return value > 0";
30 …assert GC.getObjectAddress("non-movable string") > 0: "getObjectAddress for non-movable must retur…
Dget_object_address_test.sts2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
17 let obj = new Object();
18 … assert GC.getObjectAddress(obj) > 0: "getObjectAddress for regular object must return value > 0";
19 …assert GC.getObjectAddress("non-movable string") > 0: "getObjectAddress for non-movable must retur…
/arkcompiler/runtime_core/tests/cts-assembly/
Dobj-18.pa1 # Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
14 # Compare a non-null object against another non-null object of the same type
/arkcompiler/runtime_core/static_core/tests/cts-assembly/
Dobj-18.pa1 # Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 # http://www.apache.org/licenses/LICENSE-2.0
14 # Compare a non-null object against another non-null object of the same type
/arkcompiler/ets_runtime/test/sharedtest/sharedcollectionsexception/
Dexpect_output.txt6 # http://www.apache.org/licenses/LICENSE-2.0
61 Init with small first element: -1 success.
64 Create with non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable val…
66 Create from non-sendable iterator fail. err: BusinessError: Parameter error.Only accept sendable va…
67 Create from non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable val…
68 Create from mapper: non-sendable element fail. err: BusinessError: Parameter error.Only accept send…
72 concat with non-sendable array fail.err: BusinessError: Parameter error.Only accept sendable value.…
73 concat with non-sendable element fail. err: BusinessError: Parameter error.Only accept sendable val…
75 fill array with non-sendable object and position fail. err: BusinessError: Parameter error.Only acc…
76 fill array with non-sendable object and start position fail. err: BusinessError: Parameter error.On…
[all …]
Dsharedcollectionsexception.ts7 * http://www.apache.org/licenses/LICENSE-2.0
23 // @ts-nocheck
416 const arr = new SendableArray<string>(-1);
417 print("Init with small first element: -1 success.");
419 print("Init with small first element: -1, err: " + err + ", errCode: " + err.code);
438 print("Create with non-sendable element success.");
440 print("Create with non-sendable element fail. err: " + err + ", errCode: " + err.code);
448 print("Create from non-sendable iterator success.");
450 print("Create from non-sendable iterator fail. err: " + err + ", errCode: " + err.code);
455 print("Create from non-sendable element success.");
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/main/
Dsendable_as_expr.sts7 * http://www.apache.org/licenses/LICENSE-2.0
23 let v1 = new NonSendableClass4() as SendableClass6; // ERROR, non-sendable data can not be cast to …
27 let v2 = tmp1 as SendableClass6; // ERROR, non-sendable data can not be cast to "Sendable" data
29 function foo(a: object) {
33 function foo(a: Object) {
38 a as SendableClass6; // OK, no arkts-sendable-as-expr error
Dtype_literals.sts7 * http://www.apache.org/licenses/LICENSE-2.0
115 export function captureFromLocalScope<T>(t: T): {ret: T} { // Non-fixable, type captures type param…
116 let v1: {local: T}; // Non-fixable, type captures type parameter from enclosing declaration
119 …let v2: { x: LocalType } = {x: {a: 1, b: '2'}}; // Non-fixable, type captures another type declare…
121 …type LocalType2<K> = ({k: K}); // Non-fixable, type captures type parameter from enclosing declara…
124 let v3: {[one]: 1}; // Non-fixable, type captures another object declared in local scope
127 …let v4: { y: LocalClass } = {y: new LocalClass()}; // Non-fixable, type captures another type decl…
129 …let v5: { lc: typeof LocalClass }; // Non-fixable, type captures another type declared in local sc…
131 let v6: { lc: typeof v1 }; // Non-fixable, type captures another object declared in local scope
Dobject_literals_autofixes.sts7 * http://www.apache.org/licenses/LICENSE-2.0
45 // Properties with various types. Nested object literals
66 // Object literals inside another expression
75 // Object literals inside class declaration
89 // Object literals as function parameter initializer
93 // Object literals inside function declaration
117 … property 'c' is initialized with non-fixable nested object literal, and thus will always have uns…
136 …let v4 = { x: localTypeVar }; // Non-fixable, `x` references type `LocalType` declared in local sc…
139 …let v5 = { y: new LocalClass() }; // Non-fixable, `y` references type `LocalClass` declared in loc…
141 …let v6 = { z: LocalClass }; // Non-fixable, `z` references type `LocalClass` declared in local sco…
[all …]
/arkcompiler/runtime_core/libpandabase/mem/
Dspace.h2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
28 SPACE_TYPE_OBJECT, // Space for objects (all non-humongous sizes)
30 SPACE_TYPE_NON_MOVABLE_OBJECT, // Space for non-movable objects
55 return "ark-Undefined Space"; in SpaceTypeToString()
57 return "ark-Object Space"; in SpaceTypeToString()
59 return "ark-Humongous Object Space"; in SpaceTypeToString()
61 return "ark-Non Movable Space"; in SpaceTypeToString()
63 return "ark-Internal Space"; in SpaceTypeToString()
65 return "ark-Code Space"; in SpaceTypeToString()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/17.experimental_features/15.exceptions/05.exceptions_and_errors_inside_field_initializers/
Dfld_obj.params.yaml6 # http://www.apache.org/licenses/LICENSE-2.0
14 ---
17 - decl: |-
18 function foo(p: number): Object throws {
22 return new Object()
25 static fld: Object|null|undefined = foo(4.0) // CTE expected
27 use: |-
29 tags: 'compile-only, negative'
32 - decl: |-
33 function foo(p: number): Object {
[all …]
/arkcompiler/ets_frontend/ets2panda/test/ast/compiler/ets/
Doverride18.sts2 * Copyright (c) 2023-2024 Huawei Device Co., Ltd.
7 * http: //www.apache.org/licenses/LICENSE-2.0
33 /* @@? 17:13 Error TypeError: Cannot override non-private method of the class Object from an interf…
35 /* @@? 20:15 Error TypeError: Cannot override non-private method of the class Object from an interf…
/arkcompiler/runtime_core/static_core/libpandabase/mem/
Dspace.h2 * Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
26 SPACE_TYPE_OBJECT, // Space for objects (all non-humongous sizes)
28 SPACE_TYPE_NON_MOVABLE_OBJECT, // Space for non-movable objects
56 // CC-OFFNXT(G.FUD.06) switch-case, ODR
61 return "ark-Undefined Space"; in SpaceTypeToString()
63 return "ark-Object Space"; in SpaceTypeToString()
65 return "ark-Humongous Object Space"; in SpaceTypeToString()
67 return "ark-Non Movable Space"; in SpaceTypeToString()
69 return "ark-Internal Space"; in SpaceTypeToString()
[all …]
/arkcompiler/runtime_core/docs/
Dmemory-management-SW-requirements.md20 - Bump pointer allocator
21 - Arena Allocator (objects can be deallocated at once(list of arenas, almost at once - O(number of …
22 - Freelist allocator
23 - TLAB
24 - Run of slots allocator
25 - Code allocator
29 - Code space (executable)
30 - Compiler Internal Space(linked list of arenas)
31 - Internal memory space for non-compiler part of runtime (including GC internals)
32 - Object space
[all …]
/arkcompiler/runtime_core/static_core/docs/
Dmemory-management-SW-requirements.md20 - Bump pointer allocator
21 - Arena Allocator (objects can be deallocated at once(list of arenas, almost at once - O(number of …
22 - Freelist allocator
23 - TLAB
24 - Run of slots allocator
25 - Code allocator
29 - Code space (executable)
30 - Compiler Internal Space(linked list of arenas)
31 - Internal memory space for non-compiler part of runtime (including GC internals)
32 - Object space
[all …]
/arkcompiler/runtime_core/static_core/docs/diagrams/
Dgc-mark-activity.plantuml1 ' Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 ' http://www.apache.org/licenses/LICENSE-2.0
22 :Get an object from the stack;
23 if (object is in collected space) then(Yes)
24 if (The object is a Reference object in the same generation space with reference) then(Yes)
25 if (the referent object is marked) then(Yes)
27 :Put the object into the corresponding queue;
31 :Mark all fields in object;
37 mark object == mark object and add all non-primitive fields to the Mark Stack
38 …mark all fields in object == mark all directly referenced objects and add their un-marked fields t…
/arkcompiler/runtime_core/docs/diagrams/
Dgc-mark.puactivity1 ' Copyright (c) 2021-2022 Huawei Device Co., Ltd.
6 ' http://www.apache.org/licenses/LICENSE-2.0
22 :Get an object from the stack;
23 if (object is in collected space) then(Yes)
24 if (The object is a Reference object in the same generation space with reference) then(Yes)
25 if (the referent object is marked) then(Yes)
27 :Put the object into the corresponding queue;
31 :Mark all fields in object;
37 mark object == mark object and add all non-primitive fields to the Mark Stack
38 …mark all fields in object == mark all directly referenced objects and add their un-marked fields t…
/arkcompiler/runtime_core/static_core/tests/test-lists/test262/
Dtest262-ignored-AOT-ASAN.txt1 built-ins/DataView/prototype/getFloat32/return-value-clean-arraybuffer.js
2 built-ins/DataView/prototype/getFloat32/return-values-custom-offset.js
3 built-ins/DataView/prototype/getFloat32/return-values.js
4 built-ins/DataView/prototype/getFloat32/toindex-byteoffset.js
5 built-ins/DataView/prototype/getFloat64/return-value-clean-arraybuffer.js
6 built-ins/DataView/prototype/getFloat64/return-values-custom-offset.js
7 built-ins/DataView/prototype/getFloat64/return-values.js
8 built-ins/DataView/prototype/getFloat64/toindex-byteoffset.js
9 built-ins/DataView/prototype/setFloat32/toindex-byteoffset.js
10 built-ins/DataView/prototype/setFloat64/index-is-out-of-range.js
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D9_classes.rst2 Copyright (c) 2021-2024 Huawei Device Co., Ltd.
6 http://www.apache.org/licenses/LICENSE-2.0
24 Classes can be *top-level* and local (see :ref:`Local Classes and Interfaces`).
36 - Fields,
37 - Methods, and
38 - Accessors.
61 - ``Public``,
62 - ``Protected``,
63 - ``Internal``, or
64 - ``Private``.
[all …]
/arkcompiler/ets_frontend/test262/
Dother_tests_part1_1.txt1 test262/data/test/language/expressions/generators/named-yield-spread-obj.js
2 test262/data/test/language/expressions/generators/params-trailing-comma-single.js
3 test262/data/test/language/expressions/generators/params-trailing-comma-multiple.js
4 test262/data/test/language/expressions/generators/rest-param-strict-body.js
5 test262/data/test/language/expressions/generators/rest-params-trailing-comma-early-error.js
6 test262/data/test/language/expressions/generators/scope-name-var-close.js
7 test262/data/test/language/expressions/generators/scope-name-var-open-strict.js
8 test262/data/test/language/expressions/generators/scope-paramsbody-var-close.js
9 test262/data/test/language/expressions/generators/scope-paramsbody-var-open.js
10 test262/data/test/language/expressions/generators/static-init-await-binding.js
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/09.classes/05.field_declarations/03.field_initialization/
Dfield_initialization_with_super.sts1 /*---
2 Copyright (c) 2021-2024 Huawei Device Co., Ltd.
7 http://www.apache.org/licenses/LICENSE-2.0
14 ---*/
16 /*---
17 desc: Non-static field initialization with keyword 'super'.
18 …alizer in a non-static field declaration, then the following rules apply to the initializer. The i…
19 ---*/

12345678910>>...18