Lines Matching defs:obj
215 HeapObject obj;
218 if (!allocation.To(&obj)) return false;
221 Map new_meta_map = Map::unchecked_cast(obj);
256 if (!alloc.To(&obj)) return false;
257 obj.set_map_after_allocation(roots.fixed_array_map(), SKIP_WRITE_BARRIER);
258 FixedArray::cast(obj).set_length(0);
260 set_empty_fixed_array(FixedArray::cast(obj));
265 if (!alloc.To(&obj)) return false;
266 obj.set_map_after_allocation(roots.weak_fixed_array_map(),
268 WeakFixedArray::cast(obj).set_length(0);
270 set_empty_weak_fixed_array(WeakFixedArray::cast(obj));
275 if (!allocation.To(&obj)) return false;
276 obj.set_map_after_allocation(roots.weak_array_list_map(),
278 WeakArrayList::cast(obj).set_capacity(0);
279 WeakArrayList::cast(obj).set_length(0);
281 set_empty_weak_array_list(WeakArrayList::cast(obj));
286 if (!allocation.To(&obj)) return false;
288 set_null_value(Oddball::cast(obj));
289 Oddball::cast(obj).set_kind(Oddball::kNull);
294 if (!allocation.To(&obj)) return false;
296 set_undefined_value(Oddball::cast(obj));
297 Oddball::cast(obj).set_kind(Oddball::kUndefined);
302 if (!allocation.To(&obj)) return false;
304 set_the_hole_value(Oddball::cast(obj));
305 Oddball::cast(obj).set_kind(Oddball::kTheHole);
322 if (!allocation.To(&obj)) return false;
324 set_empty_enum_cache(EnumCache::cast(obj));
325 EnumCache::cast(obj).set_keys(roots.empty_fixed_array());
326 EnumCache::cast(obj).set_indices(roots.empty_fixed_array());
331 if (!AllocateRaw(size, AllocationType::kReadOnly).To(&obj)) return false;
332 obj.set_map_after_allocation(roots.descriptor_array_map(),
334 DescriptorArray array = DescriptorArray::cast(obj);
337 set_empty_descriptor_array(DescriptorArray::cast(obj));
445 if (!alloc.To(&obj)) return false;
446 obj.set_map_after_allocation(roots.cell_map(), SKIP_WRITE_BARRIER);
447 Cell::cast(obj).set_value(value);
448 set_invalid_prototype_validity_cell(Cell::cast(obj));
540 if (!alloc.To(&obj)) return false;
541 obj.set_map_after_allocation(roots.array_list_map(), SKIP_WRITE_BARRIER);
542 ArrayList::cast(obj).set_length(ArrayList::kFirstIndex);
543 ArrayList::cast(obj).SetLength(0);
545 set_empty_array_list(ArrayList::cast(obj));
551 if (!alloc.To(&obj)) return false;
552 obj.set_map_after_allocation(roots.scope_info_map(), SKIP_WRITE_BARRIER);
559 ScopeInfo::cast(obj).set_flags(flags);
560 ScopeInfo::cast(obj).set_context_local_count(0);
561 ScopeInfo::cast(obj).set_parameter_count(0);
563 set_empty_scope_info(ScopeInfo::cast(obj));
569 if (!alloc.To(&obj)) return false;
570 obj.set_map_after_allocation(roots.object_boilerplate_description_map(),
573 FixedArray::cast(obj).set_length(1);
574 FixedArray::cast(obj).set(ObjectBoilerplateDescription::kLiteralTypeOffset,
578 ObjectBoilerplateDescription::cast(obj));
585 if (!alloc.To(&obj)) return false;
587 ArrayBoilerplateDescription::cast(obj).set_constant_elements(
589 ArrayBoilerplateDescription::cast(obj).set_elements_kind(
593 ArrayBoilerplateDescription::cast(obj));
598 if (!allocation.To(&obj)) return false;
600 set_true_value(Oddball::cast(obj));
601 Oddball::cast(obj).set_kind(Oddball::kTrue);
606 if (!allocation.To(&obj)) return false;
608 set_false_value(Oddball::cast(obj));
609 Oddball::cast(obj).set_kind(Oddball::kFalse);
613 if (!AllocateRaw(ByteArray::SizeFor(0), AllocationType::kReadOnly).To(&obj))
615 obj.set_map_after_allocation(roots.byte_array_map(), SKIP_WRITE_BARRIER);
616 ByteArray::cast(obj).set_length(0);
617 set_empty_byte_array(ByteArray::cast(obj));
622 .To(&obj)) {
625 obj.set_map_after_allocation(roots.property_array_map(),
627 PropertyArray::cast(obj).initialize_length(0);
628 set_empty_property_array(PropertyArray::cast(obj));
633 .To(&obj)) {
636 obj.set_map_after_allocation(roots.closure_feedback_cell_array_map(),
638 FixedArray::cast(obj).set_length(0);
639 set_empty_closure_feedback_cell_array(ClosureFeedbackCellArray::cast(obj));