Lines Matching refs:field_index
63 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()
796 CHECK(layout_desc->IsTagged(field_index + field_width_in_words)); in TestLayoutDescriptorAppendIfFastOrUseFull()
1052 FieldIndex field_index = FieldIndex::ForDescriptor(*map, 0); in TEST() local
1053 CHECK(field_index.is_inobject() && field_index.is_double()); in TEST()
1054 CHECK_EQ(FLAG_unbox_double_fields, map->IsUnboxedDoubleField(field_index)); in TEST()
1055 CHECK_EQ(42.5, GetDoubleFieldValue(*obj, field_index)); in TEST()
1071 FieldIndex field_index = FieldIndex::ForDescriptor(obj->map(), 0); in TEST() local
1073 obj->FastPropertyAtPut(field_index, *boom_number); in TEST()
1081 CHECK_EQ(boom_value, GetDoubleFieldValue(*obj, field_index)); in TEST()
1130 FieldIndex field_index = FieldIndex::ForDescriptor(*map, 0); in TEST() local
1131 CHECK(field_index.is_inobject() && field_index.is_double()); in TEST()
1132 CHECK_EQ(FLAG_unbox_double_fields, map->IsUnboxedDoubleField(field_index)); in TEST()
1133 CHECK_EQ(42.5, GetDoubleFieldValue(*obj, field_index)); in TEST()
1135 field_index = FieldIndex::ForDescriptor(*map, 1); in TEST()
1136 CHECK(field_index.is_inobject() && !field_index.is_double()); in TEST()
1137 CHECK(!map->IsUnboxedDoubleField(field_index)); in TEST()
1171 FieldIndex field_index = FieldIndex::ForDescriptor(*map, 1); in TEST() local
1172 CHECK_EQ(*obj_value, obj->RawFastPropertyAt(field_index)); in TEST()
1388 FieldIndex field_index = FieldIndex::ForDescriptor(*map, 0); in TEST() local
1389 CHECK(field_index.is_inobject() && field_index.is_double()); in TEST()
1390 CHECK_EQ(FLAG_unbox_double_fields, map->IsUnboxedDoubleField(field_index)); in TEST()
1391 CHECK_EQ(42.5, GetDoubleFieldValue(*obj, field_index)); in TEST()
1410 FieldIndex field_index = FieldIndex::ForDescriptor(obj->map(), 0); in TEST() local
1412 obj->FastPropertyAtPut(field_index, *boom_number); in TEST()
1421 CHECK_EQ(boom_value, GetDoubleFieldValue(*obj, field_index)); in TEST()