Home
last modified time | relevance | path

Searched refs:field_index (Results 1 – 25 of 41) sorted by relevance

12

/external/v8/src/
Dlayout-descriptor-inl.h35 return details.field_index() < inobject_properties; in InobjectUnboxedField()
44 bool LayoutDescriptor::GetIndexes(int field_index, int* layout_word_index, in GetIndexes() argument
46 if (static_cast<unsigned>(field_index) >= static_cast<unsigned>(capacity())) { in GetIndexes()
50 *layout_word_index = field_index / kNumberOfBits; in GetIndexes()
54 *layout_bit_index = field_index % kNumberOfBits; in GetIndexes()
59 LayoutDescriptor* LayoutDescriptor::SetRawData(int field_index) { in SetRawData() argument
60 return SetTagged(field_index, false); in SetRawData()
64 LayoutDescriptor* LayoutDescriptor::SetTagged(int field_index, bool tagged) { in SetTagged() argument
68 if (!GetIndexes(field_index, &layout_word_index, &layout_bit_index)) { in SetTagged()
95 bool LayoutDescriptor::IsTagged(int field_index) { in IsTagged() argument
[all …]
Dlayout-descriptor.cc51 layout_descriptor->IsTagged(details.field_index())); in ShareAppend()
54 int field_index = details.field_index(); in ShareAppend() local
56 isolate, layout_descriptor, field_index + details.field_width_in_words()); in ShareAppend()
60 layout_desc = layout_desc->SetRawData(field_index); in ShareAppend()
62 layout_desc = layout_desc->SetRawData(field_index + 1); in ShareAppend()
78 layout_descriptor->IsTagged(details.field_index())); in AppendIfFastOrUseFull()
81 int field_index = details.field_index(); in AppendIfFastOrUseFull() local
82 int new_capacity = field_index + details.field_width_in_words(); in AppendIfFastOrUseFull()
89 layout_descriptor = layout_descriptor->SetRawData(field_index); in AppendIfFastOrUseFull()
91 layout_descriptor = layout_descriptor->SetRawData(field_index + 1); in AppendIfFastOrUseFull()
[all …]
Dfield-index-inl.h46 int field_index = orig_index; in ForLoadByFieldIndex() local
48 bool is_double = field_index & 1; in ForLoadByFieldIndex()
50 field_index >>= 1; in ForLoadByFieldIndex()
51 if (field_index < 0) { in ForLoadByFieldIndex()
52 field_index = -(field_index + 1); in ForLoadByFieldIndex()
55 field_index += FixedArray::kHeaderSize / kPointerSize; in ForLoadByFieldIndex()
58 field_index += JSObject::kHeaderSize / kPointerSize; in ForLoadByFieldIndex()
60 FieldIndex result(is_inobject, field_index, is_double, in ForLoadByFieldIndex()
92 int field_index = details.field_index(); in ForDescriptor() local
93 return ForPropertyIndex(map, field_index, in ForDescriptor()
Dlayout-descriptor.h27 V8_INLINE bool IsTagged(int field_index);
34 bool IsTagged(int field_index, int max_sequence_length,
93 LayoutDescriptor* SetTaggedForTesting(int field_index, bool tagged);
124 V8_INLINE bool GetIndexes(int field_index, int* layout_word_index,
127 V8_INLINE MUST_USE_RESULT LayoutDescriptor* SetRawData(int field_index);
129 V8_INLINE MUST_USE_RESULT LayoutDescriptor* SetTagged(int field_index,
Dproperty.h62 int field_index = 0)
65 details_(attributes, type, representation, field_index) { } in key_()
77 DataDescriptor(Handle<Name> key, int field_index, in DataDescriptor() argument
80 representation, field_index) {} in DataDescriptor()
82 DataDescriptor(Handle<Name> key, int field_index, in DataDescriptor() argument
86 field_index) { in DataDescriptor()
Dproperty-details.h248 int field_index = 0) {
252 | FieldIndexField::encode(field_index);
257 int field_index = 0) {
261 FieldIndexField::encode(field_index);
324 int field_index() const { return FieldIndexField::decode(value_); } in field_index() function
Dproperty.cc53 os << ", field_index: " << details.field_index(); in operator <<()
Djson-stringifier.h547 FieldIndex field_index = FieldIndex::ForDescriptor(*map, i); in SerializeJSObject() local
549 if (object->IsUnboxedDoubleField(field_index)) { in SerializeJSObject()
550 double value = object->RawFastDoublePropertyAt(field_index); in SerializeJSObject()
554 property = handle(object->RawFastPropertyAt(field_index), isolate); in SerializeJSObject()
Dlookup.cc441 FieldIndex field_index = FieldIndex::ForDescriptor(*holder_map_, number_); in FetchValue() local
443 field_index); in FetchValue()
/external/v8/src/compiler/
Daccess-info.cc77 Type* receiver_type, FieldIndex field_index, Type* field_type, in DataField() argument
80 return PropertyAccessInfo(holder, transition_map, field_index, field_check, in DataField()
120 FieldIndex field_index, in PropertyAccessInfo() argument
127 field_index_(field_index), in PropertyAccessInfo()
269 FieldIndex field_index = FieldIndex::ForPropertyIndex( in ComputePropertyAccessInfo() local
300 Type::Class(receiver_map, zone()), field_index, field_type, in ComputePropertyAccessInfo()
379 FieldIndex field_index = FieldIndex::ForInObjectOffset(offset); in LookupSpecialFieldAccessor() local
402 field_index, field_type); in LookupSpecialFieldAccessor()
407 FieldIndex field_index = FieldIndex::ForInObjectOffset(offset); in LookupSpecialFieldAccessor() local
421 Type::Class(map, zone()), field_index, field_type, in LookupSpecialFieldAccessor()
[all …]
Daccess-info.h78 Type* receiver_type, FieldIndex field_index, Type* field_type,
96 FieldIndex field_index() const { return field_index_; } in field_index() function
105 MaybeHandle<Map> transition_map, FieldIndex field_index,
Djs-native-context-specialization.cc218 FieldIndex const field_index = access_info.field_index(); in ReduceNamedAccess() local
251 if (!field_index.is_inobject()) { in ReduceNamedAccess()
256 FieldAccess field_access = {kTaggedBase, field_index.offset(), name, in ReduceNamedAccess()
260 if (!field_index.is_inobject() || field_index.is_hidden_field() || in ReduceNamedAccess()
286 if (!field_index.is_inobject() || field_index.is_hidden_field() || in ReduceNamedAccess()
/external/v8/test/cctest/
Dtest-unboxed-doubles.cc63 static double GetDoubleFieldValue(JSObject* obj, FieldIndex field_index) { in GetDoubleFieldValue() argument
64 if (obj->IsUnboxedDoubleField(field_index)) { in GetDoubleFieldValue()
65 return obj->RawFastDoublePropertyAt(field_index); in GetDoubleFieldValue()
67 Object* value = obj->RawFastPropertyAt(field_index); in GetDoubleFieldValue()
642 int field_index = f.GetDetails().field_index(); in TestLayoutDescriptorAppend() local
643 bool is_inobject = field_index < map->GetInObjectProperties(); in TestLayoutDescriptorAppend()
646 !layout_descriptor->IsTagged(field_index + bit)); in TestLayoutDescriptorAppend()
788 int field_index = details.field_index(); in TestLayoutDescriptorAppendIfFastOrUseFull() local
791 bool is_inobject = field_index < map->GetInObjectProperties(); in TestLayoutDescriptorAppendIfFastOrUseFull()
794 !layout_desc->IsTagged(field_index + bit)); in TestLayoutDescriptorAppendIfFastOrUseFull()
[all …]
Dtest-inobject-slack-tracking.cc97 static double GetDoubleFieldValue(JSObject* obj, FieldIndex field_index) { in GetDoubleFieldValue() argument
98 if (obj->IsUnboxedDoubleField(field_index)) { in GetDoubleFieldValue()
99 return obj->RawFastDoublePropertyAt(field_index); in GetDoubleFieldValue()
101 Object* value = obj->RawFastPropertyAt(field_index); in GetDoubleFieldValue()
/external/kernel-headers/original/uapi/linux/
Dhiddev.h93 __u32 field_index; member
123 __u32 field_index; member
/external/nanopb-c/
Dpb_decode.c27 unsigned field_index; /* Zero-based index of the field. */ member
344 iter->field_index = 0; in pb_field_init()
373 iter->field_index++; in pb_field_next()
377 iter->field_index = 0; in pb_field_next()
391 unsigned start = iter->field_index; in pb_field_find()
400 } while (iter->field_index != start); in pb_field_find()
679 iter.field_index = 0; in default_extension_decoder()
718 unsigned start = iter->field_index; in find_extension_field()
724 } while (iter->field_index != start); in find_extension_field()
/external/protobuf/src/google/protobuf/
Dtext_format.h113 int field_index,
117 int field_index,
Dtext_format.cc1307 int field_index, in PrintMessageStart() argument
1314 int field_index, in PrintMessageEnd() argument
1470 const int field_index = field->is_repeated() ? j : -1; in PrintField() local
1483 sub_message, field_index, count, single_line_mode_)); in PrintField()
1489 sub_message, field_index, count, single_line_mode_)); in PrintField()
1493 PrintFieldValue(message, reflection, field, field_index, generator); in PrintField()
Dtext_format_unittest.cc458 int field_index, in PrintMessageStart() argument
465 " { # ", message.GetDescriptor()->name(), ": ", field_index, "\n"); in PrintMessageStart()
504 int field_index, in PrintMessageStart() argument
/external/protobuf/python/google/protobuf/
Ddescriptor_pool.py391 for field_index, field_desc in enumerate(desc_proto.field):
394 oneofs[oneof_index].fields.append(fields[field_index])
395 fields[field_index].containing_oneof = oneofs[oneof_index]
/external/mesa3d/src/glsl/
Dglsl_types.h454 int field_index(const char *name) const;
/external/v8/src/runtime/
Druntime-object.cc851 FieldIndex field_index = in RUNTIME_FUNCTION() local
853 if (field_index.is_inobject()) { in RUNTIME_FUNCTION()
854 RUNTIME_ASSERT(field_index.property_index() < in RUNTIME_FUNCTION()
857 RUNTIME_ASSERT(field_index.outobject_array_index() < in RUNTIME_FUNCTION()
861 field_index); in RUNTIME_FUNCTION()
/external/v8/src/arm64/
Dbuiltins-arm64.cc1430 int field_index) { in Generate_DatePrototype_GetField() argument
1446 if (field_index == JSDate::kDateValue) { in Generate_DatePrototype_GetField()
1449 if (field_index < JSDate::kFirstUncachedField) { in Generate_DatePrototype_GetField()
1457 x0, JSDate::kValueOffset + field_index * kPointerSize)); in Generate_DatePrototype_GetField()
1462 __ Mov(x1, Smi::FromInt(field_index)); in Generate_DatePrototype_GetField()
/external/v8/src/x64/
Dbuiltins-x64.cc1057 int field_index) { in Generate_DatePrototype_GetField() argument
1074 if (field_index == JSDate::kDateValue) { in Generate_DatePrototype_GetField()
1077 if (field_index < JSDate::kFirstUncachedField) { in Generate_DatePrototype_GetField()
1083 rax, JSDate::kValueOffset + field_index * kPointerSize)); in Generate_DatePrototype_GetField()
1090 __ Move(arg_reg_2, Smi::FromInt(field_index)); in Generate_DatePrototype_GetField()
/external/v8/src/arm/
Dbuiltins-arm.cc1459 int field_index) { in Generate_DatePrototype_GetField() argument
1475 if (field_index == JSDate::kDateValue) { in Generate_DatePrototype_GetField()
1478 if (field_index < JSDate::kFirstUncachedField) { in Generate_DatePrototype_GetField()
1486 r0, JSDate::kValueOffset + field_index * kPointerSize)); in Generate_DatePrototype_GetField()
1492 __ mov(r1, Operand(Smi::FromInt(field_index))); in Generate_DatePrototype_GetField()

12