| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/extension_accessor/ |
| D | extensionAccessorInOpAssignment.ets | 38 let obj: A = new A(); 39 assertEQ(obj.field, 30) 40 obj.field = 29; 41 assertEQ(obj.field, 29) 42 obj.field = 15 + 15; 44 let z = obj.field + obj.field; 46 z = obj.field + obj.field + obj.field; 48 let u = obj.field + 10; 50 let i = 10 + obj.field; 52 u = 10 + obj.field + obj.field + 10; [all …]
|
| /arkcompiler/ets_runtime/test/ut/ |
| D | ignore-ut-release-qemu-ets_runtime.txt | 4 obj/arkcompiler/ets_runtime/test/aottest/builtin_inlining/math/Ceil/builtinMathCeilContext 7 obj/arkcompiler/ets_runtime/test/aottest/builtin_inlining/set/Delete/builtinSetDelete 10 obj/arkcompiler/ets_runtime/test/moduletest/hugearray/hugearryAsmAssertContext 13 obj/arkcompiler/ets_runtime/ecmascript/tests/GC_NewToOldPromotion_Test 16 obj/arkcompiler/ets_runtime/test/aottest/add/add/SlowPath/LiteCG 17 obj/arkcompiler/ets_runtime/test/aottest/analyze_property/dictionary_mode/dictionary_mode/LiteCG 18 obj/arkcompiler/ets_runtime/test/aottest/analyze_property/multi_storing/multi_storing/LiteCG 19 obj/arkcompiler/ets_runtime/test/aottest/analyze_property/base/base/LiteCG 20 obj/arkcompiler/ets_runtime/test/aottest/analyze_property/escape_this/escape_this/LiteCG 21 obj/arkcompiler/ets_runtime/test/aottest/analyze_property/not_meet_subtyping/not_meet_subtyping/Lit… [all …]
|
| /arkcompiler/ets_frontend/ets2panda/test/runtime/ets/ |
| D | getter_setter.ets | 38 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 …]
|
| D | MutatorAccessor.ets | 41 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/plugins/ets/tests/interop_js/tests/passing_optional_type/ |
| D | passing_optional_type.js | 18 export function fnWithAnyParamsObject(obj) { argument 19 return obj.surname ? `${obj.name}; ${obj.surname}` : obj.name; 24 export function fnWithLiteralObjectParam(obj) { argument 25 return obj.surname ? `${obj.name}; ${obj.surname}` : obj.name; 30 export function fnWithExtraSetObjectParam(obj) { argument 31 return obj.surname ? `${obj.name}; ${obj.surname}` : obj.name; 33 export function fnWithSubSetParam(obj) { argument 34 return obj.city ? `${obj.name}; ${obj.city}` : obj.name; 39 export function fnWithUnionObjectParam(obj) { argument 40 return obj.id ? obj.id : 'id not found'; [all …]
|
| D | passing_optional_type.ts | 24 export function fnWithAnyParamsObject(obj:ObjectTypeWithAny):string { 25 return obj.surname ? `${obj.name}; ${obj.surname}` : obj.name; 38 export function fnWithLiteralObjectParam(obj:ObjectTypeWithLiteral):string { 39 return obj.surname ? `${obj.name}; ${obj.surname}` : obj.name; 51 export function fnWithExtraSetObjectParam(obj:ObjectTypeWithExtraSet):string { 52 return obj.surname ? `${obj.name}; ${obj.surname}` : obj.name; 63 export function fnWithSubSetParam(obj:BasicTestUser):string { 64 return obj.city ? `${obj.name}; ${obj.city}` : obj.name; 71 export function fnWithUnionObjectParam(obj:TestUserType):string | number { 72 return obj.id ? obj.id : 'id not found'; [all …]
|
| /arkcompiler/runtime_core/static_core/pandastdlib/ |
| D | pandastdlib.pa | 155 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/ |
| D | pandastdlib.pa | 149 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/ |
| D | std_core_Value.cpp | 37 void ValueAPISetFieldObject(EtsObject *obj, EtsLong i, EtsObject *val) in ValueAPISetFieldObject() argument 41 VMHandle<EtsObject> objHandle(coroutine, obj->GetCoreType()); in ValueAPISetFieldObject() 50 void SetFieldValue(EtsObject *obj, EtsLong i, T val) in SetFieldValue() argument 54 VMHandle<EtsObject> objHandle(coroutine, obj->GetCoreType()); in SetFieldValue() 66 void ValueAPISetFieldBoolean(EtsObject *obj, EtsLong i, EtsBoolean val) in ValueAPISetFieldBoolean() argument 68 SetFieldValue(obj, i, val); in ValueAPISetFieldBoolean() 71 void ValueAPISetFieldByte(EtsObject *obj, EtsLong i, EtsByte val) in ValueAPISetFieldByte() argument 73 SetFieldValue(obj, i, val); in ValueAPISetFieldByte() 76 void ValueAPISetFieldShort(EtsObject *obj, EtsLong i, EtsShort val) in ValueAPISetFieldShort() argument 78 SetFieldValue(obj, i, val); in ValueAPISetFieldShort() [all …]
|
| /arkcompiler/runtime_core/tests/cts-assembly/ |
| D | obj-13.pa | 16 #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-assembly/ |
| D | obj-13.pa | 16 #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-generator/cts-template/ |
| D | mov.obj.yaml | 17 - 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 …]
|
| D | ldobj.v.obj.yaml | 93 - 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 …]
|
| D | lda.obj.yaml | 17 - 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 …]
|
| D | newobj.yaml | 208 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 …]
|
| D | ldobj.obj.yaml | 93 - 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 …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/tests/optional_reference_type/ |
| D | index.js | 28 export function fnWithSubsetPick(obj) { argument 29 return obj.address ? obj.address.city : 'Address not found'; 32 export function fnWithSubsetOmit(obj) { argument 33 return obj.address ? obj.address.city : 'Address not found'; 36 export function fnWithSubsetPartial(obj) { argument 37 return obj.address ? obj.address.city : 'Address not found'; 40 export function fnWithUnionParam(obj) { argument 41 if (obj) { 42 if (Array.isArray(obj)) { 58 export function fnWithUserClass(obj) { argument [all …]
|
| D | optional_reference_type.ts | 46 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 …]
|
| /arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/ |
| D | mov.obj.yaml | 16 - 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 …]
|
| D | lda.obj.yaml | 16 - 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 …]
|
| D | sta.obj.yaml | 16 - 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 …]
|
| /arkcompiler/runtime_core/static_core/libpandabase/tests/ |
| D | json_parser_test.cpp | 31 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/ets_runtime/ecmascript/builtins/ |
| D | builtins_lazy_callback.h | 55 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/toolchain/test/resource/tooling/ |
| D | ohos_test.xml | 18 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/sample.abc -> /data/test… 19 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/exception.abc -> /data/t… 20 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/arrow_func.abc -> /data/… 21 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/async_func.abc -> /data/… 22 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/range_error.abc -> /data… 23 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/syntax_exception.abc -> … 24 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/throw_exception.abc -> /… 25 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/step.abc -> /data/test" … 26 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/dropframe.abc -> /data/t… 27 …<option name="push" value="obj/arkcompiler/toolchain/tooling/dynamic/test/variable_first.abc -> /d… [all …]
|
| /arkcompiler/runtime_core/libpandabase/tests/ |
| D | json_parser_test.cpp | 32 JsonObject obj(str); 33 ASSERT_TRUE(obj.IsValid()); 35 ASSERT_NE(obj.GetValue<JsonObject::StringT>("key_0"), nullptr); 36 ASSERT_EQ(*obj.GetValue<JsonObject::StringT>("key_0"), "key_0.value"); 38 ASSERT_NE(obj.GetValue<JsonObject::StringT>("key_1"), nullptr); 39 ASSERT_EQ(*obj.GetValue<JsonObject::StringT>("key_1"), "\"key_1\"\\. value\n"); 41 ASSERT_EQ(obj.GetValue<JsonObject::StringT>("key_2"), nullptr); 58 JsonObject obj(str); 59 ASSERT_TRUE(obj.IsValid()); 61 ASSERT_NE(obj.GetValue<JsonObject::ArrayT>("key_0"), nullptr); [all …]
|