Home
last modified time | relevance | path

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

12345678910>>...130

/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/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/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/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/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/stdlib/std/interop/js/
DJSRuntime.sts62 public static newJSValueObject(value: Object): JSValue {
82 public static getValueObject(value: JSValue, t: Class): Object {
89 public static getPropertyBoolean(object: JSValue, name: String): boolean {
93 public static getPropertyByte(object: JSValue, name: String): byte {
94 return JSRuntime.getPropertyInt(object, name) as byte;
97 public static getPropertyChar(object: JSValue, name: String): char {
98 return JSRuntime.getPropertyInt(object, name) as char;
101 public static getPropertyShort(object: JSValue, name: String): short {
102 return JSRuntime.getPropertyInt(object, name) as short;
105 public static getPropertyInt(object: JSValue, name: String): int {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/07.widening_reference_conversion/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/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/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/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/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_runtime/ecmascript/mem/
Dobject_xray.h143 static inline void VisitObjectBody(TaggedObject *object, JSHClass *klass, 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.h39 #define CHECK_OBJ_AND_THROW_OOM_ERROR(object, size, space, message) … argument
40 …if (UNLIKELY((object) == nullptr)) { …
49 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size)); …
52 #define CHECK_SOBJ_AND_THROW_OOM_ERROR(thread, object, size, space, message) … argument
53 …if (UNLIKELY((object) == nullptr)) { …
58 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(thread, size)); …
61 #define CHECK_MACHINE_CODE_OBJ_AND_SET_OOM_ERROR_FORT(object, size, space, desc, message) … argument
62 …if (UNLIKELY((object) == nullptr)) { …
67 …(object) = reinterpret_cast<TaggedObject *>((space)->Allocate(size, desc)); …
70 #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 = (value: Object) => {};
154 let p = new Promise<Object>((resolve: (value: Object) => void): void => {
[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/linter/test/main/
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/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/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 …]
/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/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/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/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>>...130