Home
last modified time | relevance | path

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

12345678910>>...28

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dgetter_setter2.ets19 get field(): int {
23 set field(field: int): void {
24 this._field = field;
32 objectos.field += 10;
33 assert objectos.field == 40;
35 objectos.field -= 200;
36 assert objectos.field == -160;
38 objectos.field += 260;
39 objectos.field *= 10;
40 assert objectos.field == 1000;
[all …]
Dgetter_setter.ets20 get field(): int {
24 set field(a: int): void {
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;
[all …]
DMutatorAccessor.ets23 get field(): int {
27 set field(a: int): void {
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;
[all …]
/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/static_core/plugins/ets/tests/mock/
Dfinal_field_native_test.cpp68 ets_field field = env->GetStaticp_field(testClass, "boolean_value_final", "Z"); in TEST_F() local
69 ASSERT_NE(field, nullptr); in TEST_F()
70 ASSERT_EQ(env->GetStaticBooleanField(testClass, field), ETS_TRUE); in TEST_F()
72 field = env->GetStaticp_field(testClass, "byte_value_final", "B"); in TEST_F()
73 ASSERT_NE(field, nullptr); in TEST_F()
74 ASSERT_EQ(env->GetStaticByteField(testClass, field), 2_I); in TEST_F()
76 field = env->GetStaticp_field(testClass, "short_value_final", "S"); in TEST_F()
77 ASSERT_NE(field, nullptr); in TEST_F()
78 ASSERT_EQ(env->GetStaticShortField(testClass, field), 256_I); in TEST_F()
80 field = env->GetStaticp_field(testClass, "char_value_final", "C"); in TEST_F()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/interop_js/ets_proxy/
Dets_field_wrapper.h24 #include "runtime/include/field.h"
33 class Field; variable
47 Field *GetField() const in GetField()
60 napi_property_descriptor MakeInstanceProperty(EtsClassWrapper *owner, Field *field);
61 napi_property_descriptor MakeStaticProperty(EtsClassWrapper *owner, Field *field);
69 …EtsFieldWrapper(EtsClassWrapper *owner, Field *field) : owner_(owner), field_(field), lazyRefconve… in EtsFieldWrapper() argument
73 if (field->IsStatic()) { in EtsFieldWrapper()
81 Field *field_ {};
82 TypedPointer<const Field, JSRefConvert> lazyRefconvertLink_ {};
/arkcompiler/ets_frontend/ets2panda/linter/test/
Dobject_literals2.ts23 field: "world",
33 field: 1,
43 field: "world",
55 field: "world", property
65 field: 1, property
75 field: "world", property
87 field: "world",
97 field: 1,
107 field: "world",
119 field: "world",
[all …]
Ddelete_operator.ts17 field: any;
20 const f0 = (o: T0) => delete o.field;
23 field: unknown;
26 const f1 = (o: T1) => delete o.field;
29 field: never;
32 const f2 = (o: T2) => delete o.field;
35 field?: number;
38 const f3 = (o: T3) => delete o.field;
41 field: number;
44 const f4 = (o: T4) => delete o.field;
/arkcompiler/ets_frontend/ets2panda/linter-4.2/test/
Ddelete_operator.ts17 field: any;
20 const f0 = (o: T0) => delete o.field;
23 field: unknown;
26 const f1 = (o: T1) => delete o.field;
29 field: never;
32 const f2 = (o: T2) => delete o.field;
35 field?: number;
38 const f3 = (o: T3) => delete o.field;
41 field: number;
44 const f4 = (o: T4) => delete o.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 …]
/arkcompiler/runtime_core/static_core/plugins/ets/isa/
Disa.yaml71 - title: Get field from object by name
73 Get field value from an object by field name field_id and put it into accumulator.
74 …If field type size is less than 32, then loaded value is sign or zero extended to i32 depending on…
85 field = resolve_field_by_name(field_id)
86 if field != null then
87 if op == ets.ldobj.name and size(field) < 32 then
88 acc = extendto32(vs.get(field))
90 acc = vs.get(field)
122 - title: Store accumulator content into object field by name
124 Store accumulator content into object field by field name field_id.
[all …]
/arkcompiler/runtime_core/static_core/runtime/include/coretypes/
Dclass.h53 T GetFieldPrimitive(const Field &field) const in GetFieldPrimitive() argument
55 return klass_.GetFieldPrimitive<T>(field); in GetFieldPrimitive()
59 void SetFieldPrimitive(const Field &field, T value) in SetFieldPrimitive() argument
61 klass_.SetFieldPrimitive(field, value); in SetFieldPrimitive()
65 ObjectHeader *GetFieldObject(const Field &field) const in GetFieldObject() argument
67 return klass_.GetFieldObject<NEED_READ_BARRIER>(field); in GetFieldObject()
71 void SetFieldObject(const Field &field, ObjectHeader *value) in SetFieldObject() argument
73 klass_.SetFieldObject<NEED_WRITE_BARRIER>(field, value); in SetFieldObject()
95 // Klass field has variable size so it must be last
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/types/
Dets_field.h20 #include "runtime/include/field.h"
48 Field *GetRuntimeField() in GetRuntimeField()
88 static EtsField *FromRuntimeField(Field *field) in FromRuntimeField() argument
90 return reinterpret_cast<EtsField *>(field); in FromRuntimeField()
93 static const EtsField *FromRuntimeField(const Field *field) in FromRuntimeField() argument
95 return reinterpret_cast<const EtsField *>(field); in FromRuntimeField()
98 Field *GetCoreType() in GetCoreType()
100 return reinterpret_cast<Field *>(this); in GetCoreType()
103 const Field *GetCoreType() const in GetCoreType()
105 return reinterpret_cast<const Field *>(this); in GetCoreType()
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
Dcompiler_intrinsics.cpp27 void LookUpException(panda::Class *klass, Field *rawField) in LookUpException()
31 …auto errorMsg = "Class " + panda::ConvertToString(klass->GetName()) + " does not have field and " + in LookUpException()
43 Field *TryGetField(panda::Method *method, Field *rawField, uint32_t pc, panda::Class *klass) in TryGetField()
50 auto *res = cache->template Get<Field>(address, method); in TryGetField()
56 auto field = klass->LookupFieldByName(rawField->GetName()); in TryGetField() local
57 if (field != nullptr && useIc) { in TryGetField()
58 cache->template Set(address, field, method); in TryGetField()
60 return field; in TryGetField()
64 panda::Method *TryGetCallee(panda::Method *method, Field *rawField, uint32_t pc, panda::Class *klas… in TryGetCallee()
97 panda::Field *rawField; in CompilerEtsLdObjByName()
[all …]
/arkcompiler/runtime_core/static_core/tests/cts-generator/cts-template/
Dldobj.v.obj.yaml50 title: Get field from object to register
52 Get field value from an object by field id and put it into register.
153 …iption: Check that verifier reports error when the field doesn't resolve to a non-static object fi…
181 # resolves to a static object field
193 # resolves to a non-existing object field
213 # resolves to a field name in a wrong object
233 …description: Check that verifier reports an error when the field resolves to a field with size or …
299 …description: Check that field value is loaded from field into register. More tests on ldobj.v.obj …
301 description: Get field value from an object by field id and put it into register.
309 # store null into Q type field
[all …]
Dldobj.obj.yaml50 title: Get field from object to accumulator
52 Get field value from an object by field id and put it into accumulator.
162 …iption: Check that verifier reports error when the field doesn't resolve to a non-static object fi…
190 # resolves to a static object field
202 # resolves to a non-existing object field
222 # resolves to a field name in a wrong object
242 …description: Check that verifier reports an error when the field resolves to a field with size or …
305 …description: Check that accumulator value is loaded from field into accumulator. More tests on ldo…
307 description: Get field value from an object by field id and put it into accumulator.
315 # store null into Q type field
[all …]
Dldstatic.obj.yaml50 title: Get static field
52 Get static field value by field_id and put it into accumulator.
59 …scription: Check that verifier reports error when the field doesn't resolve to a static valid field
169 …description: Check that verifier reports an error when the field resolves to a field with size or …
206 …description: Check that accumulator value is loaded from field into accumulator. More tests on lds…
208 description: Get static field value by field_id and put it into accumulator.
214 # store null into Q type field
218 # store null into Q[] type field
222 # store R object into R type field
226 # store R[] into R[] type field
[all …]
/arkcompiler/runtime_core/static_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 …]
/arkcompiler/runtime_core/static_core/runtime/mem/
Dobject_helpers.cpp70 Span<Field> fields = cls->GetInstanceFields(); in DumpObject()
86 for (Field &field : fields) { in DumpObject()
87 *oStream << "\tfield \"" << GetFieldName(field) << "\" "; in DumpObject()
88 size_t offset = field.GetOffset(); in DumpObject()
89 panda_file::Type::TypeId typeId = field.GetTypeId(); in DumpObject()
166 void TraverseFields(const Span<Field> &fields, const Class *cls, const ObjectHeader *objectHeader, in TraverseFields()
169 for (const Field &field : fields) { in TraverseFields() local
170 LOG(DEBUG, GC) << " current field \"" << GetFieldName(field) << "\""; in TraverseFields()
171 size_t offset = field.GetOffset(); in TraverseFields()
172 panda_file::Type::TypeId typeId = field.GetTypeId(); in TraverseFields()
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/doc/spec/
D9_classes.rst45 field
58 Field, method, accessor and constructor declarations can have the following
66 A newly declared field can hide a field declared in a superclass or
82 field declaration
174 field: number
175 constructor (p: number) { this.field = p }
182 result, a constructor for the abstract class, and field initializers
189 field: number
190 constructor (p: number) { this.field = p }
230 field
[all …]
/arkcompiler/runtime_core/static_core/runtime/tests/
Dobject_helpers_test.cpp153 panda.String field <static> in TEST_F()
158 Field *field = klass->GetStaticFieldByName(reinterpret_cast<const uint8_t *>("field")); in TEST_F() local
159 ASSERT_NE(nullptr, field); in TEST_F()
162 ObjectAccessor::SetFieldObject<false>(klass, *field, expected); in TEST_F()
182 panda.String field <static, volatile> in TEST_F()
187 Field *field = klass->GetStaticFieldByName(reinterpret_cast<const uint8_t *>("field")); in TEST_F() local
188 ASSERT_NE(nullptr, field); in TEST_F()
191 ObjectAccessor::SetFieldObject<false>(klass, *field, expected); in TEST_F()
211 panda.String field in TEST_F()
218 Field *field = klass->GetInstanceFieldByName(reinterpret_cast<const uint8_t *>("field")); in TEST_F() local
[all …]

12345678910>>...28