Home
last modified time | relevance | path

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

12345678910>>...36

/arkcompiler/ets_frontend/ets2panda/test/runtime/ets/
Dgetter_setter2.sts19 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.sts20 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.sts23 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 …]
Dlocal-class-standard-example2.sts17 field: number = 1234 // Not visible for the local class
23 field: string
28 … console.log ("Instance field = " + this.field + " par = " + parameter + " loc = " + local )
29 assert(this.field == "`instance method instance field value`")
34 field: string = "`instance method instance field value`"
36 console.log ("Static field = " + LocalClass.s_field)
37 assert(LocalClass.s_field == "`instance method class/static field value`")
39 static s_field: string = "`instance method class/static field value`"
51 field: string
56 … console.log ("Instance field = " + this.field + " par = " + parameter + " loc = " + local)
[all …]
Dlocal-class-standard-example1.sts20 field: string; // and a property
25 … console.log ("Instance field = " + this.field + " par = " + parameter + " loc = " + local )
26 assert(this.field == "`instance field value`")
30 field: string = "`instance field value`"
32 console.log ("Static field = " + LocalClass.s_field)
33 assert(LocalClass.s_field == "`class/static field value`")
36 static s_field: string = "`class/static field value`"
/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/ets_frontend/ets2panda/linter/test/
Dsendable_explicit_field_type.ts.json386 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
393 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
400 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
407 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
414 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
421 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
428 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
442 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
449 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
456 … "rule": "Field in sendable class must have type annotation (arkts-sendable-explicit-field-type)"
[all …]
Dobject_literals_3.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.sts17 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/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/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 …]
/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/isa/
Disa.yaml69 - title: Get field from object by name
71 Get field value from an object by field name field_id and put it into accumulator.
72 …If field type size is less than 32, then loaded value is sign or zero extended to i32 depending on…
83 field = resolve_field_by_name(field_id)
84 if field != null then
85 if op == ets.ldobj.name and size(field) < 32 then
86 acc = extendto32(vs.get(field))
88 acc = vs.get(field)
120 - title: Store accumulator content into object field by name
122 Store accumulator content into object field by field name field_id.
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/intrinsics/
Dcompiler_intrinsics.cpp30 void LookUpException(ark::Class *klass, Field *rawField) in LookUpException()
34 … auto errorMsg = "Class " + ark::ConvertToString(klass->GetName()) + " does not have field and " + in LookUpException()
46 Field *TryGetField(ark::Method *method, Field *rawField, uint32_t pc, ark::Class *klass) in TryGetField()
53 auto *res = cache->template Get<Field>(address, method); in TryGetField()
59 auto field = klass->LookupFieldByName(rawField->GetName()); in TryGetField() local
60 if (field != nullptr && useIc) { in TryGetField()
61 cache->template Set(address, field, method); in TryGetField()
63 return field; in TryGetField()
67 ark::Method *TryGetCallee(ark::Method *method, Field *rawField, uint32_t pc, ark::Class *klass) in TryGetCallee()
96 static T GetFieldPrimitiveType(Field *field, const VMHandle<ObjectHeader> &handleObj) in GetFieldPrimitiveType() argument
[all …]
/arkcompiler/runtime_core/static_core/runtime/mem/
Dobject_helpers.cpp82 static void DumpReferenceField(ObjectHeader *objectHeader, const Field &field, in DumpReferenceField() argument
85 size_t offset = field.GetOffset(); in DumpReferenceField()
94 static void DumpPrimitivesField(ObjectHeader *objectHeader, const Field &field, in DumpPrimitivesField() argument
97 size_t offset = field.GetOffset(); in DumpPrimitivesField()
98 panda_file::Type::TypeId typeId = field.GetTypeId(); in DumpPrimitivesField()
164 Span<Field> fields = cls->GetInstanceFields(); in DumpObjectFields()
165 for (Field &field : fields) { in DumpObjectFields()
166 *oStream << "\tfield \"" << GetFieldName(field) << "\" "; in DumpObjectFields()
167 panda_file::Type::TypeId typeId = field.GetTypeId(); in DumpObjectFields()
169 DumpReferenceField(objectHeader, field, oStream); in DumpObjectFields()
[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 shadow a field declared in a superclass or
79 field declaration
171 field: number
172 constructor (p: number) { this.field = p }
179 result, a constructor for the abstract class, and field initializers
186 field: number
187 constructor (p: number) { this.field = p }
227 field
[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/libpandafile/
Dmodifiers.h25 constexpr uint32_t ACC_PUBLIC = 0x0001; // field, method, class
26 constexpr uint32_t ACC_PRIVATE = 0x0002; // field, method, class
27 constexpr uint32_t ACC_PROTECTED = 0x0004; // field, method, class
28 constexpr uint32_t ACC_STATIC = 0x0008; // field, method
29 constexpr uint32_t ACC_FINAL = 0x0010; // field, method, class
33 constexpr uint32_t ACC_VOLATILE = 0x0040; // field
34 constexpr uint32_t ACC_TRANSIENT = 0x0080; // field,
40 constexpr uint32_t ACC_SYNTHETIC = 0x1000; // field, method, class
42 constexpr uint32_t ACC_ENUM = 0x4000; // field, class
44 constexpr uint32_t ACC_READONLY = 0x0020; // field
[all …]

12345678910>>...36