Home
last modified time | relevance | path

Searched full:obj (Results 1 – 25 of 2050) sorted by relevance

12345678910>>...82

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dgetter_setter.sts38 let obj: A = new A();
40 let h = obj.field;
42 let z = obj.field + obj.field;
44 let u = obj.field + 10;
46 let i = 10 + obj.field;
49 obj.field = 10;
50 let k = obj.field;
53 obj.field = obj.field;
54 k = obj.field;
57 obj.field = obj.field + obj.field;
[all …]
DMutatorAccessor.sts41 let obj: A = new A();
43 let get_field = obj.field;
46 get_field = obj.field + obj.field;
49 get_field = obj.field + 10;
52 get_field = 10 + obj.field;
55 obj.field = 10;
56 get_field = obj.field;
59 obj.field = obj.field;
60 get_field = obj.field;
63 obj.field = obj.field + obj.field;
[all …]
/arkcompiler/runtime_core/static_core/pandastdlib/
Dpandastdlib.pa155 lda.obj a1
156 stobj.obj a0, panda.StackOverflowException.message
157 lda.obj a2
158 stobj.obj a0, panda.StackOverflowException.cause
163 ldobj.obj a0, panda.StackOverflowException.message
164 return.obj
168 ldobj.obj a0, panda.StackOverflowException.cause
169 return.obj
173 lda.obj a1
174 stobj.obj a0, panda.NullPointerException.message
[all …]
/arkcompiler/runtime_core/pandastdlib/
Dpandastdlib.pa149 lda.obj a1
150 stobj.obj a0, panda.StackOverflowException.message
151 lda.obj a2
152 stobj.obj a0, panda.StackOverflowException.cause
157 lda.obj a1
158 stobj.obj a0, panda.NullPointerException.message
159 lda.obj a2
160 stobj.obj a0, panda.NullPointerException.cause
165 ldobj.obj a0, panda.NullPointerException.message
166 return.obj
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
Dstd_core_Value.cpp36 void ValueAPISetFieldObject(EtsObject *obj, EtsLong i, EtsObject *val) in ValueAPISetFieldObject() argument
40 VMHandle<EtsObject> objHandle(coroutine, obj->GetCoreType()); in ValueAPISetFieldObject()
49 void SetFieldValue(EtsObject *obj, EtsLong i, T val) in SetFieldValue() argument
53 VMHandle<EtsObject> objHandle(coroutine, obj->GetCoreType()); in SetFieldValue()
64 void ValueAPISetFieldBoolean(EtsObject *obj, EtsLong i, EtsBoolean val) in ValueAPISetFieldBoolean() argument
66 SetFieldValue(obj, i, val); in ValueAPISetFieldBoolean()
69 void ValueAPISetFieldByte(EtsObject *obj, EtsLong i, EtsByte val) in ValueAPISetFieldByte() argument
71 SetFieldValue(obj, i, val); in ValueAPISetFieldByte()
74 void ValueAPISetFieldShort(EtsObject *obj, EtsLong i, EtsShort val) in ValueAPISetFieldShort() argument
76 SetFieldValue(obj, i, val); in ValueAPISetFieldShort()
[all …]
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dmov.obj.yaml17 - file-name: "mov.obj"
27 - sig: mov.obj v1:out:ref, v2:in:ref
36 lda.obj v0
37 mov.obj v1, v0
38 jne.obj v1, return_ne_num
45 …description: Check mov.obj with different type of arguments (empty object, with fields, with stati…
106 # Check mov.obj for string
108 sta.obj v0
109 mov.obj v1, v0
110 jne.obj v1, return_ne_num
[all …]
Dldobj.v.obj.yaml93 - file-name: "ldobj.v.obj"
99 - sig: ldobj.v.obj v1:out:ref, v2:in:ref, field_id
108 - sig: ldobj.v.obj v1:out:ref, v2:in:ref, field_id
123 - 'ldobj.v.obj v1, v0, R.fQ'
125 - 'ldobj.v.obj v1, v1, R.fR'
127 - 'ldobj.v.obj v1, v15, R.fQArray'
143 return.obj
148 sta.obj v0
150 ldobj.v.obj v1, v0, %s
181 return.obj
[all …]
Dlda.obj.yaml17 - file-name: lda.obj
27 - sig: lda.obj v:in:ref
35 # Check lda.obj for different type of arguments (empty object, with fields, statics, etc).
37 lda.obj v0
38 jne.obj v0, return_ne_num
45 …description: Check lda.obj moves register content into accumulator (references to various type of …
104 # Check lda.obj for string
106 sta.obj v0
107 lda.obj v0
108 jne.obj v0, return_ne_num
[all …]
Dnewobj.yaml208 lda.obj v1
211 lda.obj v1
250 lda.obj v1
253 lda.obj v1
293 lda.obj v0
294 jne.obj v1, ok
355 lda.obj v0
356 jne.obj v1, ok
551 ldobj.obj v1, Z.fR
552 jeqz.obj label_Ra
[all …]
Dldobj.obj.yaml93 - file-name: "ldobj.obj"
99 - sig: ldobj.obj v:in:ref, field_id
108 - sig: ldobj.obj v:in:ref, field_id
121 - 'ldobj.obj v0, R.fQ'
123 - 'ldobj.obj v1, R.fR'
125 - 'ldobj.obj v15, R.fQArray'
127 - 'ldobj.obj v240, R.fi32Array'
129 - 'ldobj.obj v255, R.fObj'
144 return.obj
149 sta.obj v0
[all …]
Dsta.obj.yaml16 - file-name: "sta.obj"
24 …description: Check sta.obj with different type of arguments (empty object, with fields, statics, s…
27 - sig: sta.obj v:out:ref
37 lda.obj v0
38 sta.obj v1
39 jne.obj v1, return_ne_num
106 # Check sta.obj for string
108 sta.obj v0
109 jne.obj v0, return_ne_num
119 # Check sta.obj for type
[all …]
Dcall.virt.range.yaml209 sta.obj v0
245 mov.obj v0, a0
249 mov.obj v0, a0
253 mov.obj v0, a0
257 mov.obj v0, a0
263 mov.obj v1, a0
272 mov.obj v1, a0
281 mov.obj v1, a0
309 lda.obj a3
310 stobj.obj a0, R.f3
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-assembly/
Dobj-13.pa16 #struct Obj {
18 # Obj* next;
21 #void addNext(Obj* o, int data) {
22 # Obj* newObj = new Obj();
30 # Obj* head = new Obj();
33 # Obj* cur;
52 .record Obj {
54 Obj next
57 .function void addNext(Obj a0, i32 a1) {
58 newobj v0, Obj
[all …]
/arkcompiler/runtime_core/tests/cts-assembly/
Dobj-13.pa16 #struct Obj {
18 # Obj* next;
21 #void addNext(Obj* o, int data) {
22 # Obj* newObj = new Obj();
30 # Obj* head = new Obj();
33 # Obj* cur;
52 .record Obj {
54 Obj next
57 .function void addNext(Obj a0, i32 a1) {
58 newobj v0, Obj
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dmov.obj.yaml16 - file-name: "mov.obj"
26 - sig: mov.obj v1:out:ref, v2:in:ref
35 lda.obj v0
36 mov.obj v1, v0
37 jne.obj v1, return_ne_num
44 …description: Check mov.obj with different type of arguments (empty object, with fields, with stati…
104 # Check mov.obj for string
106 sta.obj v0
107 mov.obj v1, v0
108 jne.obj v1, return_ne_num
[all …]
Dlda.obj.yaml16 - file-name: lda.obj
26 - sig: lda.obj v:in:ref
34 # Check lda.obj for different type of arguments (empty object, with fields, statics, etc).
36 lda.obj v0
37 jne.obj v0, return_ne_num
44 …description: Check lda.obj moves register content into accumulator (references to various type of …
103 # Check lda.obj for string
105 sta.obj v0
106 lda.obj v0
107 jne.obj v0, return_ne_num
[all …]
Dsta.obj.yaml16 - file-name: "sta.obj"
24 …description: Check sta.obj with different type of arguments (empty object, with fields, statics, s…
27 - sig: sta.obj v:out:ref
37 lda.obj v0
38 sta.obj v1
39 jne.obj v1, return_ne_num
106 # Check sta.obj for string
108 sta.obj v0
109 jne.obj v0, return_ne_num
119 # Check sta.obj for type
[all …]
Dnewobj.yaml169 lda.obj v1
172 lda.obj v1
211 lda.obj v0
212 jne.obj v1, ok
394 ldobj.obj v1, Z.fR
395 jeqz.obj label_Ra
400 ldobj.obj v1, Z.fRa
401 jeqz.obj label_Raa
406 ldobj.obj v1, Z.fRaa
407 jeqz.obj label_O
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/lookup_by_name/
Dcorrect_case_ref_2.pa37 stobj.obj v0, std.core.NoSuchFieldError.message
38 lda.obj v0
39 return.obj
43 ldobj.v.obj v0, a0, C.foo
44 ldobj.obj a1, std.core.Exception.message
45 stobj.obj v0, std.core.NoSuchFieldError.message
53 ets.ldobj.name.obj a0, baz
54 sta.obj v0
55 ldobj.v.obj v1, v0, std.core.NoSuchFieldError.message
57 sta.obj v2
[all …]
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_lazy_callback.h55 static JSTaggedValue Date(JSThread *thread, const JSHandle<JSObject> &obj);
56 static JSTaggedValue Set(JSThread *thread, const JSHandle<JSObject> &obj);
57 static JSTaggedValue Map(JSThread *thread, const JSHandle<JSObject> &obj);
58 static JSTaggedValue WeakMap(JSThread *thread, const JSHandle<JSObject> &obj);
59 static JSTaggedValue WeakSet(JSThread *thread, const JSHandle<JSObject> &obj);
60 static JSTaggedValue WeakRef(JSThread *thread, const JSHandle<JSObject> &obj);
61 static JSTaggedValue FinalizationRegistry(JSThread *thread, const JSHandle<JSObject> &obj);
62 static JSTaggedValue TypedArray(JSThread *thread, const JSHandle<JSObject> &obj);
63 static JSTaggedValue Int8Array(JSThread *thread, const JSHandle<JSObject> &obj);
64 static JSTaggedValue Uint8Array(JSThread *thread, const JSHandle<JSObject> &obj);
[all …]
/arkcompiler/runtime_core/static_core/libpandabase/tests/
Djson_parser_test.cpp31 JsonObject obj(str); local
32 ASSERT_TRUE(obj.IsValid());
34 ASSERT_NE(obj.GetValue<JsonObject::StringT>("key_0"), nullptr);
35 ASSERT_EQ(*obj.GetValue<JsonObject::StringT>("key_0"), "key_0.value");
37 ASSERT_NE(obj.GetValue<JsonObject::StringT>("key_1"), nullptr);
38 ASSERT_EQ(*obj.GetValue<JsonObject::StringT>("key_1"), "\"key_1\"\\. value\n");
56 JsonObject obj(str); in TEST() local
57 ASSERT_TRUE(obj.IsValid()); in TEST()
59 ASSERT_NE(obj.GetValue<JsonObject::ArrayT>("key_0"), nullptr); in TEST()
60 auto &mainArray = *obj.GetValue<JsonObject::ArrayT>("key_0"); in TEST()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/optional_reference_type/
Doptional_reference_type.ts46 export function fnWithSubsetPick(obj: UserPick): string {
47 return obj.address ? obj.address.city : 'Adress not found';
50 export function fnWithSubsetOmit(obj: UserOmit): string {
51 return obj.address ? obj.address.city : 'Adress not found';
54 export function fnWithSubsetPartial(obj: UserPartial): string {
55 return obj.address ? obj.address.city : 'Adress not found';
60 export function fnWithUnionParam(obj?: UnionArrOrObj): string {
61 if (obj) {
62 if (Array.isArray(obj)) {
64 } else if (typeof obj === 'object') {
[all …]
Doptional_reference_type.js39 function fnWithSubsetPick(obj) { argument
40 return obj.address ? obj.address.city : 'Address not found';
45 function fnWithSubsetOmit(obj) { argument
46 return obj.address ? obj.address.city : 'Address not found';
51 function fnWithSubsetPartial(obj) { argument
52 return obj.address ? obj.address.city : 'Address not found';
57 function fnWithUnionParam(obj) { argument
58 if (obj) {
59 if (Array.isArray(obj)) {
79 function fnWithUserClass(obj) { argument
[all …]
/arkcompiler/runtime_core/libpandabase/tests/
Djson_parser_test.cpp31 JsonObject obj(str);
32 ASSERT_TRUE(obj.IsValid());
34 ASSERT_NE(obj.GetValue<JsonObject::StringT>("key_0"), nullptr);
35 ASSERT_EQ(*obj.GetValue<JsonObject::StringT>("key_0"), "key_0.value");
37 ASSERT_NE(obj.GetValue<JsonObject::StringT>("key_1"), nullptr);
38 ASSERT_EQ(*obj.GetValue<JsonObject::StringT>("key_1"), "\"key_1\"\\. value\n");
40 ASSERT_EQ(obj.GetValue<JsonObject::StringT>("key_2"), nullptr);
57 JsonObject obj(str);
58 ASSERT_TRUE(obj.IsValid());
60 ASSERT_NE(obj.GetValue<JsonObject::ArrayT>("key_0"), nullptr);
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/
Dcalling_methods_test_6.cpp40 ets_object obj = env_->AllocObject(dCls); in TEST_F() local
41 ASSERT_NE(obj, nullptr); in TEST_F()
48 …env_->CallNonvirtualVoidMethod(obj, cCls, voidId, static_cast<ets_int>(1), static_cast<ets_int>(12… in TEST_F()
51 EXPECT_EQ(env_->GetIntField(obj, dMemberId), static_cast<ets_int>(0)); in TEST_F()
55 ets_object aObj = env_->CallNonvirtualObjectMethod(obj, cCls, objectId); in TEST_F()
58 EXPECT_EQ(env_->GetIntField(obj, dMemberId), static_cast<ets_int>(0)); in TEST_F()
65 env_->CallNonvirtualVoidMethodArray(obj, cCls, voidId, voidArgs.data()); in TEST_F()
66 EXPECT_EQ(env_->GetIntField(obj, dMemberId), static_cast<ets_int>(0)); in TEST_F()
68 …ets_object aObjFromArrayFunc = env_->CallNonvirtualObjectMethodArray(obj, cCls, objectId, nullptr); in TEST_F()
71 EXPECT_EQ(env_->GetIntField(obj, dMemberId), static_cast<ets_int>(0)); in TEST_F()
[all …]

12345678910>>...82