Home
last modified time | relevance | path

Searched full:field (Results 1 – 25 of 225) sorted by relevance

123456789

/arkcompiler/ets_frontend/merge_abc/src/
DassemblyFieldProto.cpp19 void Field::Serialize(const panda::pandasm::Field &field, protoPanda::Field &protoField) in Serialize() argument
22 Type::Serialize(field.type, *protoType); in Serialize()
23 protoField.set_name(field.name); in Serialize()
25 FieldMetadata::Serialize(*field.metadata, *protoFieldmeta); in Serialize()
26 protoField.set_lineofdef(field.line_of_def); in Serialize()
27 protoField.set_wholeline(field.whole_line); in Serialize()
28 protoField.set_boundleft(field.bound_left); in Serialize()
29 protoField.set_boundright(field.bound_right); in Serialize()
30 protoField.set_isdefined(field.is_defined); in Serialize()
33 void Field::Deserialize(const protoPanda::Field &protoField, panda::pandasm::Field &field, in Deserialize() argument
[all …]
DassemblyFieldProto.h25 class Field {
27 static void Serialize(const panda::pandasm::Field &field, protoPanda::Field &protoField);
28 static void Deserialize(const protoPanda::Field &protoField, panda::pandasm::Field &field,
/arkcompiler/runtime_core/tests/cts-generator/cts-template/
Dldobj.v.obj.yaml95 title: Get field from object to register
97 Get field value from an object by field id and put it into register.
245 …iption: Check that verifier reports error when the field doesn't resolve to a non-static object fi…
274 # resolves to a static object field
286 # resolves to a non-existing object field
306 # resolves to a field name in a wrong object
327 …description: Check that verifier reports an error when the field resolves to a field with size or …
397 …description: Check that field value is loaded from field into register. More tests on ldobj.v.obj …
399 description: Get field value from an object by field id and put it into register.
408 # store null into Q type field
[all …]
Dldobj.obj.yaml95 title: Get field from object to accumulator
97 Get field value from an object by field id and put it into accumulator.
251 …iption: Check that verifier reports error when the field doesn't resolve to a non-static object fi…
280 # resolves to a static object field
292 # resolves to a non-existing object field
312 # resolves to a field name in a wrong object
333 …description: Check that verifier reports an error when the field resolves to a field with size or …
400 …description: Check that accumulator value is loaded from field into accumulator. More tests on ldo…
402 description: Get field value from an object by field id and put it into accumulator.
411 # store null into Q type field
[all …]
Dldstatic.obj.yaml94 title: Get static field
96 Get static field value by field_id and put it into accumulator.
104 …scription: Check that verifier reports error when the field doesn't resolve to a static valid field
216 …description: Check that verifier reports an error when the field resolves to a field with size or …
255 …description: Check that verifier reports an error when the field resolves to a field with size or …
288 …description: Check that accumulator value is loaded from field into accumulator in PandaAssembly c…
290 description: Get static field value by field_id and put it into accumulator.
297 # store null into Q type field
301 # store null into Q[] type field
305 # store R object into R type field
[all …]
Dstobj.v.obj.yaml72 title: Store register content into object field
74 Store register content into object field by field_id.
84 description: Store register content into object field by field_id.
287 Check that verifier reports error when the field doesn't resolve to
288 a non-static object field.
316 # resolves to a static object field
322 # resolves to a non-existing object field
338 # resolves to a field name in a wrong object
357 Check that verifier reports error when the field doesn't resolve to a non-static
358 valid object field in PandaAssembly context.
[all …]
Dldstatic.yaml62 title: Get static field
64 Get static field value by field_id and put it into accumulator.
72 …cription: Check that verifier reports an error if the field doesn't resolve to a static valid field
184 …description: Check that verifier reports an error when the field resolves to a field with size tha…
213 …description: Check that verifier reports an error when the field resolves to a field with size tha…
240 …description: Check that field value is loaded into accumulator in PandaAssembly context. More test…
243 For non-object variant, the size of the field is determined by the field_id,
244 …most significant bits are sign or unsigned extended based on the field type to fit accumulator siz…
245 …If field size is less then 32, result will be sign or unsigned extended to i32 depedning on field
280 …description: Check that field value is loaded into accumulator in PandaAssembly context. Signed in…
[all …]
Dstobj.obj.yaml92 title: Store accumulator content into object field
94 Store accumulator content into object field by field_id.
104 description: Store accumulator content into object field by field_id.
271 …iption: Check that verifier reports error when the field doesn't resolve to a non-static object fi…
306 # resolves to a static object field
312 # resolves to a non-existing object field
332 # resolves to a field name in a wrong object
367 # store into object field
398 # store into object array field
436 # store into i32[] array field
[all …]
Dststatic.obj.yaml92 title: Store to static field
94 Store accumulator content into static field by field_id.
104 description: Store accumulator content into static field by field_id.
119 …iption: Check that verifier reports error when the field_id doesn't resolve to a static valid field
246 # store into object type field
277 # store into object array type field
315 # store into i32[] array field
340 # store into panda.Object field
379 # store into panda.Object[] field
439 # store into object type field
[all …]
Dldobj.yaml89 title: Get field from object to accumulator
91 Get field value from an object by field id and put it into accumulator.
246 …on: Check that verifier reports an error if the field doesn't resolve to a non-static valid object…
305 …description: Check that verifier reports an error when the field resolves to a field with size or …
336 …description: Check that verifier does not report any error when the field has size or type corresp…
397 …description: Check that field value is loaded into accumulator. More tests on ldobj can be found i…
400 For non-object variant, the size of the field is determined by the field_id,
401 …most significant bits are sign or unsigned extended based on the field type to fit accumulator siz…
402 …If field type is less than 32, then loaded value is sign or zero extended to i32 depending on fiel…
444 For non-object variant, the size of the field is determined by the field_id,
[all …]
/arkcompiler/runtime_core/runtime/include/coretypes/
Dclass.h54 T GetFieldPrimitive(const Field &field) const in GetFieldPrimitive() argument
56 return klass_.GetFieldPrimitive<T>(field); in GetFieldPrimitive()
60 void SetFieldPrimitive(const Field &field, T value) in SetFieldPrimitive() argument
62 klass_.SetFieldPrimitive(field, value); in SetFieldPrimitive()
66 ObjectHeader *GetFieldObject(const Field &field) const in GetFieldObject() argument
68 return klass_.GetFieldObject<need_read_barrier>(field); in GetFieldObject()
72 void SetFieldObject(const Field &field, ObjectHeader *value) in SetFieldObject() argument
74 klass_.SetFieldObject<need_write_barrier>(field, value); in SetFieldObject()
96 // Klass field has variable size so it must be last
/arkcompiler/runtime_core/runtime/tests/
Dobject_helpers_test.cpp151 panda.String field <static> in TEST_F()
156 Field *field = klass->GetStaticFieldByName(reinterpret_cast<const uint8_t *>("field")); in TEST_F() local
157 ASSERT_NE(nullptr, field); in TEST_F()
160 ObjectAccessor::SetFieldObject<false>(klass, *field, expected); in TEST_F()
180 panda.String field <static, volatile> in TEST_F()
185 Field *field = klass->GetStaticFieldByName(reinterpret_cast<const uint8_t *>("field")); in TEST_F() local
186 ASSERT_NE(nullptr, field); in TEST_F()
189 ObjectAccessor::SetFieldObject<false>(klass, *field, expected); in TEST_F()
209 panda.String field in TEST_F()
216 Field *field = klass->GetInstanceFieldByName(reinterpret_cast<const uint8_t *>("field")); in TEST_F() local
[all …]
/arkcompiler/runtime_core/libpandafile/
Dmodifiers.h25 static constexpr uint32_t ACC_PUBLIC = 0x0001; // field, method, class
26 static constexpr uint32_t ACC_PRIVATE = 0x0002; // field, method
27 static constexpr uint32_t ACC_PROTECTED = 0x0004; // field, method
28 static constexpr uint32_t ACC_STATIC = 0x0008; // field, method
29 static constexpr uint32_t ACC_FINAL = 0x0010; // field, method, class
33 static constexpr uint32_t ACC_VOLATILE = 0x0040; // field
34 static constexpr uint32_t ACC_TRANSIENT = 0x0080; // field,
40 static constexpr uint32_t ACC_SYNTHETIC = 0x1000; // field, method, class
42 static constexpr uint32_t ACC_ENUM = 0x4000; // field, class
46 // Field type
[all …]
/arkcompiler/runtime_core/runtime/mem/
Dobject_helpers.cpp70 Span<Field> fields = cls->GetInstanceFields(); in DumpObject()
87 for (Field &field : fields) { in DumpObject()
88 *o_stream << "\tfield \"" << GetFieldName(field) << "\" "; in DumpObject()
89 size_t offset = field.GetOffset(); in DumpObject()
90 panda_file::Type::TypeId type_id = field.GetTypeId(); in DumpObject()
167 void TraverseFields(const Span<Field> &fields, const Class *cls, const ObjectHeader *object_header, in TraverseFields()
170 for (const Field &field : fields) { in TraverseFields() local
171 LOG(DEBUG, GC) << " current field \"" << GetFieldName(field) << "\""; in TraverseFields()
172 size_t offset = field.GetOffset(); in TraverseFields()
173 panda_file::Type::TypeId type_id = field.GetTypeId(); in TraverseFields()
[all …]
Dobject_helpers.h29 class Field; variable
104 const char *GetFieldName(const Field &field);
111 * Traverse all kinds of object_header and call obj_visitor for each reference field.
117 * Traverse all kinds of object_header and call handler for each reference field.
119 * the flag whether the field is volatile.
127 * Update a single reference field in the object to the moved value.
145 * Traverse all kinds of object_header and call obj_visitor for each reference field.
151 * Traverse all kinds of object_header and call handler for each reference field.
153 * the flag whether the field is volatile.
161 * Update a single reference field in the object to the moved value.
/arkcompiler/runtime_core/runtime/include/
Dobject_header-inl.h19 #include "runtime/include/field.h"
67 inline T ObjectHeader::GetFieldPrimitive(const Field &field) const in GetFieldPrimitive() argument
69 return ObjectAccessor::GetFieldPrimitive<T>(this, field); in GetFieldPrimitive()
73 inline void ObjectHeader::SetFieldPrimitive(const Field &field, T value) in SetFieldPrimitive() argument
75 ObjectAccessor::SetFieldPrimitive(this, field, value); in SetFieldPrimitive()
79 inline ObjectHeader *ObjectHeader::GetFieldObject(const Field &field) const in GetFieldObject() argument
81 return ObjectAccessor::GetFieldObject<need_read_barrier, is_dyn>(this, field); in GetFieldObject()
85 inline void ObjectHeader::SetFieldObject(const Field &field, ObjectHeader *value) in SetFieldObject() argument
87 ObjectAccessor::SetFieldObject<need_write_barrier, is_dyn>(this, field, value); in SetFieldObject()
91 inline ObjectHeader *ObjectHeader::GetFieldObject(const ManagedThread *thread, const Field &field) in GetFieldObject() argument
[all …]
Dclass-inl.h20 #include "runtime/include/field.h"
168 inline Span<Field> Class::GetFields() const in GetFields()
183 inline Field *Class::FindDeclaredField(Pred pred) const in FindDeclaredField()
193 ALWAYS_INLINE inline Field *BinarySearchField(Span<Field> fields, panda_file::File::EntityId id) in BinarySearchField()
195 …auto comp = [](const Field &field, panda_file::File::EntityId field_id) { return field.GetFileId()… in BinarySearchField()
204 inline Field *Class::FindDeclaredField(panda_file::File::EntityId id) const in FindDeclaredField()
219 auto *field = BinarySearchField(fields, id); in FindDeclaredField() local
220 if (field != nullptr) { in FindDeclaredField()
221 return field; in FindDeclaredField()
229 inline Field *Class::FindField(Pred pred) const in FindField()
[all …]
Dobject_accessor-inl.h21 #include "runtime/include/field.h"
110 inline T ObjectAccessor::GetFieldPrimitive(const void *obj, const Field &field) in GetFieldPrimitive() argument
112 if (UNLIKELY(field.IsVolatile())) { in GetFieldPrimitive()
113 return GetPrimitive<T, true>(obj, field.GetOffset()); in GetFieldPrimitive()
115 return GetPrimitive<T, false>(obj, field.GetOffset()); in GetFieldPrimitive()
120 inline void ObjectAccessor::SetFieldPrimitive(void *obj, const Field &field, T value) in SetFieldPrimitive() argument
122 if (UNLIKELY(field.IsVolatile())) { in SetFieldPrimitive()
123 SetPrimitive<T, true>(obj, field.GetOffset(), value); in SetFieldPrimitive()
125 SetPrimitive<T, false>(obj, field.GetOffset(), value); in SetFieldPrimitive()
131 inline ObjectHeader *ObjectAccessor::GetFieldObject(const void *obj, const Field &field) in GetFieldObject() argument
[all …]
Dclass.h26 #include "runtime/include/field.h"
212 Span<Field> GetFields() const in GetFields()
217 Span<Field> GetStaticFields() const in GetStaticFields()
222 Span<Field> GetInstanceFields() const in GetInstanceFields()
227 void SetFields(Span<Field> fields, uint32_t num_sfields) in SetFields()
576 Field *FindInstanceField(Pred pred) const;
578 Field *FindInstanceFieldById(panda_file::File::EntityId id) const;
581 Field *FindStaticField(Pred pred) const;
583 Field *FindStaticFieldById(panda_file::File::EntityId id) const;
586 Field *FindField(Pred pred) const;
[all …]
Dobject_accessor.h25 class Field; variable
49 static T GetFieldPrimitive(const void *obj, const Field &field);
52 static void SetFieldPrimitive(void *obj, const Field &field, T value);
55 static ObjectHeader *GetFieldObject(const void *obj, const Field &field);
58 static void SetFieldObject(void *obj, const Field &field, ObjectHeader *value);
68 …tic ObjectHeader *GetFieldObject(const ManagedThread *thread, const void *obj, const Field &field);
71 …static void SetFieldObject(const ManagedThread *thread, void *obj, const Field &field, ObjectHeade…
/arkcompiler/runtime_core/runtime/
Dclass_initializer.cpp353 static void InitializePrimitiveField(Class *klass, const Field &field) in InitializePrimitiveField() argument
355 panda_file::FieldDataAccessor fda(*field.GetPandaFile(), field.GetFileId()); in InitializePrimitiveField()
357 klass->SetFieldPrimitive<T>(field, value ? value.value() : 0); in InitializePrimitiveField()
360 static void InitializeTaggedField(Class *klass, const Field &field) in InitializeTaggedField() argument
363 klass->SetFieldPrimitive<coretypes::TaggedValue>(field, ctx.GetInitialTaggedValue()); in InitializeTaggedField()
366 static void InitializeStringField(Class *klass, const Field &field) in InitializeStringField() argument
368 panda_file::FieldDataAccessor fda(*field.GetPandaFile(), field.GetFileId()); in InitializeStringField()
374 klass->SetFieldObject(field, str); in InitializeStringField()
379 klass->SetFieldObject(field, nullptr); in InitializeStringField()
388 for (const auto &field : klass->GetStaticFields()) { in InitializeFields() local
[all …]
Dclass_linker.cpp22 #include "runtime/include/field.h"
76 Span<Field> fields = class_ptr->GetFields(); in FreeClassData()
79 class_ptr->SetFields(Span<Field>(), 0); in FreeClassData()
310 explicit ClassDataAccessor(Span<Field> fields) : fields_(fields) {} in ClassDataAccessor()
315 for (const auto &field : fields_) { in EnumerateStaticFieldTypes() local
316 if (!field.IsStatic()) { in EnumerateStaticFieldTypes()
320 cb(field.GetType()); in EnumerateStaticFieldTypes()
330 Span<Field> fields_;
333 ClassLinker::ClassInfo ClassLinker::GetClassInfo(Span<Method> methods, Span<Field> fields, Class *b… in GetClassInfo()
480 Span<Field> fields {allocator_->AllocArray<Field>(num_fields), num_fields}; in LoadFields()
[all …]
/arkcompiler/runtime_core/runtime/interpreter/
Dinterpreter-inl.h1542 Field *field = ResolveField(id); in HandleLdobj() local
1544 if (LIKELY(field != nullptr)) { in HandleLdobj()
1545 ASSERT(!field->IsStatic()); in HandleLdobj()
1546 LoadPrimitiveField(obj, field); in HandleLdobj()
1567 Field *field = ResolveField(id); in HandleLdobjWide() local
1569 if (LIKELY(field != nullptr)) { in HandleLdobjWide()
1570 ASSERT(!field->IsStatic()); in HandleLdobjWide()
1571 LoadPrimitiveField(obj, field); in HandleLdobjWide()
1592 Field *field = ResolveField(id); in HandleLdobjObj() local
1594 if (LIKELY(field != nullptr)) { in HandleLdobjObj()
[all …]
/arkcompiler/runtime_core/assembler/
Dassembly-field.h28 struct Field { struct
33 std::string whole_line = ""; /* The line in which the field is defined */
34 /* Or line in which the field met, if the field is not defined */
39 explicit Field(panda::panda_file::SourceLang lang) in Field() argument
/arkcompiler/runtime_core/verification/
Dmessages.yaml39 args: field
40 message: ( field is '${field}' )
45 args: field
46 message: Field is '${field}'.
69 args: field, field_type, acc_type, subtypes, field_subtypes
71 Field is '${field}'. Field type is '${field_type}'. Accumulator type is '${acc_type}'.
208 args: field
210 Cannot resolve field type. Field is '${field}'
216 Expected ${(is_static ? "static" : "instance")} field.
220 args: field, reg_idx, obj_type, field_obj_type, field_obj_subtypes
[all …]

123456789