Home
last modified time | relevance | path

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

12345678910>>...150

/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_test_suite/coroutines/
Dlaunch_return.ets18 async function byteFunc(): Promise<Object> {
19 return -3 as byte as Object;
22 async function charFunc(): Promise<Object> {
23 return c'x' as Object;
26 async function shortFunc(): Promise<Object> {
27 return 32767 as short as Object;
30 async function intFunc(): Promise<Object> {
31 return 5 as Object;
34 async function longFunc(): Promise<Object> {
35 return 777 as long as Object;
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/08.subtype_to_supertype_conversions/
Dsubtype_to_supertype.params.yaml136 - "let b: CC1<Object,Object>|C2<Object> = new A<Object,Object>()"
137 - "let b: CC1<Object,Object>|CC2<Object,Object> = new B<Object,Object>()"
138 - "let b: C1<Object>|CC2<Object,Object> = new A<Object,Object>()"
139 - "let b: C1<Object>|C2<Object> = new B<Object,Object>()"
150 - "let b: CC1<Object,Object>|C2<Object> = new A<Object,Object>()"
151 - "let b: CC1<Object,Object>|CC2<Object,Object> = new B<Object,Object>()"
152 - "let b: C1<Object>|CC2<Object,Object> = new A<Object,Object>()"
153 - "let b: C1<Object>|C2<Object> = new B<Object,Object>()"
164 - "let b: CC1<Object,Object>|C2<Object> = new A<Object,Object>()"
165 - "let b: CC1<Object,Object>|CC2<Object,Object> = new B<Object,Object>()"
[all …]
/arkcompiler/toolchain/tooling/dynamic/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/panda_guard/util/
Djson_util.h29 * Obtain the content of a JSON object with a field type of object
30 * @param object json object
31 * @param field field name in json object
33 …static panda::JsonObject *GetJsonObject(const panda::JsonObject *object, const std::string_view &f…
36 * Obtain the content of a JSON object with a field type of string
37 * @param object json object
38 * @param field field name in json object
40 * if there is no information about the field in the JSON object, an error will be reported
42 … static std::string GetStringValue(const panda::JsonObject *object, const std::string_view &field,
46 * Obtain the content of a JSON object with a field type of double
[all …]
/arkcompiler/ets_runtime/test/moduletest/forof_set/
Dexpect_output.txt17 [object Object]
24 [object Map]
25 [object Set]
31 [object Object]
38 [object Map]
39 [object Set]
45 [object Object],[object Object]
52 [object Map],[object Map]
53 [object Set],[object Set]
62 [object Object]
[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/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()
31 return !bitmap->AtomicTestAndSet(object); in MarkIfNotMarked()
33 bool result = !bitmap->Test(object); in MarkIfNotMarked()
34 bitmap->Set(object); in MarkIfNotMarked()
39 ALWAYS_INLINE static bool IsMarked(const ObjectHeader *object) in IsMarked() argument
41 MarkBitmap *bitmap = ObjectToRegion(object)->GetMarkBitmap(); in IsMarked()
44 return bitmap->AtomicTest(object); in IsMarked()
46 return bitmap->Test(object); in IsMarked()
50 ALWAYS_INLINE static void Mark(ObjectHeader *object) in Mark() argument
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/ets/
Dlaunch.ets20 public static foobar(): Object {
21 return new Object();
24 public static baz(): Object {
25 return new Object();
29 function bar(x: int, y: float): Object {
30 return new Object();
33 function foo(x: int): Object {
34 launch<Object, (i:int,f:float)=>Object>(bar,x, 30);
35 return new Object();
39 let p: Job<Object>;
[all …]
/arkcompiler/ets_frontend/ets2panda/test/parser/js/
Dtest-object-expression-expected.txt17 "program": "test-object-expression.js"
22 "program": "test-object-expression.js"
42 "program": "test-object-expression.js"
47 "program": "test-object-expression.js"
59 "program": "test-object-expression.js"
64 "program": "test-object-expression.js"
73 "program": "test-object-expression.js"
78 "program": "test-object-expression.js"
95 "program": "test-object-expression.js"
100 "program": "test-object-expression.js"
[all …]
/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dobject-alias.ets17 let a: object = new object();
18 let b: object = new Object();
19 let c: Object = new object();
20 let d: Object = new Object();
22 assertTrue(a instanceof Object)
23 assertTrue(a instanceof object)
24 assertTrue(b instanceof Object)
25 assertTrue(b instanceof object)
26 assertTrue(c instanceof Object)
27 assertTrue(c instanceof object)
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/05.widening_reference_conversions/comp_obj/
Dcomp-clss.params.yaml20 - { to_type: Object, init_value: new Object(), expr: new Byte() }
27 - { to_type: Object, init_value: new Object(), expr: new Short() }
34 - { to_type: Object, init_value: new Object(), expr: new Int() }
41 - { to_type: Object, init_value: new Object(), expr: new Long() }
48 - { to_type: Object, init_value: new Object(), expr: new Float(+0.0 as float) }
55 - { to_type: Object, init_value: new Object(), expr: new Double(+0.0 as float) }
60 - { to_type: Object, init_value: new Object(), expr: "new Char(c'\\u0000')" }
65 - { to_type: Object, init_value: new Object(), expr: new Boolean(false) }
66 - { to_type: Object, init_value: new Object(), expr: new Boolean(true) }
71 - { to_type: Object, init_value: new Object(), expr: new String("Hello!") }
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/promise/
Dpromise_tests.ets96 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
112 let obj = new Object();
113 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
117 p.then<Object | null>((value: Object): Object | null => {
125 p.catch<Object | null>((err: NullishType): Object | null => {
136 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
139 p.then<Object | null>((value: Object): Object | null => {
143 p.catch<Object | null>((err: Error): Object => {
157 public fn: (value: Object) => void = (value: Object) => {};
164 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
[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_runtime/ecmascript/mem/
Dobject_xray.h161 static inline void VisitObjectBody(TaggedObject *object, JSHClass *klass, in VisitObjectBody() argument
181 JSObject::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
184 auto jsSharedObject = JSSharedObject::Cast(object); in VisitObjectBody()
189 JSAsyncFromSyncIterator::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
192 JSGlobalObject::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
195 auto jsFunctionBase = JSFunctionBase::Cast(object); in VisitObjectBody()
200 auto jsFunction = JSFunction::Cast(object); in VisitObjectBody()
205 auto jsSharedFunction = JSSharedFunction::Cast(object); in VisitObjectBody()
210 auto jsGeneratorFunction = JSGeneratorFunction::Cast(object); in VisitObjectBody()
215 auto jsGeneratorFunction = JSAsyncGeneratorFunction::Cast(object); in VisitObjectBody()
[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_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_frontend/ets2panda/linter/test/main/
Dlimited_stdlib_api.ets50 /// 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/runtime_core/static_core/plugins/ets/stdlib/std/interop/js/
DJSRuntime.ets22 class MimicJSValueIteratableIterator implements IterableIterator<Object> {
30 … throw new Error('Can not retrieve [Symbol.iterator] from given object, object is not iterable.');
34 override next(): IteratorResult<Object> {
37 return new IteratorResult<Object>();
43 const valueObject = JSRuntime.getValueObject(iterValue, Class.of(new Object()));
45 // NOTE(#IC68BA) Need to create special iterable iterator object at function level
47 …return new IteratorResult<Object>(new Tuple2<Object, Object>(valueObject[0] as Object,valueObject[…
49 return new IteratorResult<Object>(valueObject);
94 public static newJSValueObject(value: Object): JSValue {
98 public static isJSValue(value: Object): boolean {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates_deprecated/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/plugins/ets/tests/ani/tests/object_ops/
Dcall_object_method_void_test.cpp44 ani_object object {}; in TEST_F() local
46 …GetMethodAndObject("Lcall_object_method_void_test/A;", "voidMethod", "II:V", &object, &voidMethod); in TEST_F()
56 ASSERT_EQ(env_->Object_CallMethod_Void_A(object, voidMethod, args), ANI_OK); in TEST_F()
57 ASSERT_EQ(env_->Object_CallMethod_Int(object, getMethod, &sum), ANI_OK); in TEST_F()
63 ani_object object {}; in TEST_F() local
65 …GetMethodAndObject("Lcall_object_method_void_test/A;", "voidMethod", "II:V", &object, &voidMethod); in TEST_F()
72 ASSERT_EQ(env_->Object_CallMethod_Void(object, voidMethod, a, b), ANI_OK); in TEST_F()
73 ASSERT_EQ(env_->Object_CallMethod_Int(object, getMethod, &sum), ANI_OK); in TEST_F()
79 ani_object object {}; in TEST_F() local
81 …GetMethodAndObject("Lcall_object_method_void_test/A;", "voidMethod", "II:V", &object, &voidMethod); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets_func_tests/std/core/
DObject.ets19 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/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/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 …]

12345678910>>...150