Home
last modified time | relevance | path

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

12345678910>>...20

/ark/runtime_core/pandastdlib/
Dpandastdlib.pa134 lda.obj a1
135 stobj.obj a0, panda.NullPointerException.message
136 lda.obj a2
137 stobj.obj a0, panda.NullPointerException.cause
142 ldobj.obj a0, panda.NullPointerException.message
143 return.obj
147 ldobj.obj a0, panda.NullPointerException.cause
148 return.obj
152 lda.obj a1
153 stobj.obj a0, panda.ArrayIndexOutOfBoundsException.message
[all …]
/ark/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 …]
Dlda.obj.yaml17 - file-name: "lda.obj"
27 - 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 …
104 # Check lda.obj for string
106 sta.obj v0
107 lda.obj v0
108 jne.obj v0, return_ne_num
[all …]
Dcmp.obj.yaml17 - file-name: "cmp.obj"
27 - sig: cmp.obj v:in:ref
34 # Check cmp.obj with same object
36 sta.obj v0
37 cmp.obj v0
39 description: Check cmp.obj with equal objects in PandaAssembly context.
100 # Check cmp.obj for string
102 sta.obj v0
103 cmp.obj v0
108 # Check cmp.obj for type
[all …]
Dnewobj.yaml184 lda.obj v1
190 lda.obj v1
227 lda.obj v0
228 jne.obj v1, ok
417 ldobj.obj v1, Z.fR
418 jeqz.obj label_Ra
423 ldobj.obj v1, Z.fRa
424 jeqz.obj label_Raa
429 ldobj.obj v1, Z.fRaa
430 jeqz.obj label_O
[all …]
Dsta.obj.yaml17 - file-name: "sta.obj"
27 - sig: sta.obj v:out:ref
36 lda.obj v0
37 sta.obj v1
38 jne.obj v1, return_ne_num
46 …description: Check sta.obj with different type of arguments (empty object, with fields, statics, s…
107 # Check sta.obj for string
109 sta.obj v0
110 jne.obj v0, return_ne_num
120 # Check sta.obj for type
[all …]
Dcall.virt.range.yaml205 sta.obj v0
241 mov.obj v0, a0
245 mov.obj v0, a0
249 mov.obj v0, a0
253 mov.obj v0, a0
259 mov.obj v1, a0
268 mov.obj v1, a0
277 mov.obj v1, a0
305 lda.obj a3
306 stobj.obj a0, R.f3
[all …]
Dreturn.obj.yaml17 .record Obj {
21 .function void Obj.ctor(Obj a0, i32 a1) <ctor> {
23 stobj a0, Obj.fld1
28 .record Obj {}
30 .function void Obj.ctor(Obj a0) <ctor> {
37 - file-name: "return.obj"
49 - sig: return.obj
52 description: Check 'return.obj' returns control flow to caller.
56 .function Obj func(%s) {
58 initobj.short Obj.ctor, v0
[all …]
Dstarr.obj.yaml47 - file-name: "starr.obj"
53 - sig: starr.obj v1:in:ref[], v2:in:i32
62 - sig: starr.obj v1:in:ref[], v2:in:i32
67 description: Check 'starr.obj' instruction with valid register numbers.
72 starr.obj %s, %s
84 starr.obj a0, a1 # valid registers
98 - sig: starr.obj v1:in:ref[], v2:in:i32
102 description: Check 'starr.obj' instruction with invalid register numbers.
105 starr.obj %s, *s
136 - sig: starr.obj v1:in:ref[], v2:in:i32
[all …]
Dldarr.obj.yaml34 - file-name: "ldarr.obj"
40 - sig: ldarr.obj v:in:ref[]
50 description: Check 'ldarr.obj' instruction with different register numbers.
55 ldarr.obj %s
69 ldarr.obj a0 # valid name of register
79 ldarr.obj a1 # invalid name of register
104 description: Check 'ldarr.obj' with uninitialized accumulator
112 ldarr.obj a0
125 description: Check 'ldarr.obj' with uninitialized register
133 ldarr.obj v2
[all …]
Djne.obj.yaml20 - file-name: "jne.obj"
34 - sig: jne.obj v:in:ref, imm:i32
44 - sig: jne.obj v:in:ref, imm:i32
48 description: Check 'jne.obj' instruction with invalid 'v' register.
52 jne.obj %s
74 - sig: jne.obj v:in:ref, imm:i32
78 description: Check 'jne.obj' instruction with invalid 'a' register.
83 jne.obj %s
109 - sig: jne.obj v:in:ref, imm:i32
112 description: Check 'jne.obj' instruction with valid 'v' register.
[all …]
Djeqz.obj.yaml20 - file-name: "jeqz.obj"
30 - sig: jeqz.obj imm:i32
40 - sig: jeqz.obj imm:i32
44 description: Check 'jeqz.obj' instruction with invalid offset.
48 jeqz.obj %s
68 description: Check 'jeqz.obj' instruction with uninitialized accumulator.
72 jeqz.obj lbl
84 description: Check 'jeqz.obj' instruction with invalid branch target.
101 jeqz.obj %s
132 … description: Check 'jeqz.obj' instruction with prohibited branch target in PandaAssembly context.
[all …]
Djnez.obj.yaml20 - file-name: "jnez.obj"
30 - sig: jnez.obj imm:i32
40 - sig: jnez.obj imm:i32
44 description: Check 'jnez.obj' instruction with invalid offset.
48 jnez.obj %s
68 description: Check 'jnez.obj' instruction with uninitialized accumulator.
72 jnez.obj lbl
84 description: Check 'jnez.obj' instruction with invalid branch target.
101 jnez.obj %s
132 … description: Check 'jnez.obj' instruction with prohibited branch target in PandaAssembly context.
[all …]
Djeq.obj.yaml20 - file-name: "jeq.obj"
34 - sig: jeq.obj v:in:ref, imm:i32
44 - sig: jeq.obj v:in:ref, imm:i32
48 description: Check 'jeq.obj' instruction with invalid 'v' register.
52 jeq.obj %s
74 - sig: jeq.obj v:in:ref, imm:i32
78 description: Check 'jeq.obj' instruction with invalid 'a' register.
83 jeq.obj %s
109 - sig: jeq.obj v:in:ref, imm:i32
112 description: Check 'jeq.obj' instruction with valid 'v' register.
[all …]
Dldobj.obj.yaml95 - file-name: "ldobj.obj"
101 - sig: ldobj.obj v:in:ref, field_id
110 - sig: ldobj.obj v:in:ref, field_id
123 - 'ldobj.obj v0, R.fQ'
125 - 'ldobj.obj v1, R.fR'
127 - 'ldobj.obj v15, R.fQArray'
129 - 'ldobj.obj v240, R.fi32Array'
131 - 'ldobj.obj v255, R.fObj'
146 return.obj
151 sta.obj v0
[all …]
/ark/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 …]
/ark/runtime_core/verification/util/
Dequiv_classes.h139 auto obj = lhs_tail_obj_entry.Next; in JoinClasses() local
140 while (obj.IsValid()) { in JoinClasses()
141 auto &obj_entry = ObjEntry(obj); in JoinClasses()
143 obj = obj_entry.Next; in JoinClasses()
151 ObjIndex obj; in NewObjIndex() local
153 obj = FreeObjIndices_.back(); in NewObjIndex()
156 obj = Objects_.size(); in NewObjIndex()
161 cls_entry.Head = cls_entry.Tail = obj; in NewObjIndex()
163 ObjEntry(obj).Class = cls; in NewObjIndex()
164 return obj; in NewObjIndex()
[all …]
Dsynchronized.h36 obj = other.obj; in ConstProxy()
37 other.obj = nullptr; in ConstProxy()
40 ConstProxy(const Synchronized *param_obj) : obj {param_obj} {} in ConstProxy()
44 if (obj != nullptr) { in ~ConstProxy()
45 obj->rw_lock_.Unlock(); in ~ConstProxy()
51 ASSERT(obj != nullptr);
52 return &obj->c;
55 const Synchronized *obj; member
64 obj = other.obj; in Proxy()
65 other.obj = nullptr; in Proxy()
[all …]
/ark/runtime_core/libpandabase/tests/
Djson_parser_test.cpp52 JsonObject obj(str); in TEST() local
53 ASSERT_TRUE(obj.IsValid()); in TEST()
55 ASSERT_NE(obj.GetValue<JsonObject::StringT>("key_0"), nullptr); in TEST()
56 ASSERT_EQ(*obj.GetValue<JsonObject::StringT>("key_0"), "key_0.value"); in TEST()
72 JsonObject obj(str); in TEST() local
73 ASSERT_TRUE(obj.IsValid()); in TEST()
75 ASSERT_NE(obj.GetValue<JsonObject::ArrayT>("key_0"), nullptr); in TEST()
76 auto &main_array = *obj.GetValue<JsonObject::ArrayT>("key_0"); in TEST()
113 JsonObject obj(str); in TEST() local
114 ASSERT_TRUE(obj.IsValid()); in TEST()
[all …]
/ark/runtime_core/runtime/include/
Dobject_accessor-inl.h31 inline ObjectHeader *ObjectAccessor::GetObject(const void *obj, size_t offset) in GetObject() argument
35 return reinterpret_cast<ObjectHeader *>(Get<object_pointer_type, is_volatile>(obj, offset)); in GetObject()
37 return Get<ObjectHeader *, is_volatile>(obj, offset); in GetObject()
43 inline void ObjectAccessor::SetObject(void *obj, size_t offset, ObjectHeader *value) in SetObject() argument
50 ObjectHeader *pre_val = GetObject<is_volatile, is_dyn>(obj, offset); in SetObject()
51 barrier_set->PreBarrier(ToVoidPtr(ToUintPtr(obj) + offset), pre_val); in SetObject()
55 Set<object_pointer_type, is_volatile>(obj, offset, ToObjPtrType(value)); in SetObject()
57 Set<ObjectHeader *, is_volatile>(obj, offset, value); in SetObject()
61 barrier_set->PostBarrier(ToVoidPtr(ToUintPtr(obj)), value); in SetObject()
65 Set<object_pointer_type, is_volatile>(obj, offset, ToObjPtrType(value)); in SetObject()
[all …]
Dobject_accessor.h32 static T GetPrimitive(const void *obj, size_t offset) in GetPrimitive() argument
34 return Get<T, is_volatile>(obj, offset); in GetPrimitive()
38 static void SetPrimitive(void *obj, size_t offset, T value) in SetPrimitive() argument
40 Set<T, is_volatile>(obj, offset, value); in SetPrimitive()
44 static ObjectHeader *GetObject(const void *obj, size_t offset);
47 static void SetObject(void *obj, size_t offset, ObjectHeader *value);
50 static T GetFieldPrimitive(const void *obj, const Field &field);
53 static void SetFieldPrimitive(void *obj, const Field &field, T value);
56 static ObjectHeader *GetFieldObject(const void *obj, const Field &field);
59 static void SetFieldObject(void *obj, const Field &field, ObjectHeader *value);
[all …]
/ark/js_runtime/ecmascript/
Djs_tagged_value.cpp482 OperationResult JSTaggedValue::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, in GetProperty() argument
485 if (obj->IsUndefined() || obj->IsNull() || obj->IsHole()) { in GetProperty()
486 THROW_TYPE_ERROR_AND_RETURN(thread, "Obj is not a valid object", in GetProperty()
491 if (obj->IsJSProxy()) { in GetProperty()
492 return JSProxy::GetProperty(thread, JSHandle<JSProxy>(obj), key); in GetProperty()
494 if (obj->IsTypedArray()) { in GetProperty()
495 return JSTypedArray::GetProperty(thread, obj, JSTypedArray::ToPropKey(thread, key)); in GetProperty()
498 return JSObject::GetProperty(thread, obj, key); in GetProperty()
501 OperationResult JSTaggedValue::GetProperty(JSThread *thread, const JSHandle<JSTaggedValue> &obj, ui… in GetProperty() argument
503 if (obj->IsUndefined() || obj->IsNull() || obj->IsHole()) { in GetProperty()
[all …]
Djs_object.cpp61 const TaggedObject *obj = this; in GetCallTarget() local
62 ASSERT(JSTaggedValue(obj).IsJSFunctionBase() || JSTaggedValue(obj).IsJSProxy()); in GetCallTarget()
63 if (JSTaggedValue(obj).IsJSFunctionBase()) { in GetCallTarget()
64 return JSFunctionBase::ConstCast(obj)->GetMethod(); in GetCallTarget()
66 return JSProxy::ConstCast(obj)->GetMethod(); in GetCallTarget()
69 …<TaggedArray> JSObject::GrowElementsCapacity(const JSThread *thread, const JSHandle<JSObject> &obj, in GrowElementsCapacity() argument
74 JSHandle<TaggedArray> oldElements(thread, obj->GetElements()); in GrowElementsCapacity()
78 obj->SetElements(thread, newElements); in GrowElementsCapacity()
136 // trim in-obj properties space in TransitionToDictionary()
147 void JSObject::ElementsToDictionary(const JSThread *thread, JSHandle<JSObject> obj) in ElementsToDictionary() argument
[all …]
/ark/runtime_core/tests/benchmarks/
Daccess-binary-trees.pa21 lda.obj a1
22 stobj.obj a0, TreeNode.left
23 lda.obj a2
24 stobj.obj a0, TreeNode.right
32 ldobj.obj a0, TreeNode.left
33 jeq.obj v0, if
34 ldobj.obj a0, TreeNode.left
35 sta.obj v1
38 ldobj.obj a0, TreeNode.right
39 sta.obj v1
[all …]
/ark/ts2abc/ts2panda/tests/expression/
DelementAccess.test.ts37 it('get obj["property"]', function () {
38 let insns = compileMainSnippet(`let obj;
39 obj["property"];`);
44 new EcmaStlettoglobalrecord('obj'),
45 new EcmaTryldglobalbyname('obj'),
50 insns = insns.slice(1, insns.length - 1); // cut off let obj and return.dyn
54 it('set obj["property"]', function () {
55 let insns = compileMainSnippet(`let obj;
56 obj["property"] = 5;`);
61 new EcmaStlettoglobalrecord('obj'),
[all …]

12345678910>>...20