Home
last modified time | relevance | path

Searched full:object (Results 1 – 25 of 3090) sorted by relevance

12345678910>>...124

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/coroutines/
Dlaunch_return.sts18 function byteFunc(): Object {
19 return -3 as byte as Object;
22 function charFunc(): Object {
23 return c'x' as Object;
26 function shortFunc(): Object {
27 return 32767 as short as Object;
30 function intFunc(): Object {
31 return 5 as Object;
34 function longFunc(): Object {
35 return 777 as long as Object;
[all …]
/arkcompiler/ets_runtime/test/moduletest/object/
Dobject.js17 * @tc.name:object
18 * @tc.desc:test object
35 var obj01 = Object.create(prototypeObj);
38 Object.getPrototypeOf(obj01);
42 Object.getPrototypeOf(obj02);
52 Object.defineProperty(obj2, '23', {
56 Object.defineProperty(obj2, 'abc', {
87 let obj7 = Object.create(
106 Object.defineProperty(obj12, '23', {
110 Object.defineProperty(obj12, 'abc', {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/15.semantic_rules/07.overloading_and_overriding/02.override-compatible_signatures/
Doverride_with_object.params.yaml23 override foo(i: Object): void {
35 override foo(i: Object): void {
38 call: new Derived().foo(new Object());
44 foo(i: Object): void {
56 foo(): Object {
58 return new Object();
76 override foo(): Object {
78 return new Object();
86 foo( i: (j: Object) => Base ): void {
87 i(new Object());
[all …]
/arkcompiler/toolchain/tooling/test/testcases/
Djs_variable_second_test.h133 if (value->GetType() == RemoteObject::TypeName::Object) { in SendNotification()
204 * if is object value, will push back key and value.
210 … * { "obj0", { "object", "Object", "Object", "[object Object]", "key", "string", "2", "2" } }
217 …{ "boolean0", { "object", "Object", "Boolean{[[PrimitiveValue]]: false}", "false", "[[PrimitiveVal…
220 { "obj0", { "object", "Object", "Object", "[object Object]",
223 …{ "arraybuffer0", { "object", "arraybuffer", "Arraybuffer", "Arraybuffer(24)", "[object ArrayBuffe…
224 "[[Int8Array]]", "object", "Object", "Int8Array(24)",
225 … "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", "[[Uint8Array]]", "object",
226 … "Object", "Uint8Array(24)", "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0",
227 "[[Uint8ClampedArray]]", "object", "Object", "Uint8ClampedArray",
[all …]
Djs_variable_first_test.h133 if (value->GetType() == RemoteObject::TypeName::Object) { in SendNotification()
204 * if is object value, will push back key and value.
210 … * { "obj0", { "object", "Object", "Object", "[object Object]", "key", "string", "2", "2" } }
217 …{ "boolean0", { "object", "Object", "Boolean{[[PrimitiveValue]]: false}", "false", "[[PrimitiveVal…
220 { "obj0", { "object", "Object", "Object", "[object Object]",
223 …{ "arraybuffer0", { "object", "arraybuffer", "Arraybuffer", "Arraybuffer(24)", "[object ArrayBuffe…
224 "[[Int8Array]]", "object", "Object", "Int8Array(24)",
225 … "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0", "[[Uint8Array]]", "object",
226 … "Object", "Uint8Array(24)", "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0",
227 "[[Uint8ClampedArray]]", "object", "Object", "Uint8ClampedArray",
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/stdlib/std/interop/js/
DJSRuntime.sts65 public static newJSValueObject(value: Object): JSValue {
89 public static getValueObject(value: JSValue, t: Object): Object {
97 public static getPropertyBoolean(object: JSValue, name: String): boolean {
99 return JSRuntime.getPropertyBoolean(object, name) as boolean;
102 public static getPropertyByte(object: JSValue, name: String): byte {
103 return JSRuntime.getPropertyInt(object, name) as byte;
106 public static getPropertyChar(object: JSValue, name: String): char {
107 return JSRuntime.getPropertyInt(object, name) as char;
110 public static getPropertyShort(object: JSValue, name: String): short {
111 return JSRuntime.getPropertyInt(object, name) as short;
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/
Dgc_marker.h53 …void MarkInstance(GCMarkingStackType *objectsStack, const ObjectHeader *object, const BaseClass *c…
56 …void MarkInstance(GCMarkingStackType *objectsStack, const ObjectHeader *object, const BaseClass *c…
65 …* Iterate over all fields with references of object and add all not null object references to the …
67 * @param object
68 …* @param base_cls - class of object(used for perf in case if class for the object already was obta…
70 … void HandleObject(GCMarkingStackType *objectsStack, const ObjectHeader *object, const Class *cls);
73 * Iterate over class data and add all found not null object references to the objects_stack
80 * For arrays of objects add all not null object references to the objects_stack
82 * @param array_object - array object
83 * @param cls - class of array object(used for perf)
[all …]
/arkcompiler/ets_frontend/test262/
Dignored-test262-fastverify-x64-aot-pgo-litecg.txt25 test262/data/test_es2021/language/expressions/object/method.js
157 test262/data/test_es2021/built-ins/Object/create/15.2.3.5-4-101.js
158 test262/data/test_es2021/built-ins/Object/create/15.2.3.5-4-102.js
159 test262/data/test_es2021/built-ins/Object/create/15.2.3.5-4-103.js
160 test262/data/test_es2021/built-ins/Object/create/15.2.3.5-4-104.js
161 test262/data/test_es2021/built-ins/Object/create/15.2.3.5-4-105.js
162 test262/data/test_es2021/built-ins/Object/create/15.2.3.5-4-106.js
163 test262/data/test_es2021/built-ins/Object/create/15.2.3.5-4-107.js
164 test262/data/test_es2021/built-ins/Object/create/15.2.3.5-4-108.js
165 test262/data/test_es2021/built-ins/Object/create/15.2.3.5-4-109.js
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h144 …static inline void VisitObjectBody(TaggedObject *object, JSHClass *klass, const EcmaObjectRangeVis… in VisitObjectBody() argument
162 JSObject::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
165 auto jsSharedObject = JSSharedObject::Cast(object); in VisitObjectBody()
170 JSAsyncFromSyncIterator::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
173 JSGlobalObject::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
176 auto jsFunctionBase = JSFunctionBase::Cast(object); in VisitObjectBody()
181 auto jsFunction = JSFunction::Cast(object); in VisitObjectBody()
186 auto jsSharedFunction = JSSharedFunction::Cast(object); in VisitObjectBody()
191 auto jsGeneratorFunction = JSGeneratorFunction::Cast(object); in VisitObjectBody()
196 auto jsGeneratorFunction = JSAsyncGeneratorFunction::Cast(object); in VisitObjectBody()
[all …]
Dheap-inl.h36 #define CHECK_OBJ_AND_THROW_OOM_ERROR(object, size, space, message) … argument
37 …if (UNLIKELY((object) == nullptr)) { …
46 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); …
49 #define CHECK_SOBJ_AND_THROW_OOM_ERROR(thread, object, size, space, message) … argument
50 …if (UNLIKELY((object) == nullptr)) { …
55 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(thread, size)); …
58 #define CHECK_MACHINE_CODE_OBJ_AND_SET_OOM_ERROR_FORT(object, size, space, desc, message) … argument
59 …if (UNLIKELY((object) == nullptr)) { …
64 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size, desc)); …
67 #define CHECK_MACHINE_CODE_OBJ_AND_SET_OOM_ERROR(object, size, space, message) … argument
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/promise/
Dpromise_tests.sts86 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
102 let obj = new Object();
103 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
107 p.then<Object | null>((value: Object): Object | null => {
115 p.catch<Object | null>((err: NullishType): Object | null => {
126 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
129 p.then<Object | null>((value: Object): Object | null => {
133 p.catch<Object | null>((err: NullishType): Object => {
147 public fn: (value: Object) => void;
154 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
[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.yaml18 function foo(p: number): Object throws {
22 return new Object()
25 static fld: Object|null|undefined = foo(4.0) // CTE expected
33 function foo(p: number): Object {
37 return new Object()
40 static fld: Object|null|undefined = foo(4.0)
48 static fld: Object|null|undefined = ((p: number): Object throws => {
52 return new Object()
62 static fld: Object|null|undefined = ((p: number): Object => {
66 return new Object()
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/gc/g1/
Dg1-marker.h26 ALWAYS_INLINE bool MarkIfNotMarked(ObjectHeader *object) const in MarkIfNotMarked() argument
28 MarkBitmap *bitmap = ObjectToRegion(object)->GetMarkBitmap(); in MarkIfNotMarked()
30 return !bitmap->AtomicTestAndSet(object); in MarkIfNotMarked()
33 ALWAYS_INLINE static bool IsMarked(const ObjectHeader *object) in IsMarked() argument
35 MarkBitmap *bitmap = ObjectToRegion(object)->GetMarkBitmap(); in IsMarked()
37 return bitmap->AtomicTest(object); in IsMarked()
40 ALWAYS_INLINE static void Mark(ObjectHeader *object) in Mark() argument
42 MarkBitmap *bitmap = ObjectToRegion(object)->GetMarkBitmap(); in Mark()
44 bitmap->AtomicTestAndSet(object); in Mark()
56 ALWAYS_INLINE bool MarkIfNotMarked(ObjectHeader *object) const in MarkIfNotMarked() argument
[all …]
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dlimited_stdlib_api.sts50 /// Object
51 /// Object . __proto__ ()
52 /// Object . __defineGetter__ ()
53 /// Object . __defineSetter__ ()
54 /// Object . __lookupGetter__ ()
55 /// Object . __lookupSetter__ ()
56 Object.assign<C, C>(c, c);
57 Object.create(c);
58 Object.defineProperties<C>(c, {});
59 Object.defineProperty<C>(c, 'p', c);
[all …]
/arkcompiler/ets_runtime/test/moduletest/objectkeys/
Dobjectkeys.js18 * @tc.desc:test object keys
24 Object.defineProperty(a, 'x', {
28 let k = Object.keys(a);
31 k = Object.keys(a);
37 let k = Object.keys(a);
50 print(Object.keys(obj));
57 print(Object.keys(obj));
58 print(Object.keys(obj[0]));
59 print(Object.keys(obj[1000000]));
74 print(Object.keys(o));
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dobject-alias.sts17 let a: object = new object();
18 let b: object = new Object();
19 let c: Object = new object();
20 let d: Object = new Object();
22 assert a instanceof Object;
23 assert a instanceof object;
24 assert b instanceof Object;
25 assert b instanceof object;
26 assert c instanceof Object;
27 assert c instanceof object;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/01.assignment-like_contexts/
Dref_widening.params.yaml16 - { stype: 'Object[]', src: 'new Object[1]', dtype: Object }
17 - { stype: 'Object[][]', src: 'new Object[1][1]', dtype: Object }
18 - { stype: 'Object[][]', src: 'new Object[1][1]', dtype: 'Object[]' }
20 - { stype: '() => void', src: '() => { return; }', dtype: Object }
21 - { stype: '(() => void)[]', src: '[]', dtype: Object }
23 - { stype: 'Byte', src: 'new Byte()', dtype: Object }
24 - { stype: 'Short', src: 'new Short()', dtype: Object }
25 - { stype: 'Char', src: 'new Char()', dtype: Object }
26 - { stype: 'Int', src: 'new Int()', dtype: Object }
27 - { stype: 'Long', src: 'new Long()', dtype: Object }
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_object.h24 // List of functions in Object, excluding the '@@' properties.
26 // where BuiltinsObject::func refers to the native implementation of Object[name].
30 … /* Object.assign ( target, ...sources ) */ \
32 … /* Object.create ( O, Properties ) */ \
34 … /* Object.defineProperties ( O, Properties ) */ \
36 … /* Object.defineProperty ( O, P, Attributes ) */ \
38 … /* Object.entries ( O ) */ \
40 … /* Object.freeze ( O ) */ \
42 … /* Object.fromEntries ( iterable ) */ \
44 … /* Object.getOwnPropertyDescriptor ( O, P ) */ \
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Disinstance.yaml20 .record panda.Object <external>
38 .record panda.Object <external>
51 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
53Object of type O is instance of type T if O is the same as T or is subtype of T. For arrays T shou…
62 description: Check that null object reference is not an instance of any class
65 'null' object is not an instance of any class.
77 - values: ['panda.Object']
82 description: Check that null object reference is not an instance of any class
85 'null' object is not an instance of any class.
98 - values: ['panda.Object']
[all …]
/arkcompiler/ets_runtime/test/aottest/object/object_toString/
Dexpect_output.txt15 [object Object]
16 [object Object]
17 [object Number]
18 [object String]
20 [object Date]
21 [object String]
22 [object Math]
23 [object Null]
24 [object Undefined]
25 [object Date]
[all …]
/arkcompiler/ets_runtime/test/aottest/builtin_inlining/object/Object/
DbuiltinObjectObject.ts17 //aot: [trace] aot inline builtin: Object.is, caller function name:func_main_0@builtinObjectObject
18 print(Object.is(1, 1)); //: true
19 //aot: [trace] aot inline builtin: Object.is, caller function name:func_main_0@builtinObjectObject
20 print(Object.is(1, 2)); //: false
21 //aot: [trace] aot inline builtin: Object.is, caller function name:func_main_0@builtinObjectObject
22 print(Object.is(1, "abc")); //: false
23 //aot: [trace] aot inline builtin: Object.is, caller function name:func_main_0@builtinObjectObject
24 print(Object.is(1, {})); //: false
25 //aot: [trace] aot inline builtin: Object.getPrototypeOf, caller function name:func_main_0@builtinO…
26 print(Object.getPrototypeOf({})) //: [object Object]
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Disinstance.yaml19 .record panda.Object <external>
29 …Resolve object type by specified id and if an object in accumulator is an instance of the resolved…
31Object of type O is instance of type T if O is the same as T or is subtype of T. For arrays T shou…
39 description: Check that null object reference is not an instance of any class
42 'null' object is not an instance of any class.
53 - values: ['panda.Object']
57 description: Check that compiler fails when type_id cannot be resolved to object type
77 newobj v0, panda.Object
82 newobj v0, panda.Object
87 newobj v0, panda.Object
[all …]
/arkcompiler/ets_runtime/test/moduletest/array/
Dexpect_output.txt171 [object Object]
185 [object Object],[object Object]
189 [object Map],[object Map]
190 [object Set],[object Set]
199 [object Object],[object Object]
203 [object Map],[object Map]
204 [object Set],[object Set]
230 [object Object],[object Object]
238 Concatenated Array: 1,two,true,,,[object Object]
239 Nested Concatenated Array: 1,two,true,1,2,a,b,true,false,,,[object Object]
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DObject.sts19 failures += test(objectKeys(), "Object.keys");
21 failures += test(objectValues(), "Object.values");
23 failures += test(objectEntries(), "Object.entries");
25 failures += test(objectGetOwnPropertyNames(), "Object.getOwnPropertyNames");
27 failures += test(objectHasOwnProperty(), "Object.hasOwnProperty");
29 failures += test(objectHasOwn(), "Object.hasOwn");
31 failures += test(objectFromEntries(), "Object.fromEntries");
33 failures += test(objectAssign(), "Object.assign");
35 failures += test(objectToString(), "Object.toString");
37 failures += test(objectToLocaleString(), "Object.toLocaleString");
[all …]
/arkcompiler/ets_runtime/test/moduletest/ecmastringtable/
Dexpect_output.txt29 id: no-schema:/src/xxx-js/instantiated-1af0bf5b.js - load: [object Object]
30 id: no-schema:/src/xxx-js/instantiation.js - load: [object Object]
31 id: no-schema:/src/xxx-js/cc.js - load: [object Object]
32 id: no-schema:/src/instantiated-1af0bf5b.js - load: [object Object]
39 id: 12022421 - load: [object Object]
40 id: 123420002 - load: [object Object]
41 id: 908890 - load: [object Object]
42 id: 9088000 - load: [object Object]
43 id: 999999999 - load: [object Object]
44 id: 1000000000 - load: [object Object]

12345678910>>...124