Lines Matching defs:allocation

37 #include "src/objects/allocation-site-inl.h"
38 #include "src/objects/allocation-site-scopes.h"
288 // fact that no allocation will happen from this point on.
316 // fact that no allocation will happen from this point on.
333 HeapObject Factory::AllocateRaw(int size, AllocationType allocation,
336 size, allocation, AllocationOrigin::kRuntime, alignment);
340 Handle<Map> map, AllocationType allocation,
349 size, allocation);
350 WriteBarrierMode write_barrier_mode = allocation == AllocationType::kYoung
373 HeapObject Factory::New(Handle<Map> map, AllocationType allocation) {
377 size, allocation);
379 WriteBarrierMode write_barrier_mode = allocation == AllocationType::kYoung
388 AllocationType allocation,
392 size, allocation, origin, alignment);
419 AllocationType allocation) {
420 auto result = NewStructInternal<Tuple2>(TUPLE2_TYPE, allocation);
450 AllocationType allocation) {
453 HeapObject result = AllocateRawFixedArray(length, allocation);
469 AllocationResult allocation = heap->AllocateRaw(size, allocation_type);
471 if (!allocation.To(&result)) return MaybeHandle<FixedArray>();
548 AllocationType allocation) {
563 HeapObject result = AllocateRawWithImmortalMap(size, allocation, *map);
570 int capacity, AllocationType allocation) {
572 small_ordered_hash_set_map(), capacity, allocation);
576 int capacity, AllocationType allocation) {
578 small_ordered_hash_map_map(), capacity, allocation);
582 int capacity, AllocationType allocation) {
585 small_ordered_name_dictionary_map(), capacity, allocation);
680 const base::Vector<const uint8_t>& string, AllocationType allocation) {
681 DCHECK_NE(allocation, AllocationType::kReadOnly);
687 NewRawOneByteString(string.length(), allocation),
698 const base::Vector<const char>& string, AllocationType allocation) {
710 NewRawOneByteString(decoder.utf16_length(), allocation), String);
721 NewRawTwoByteString(decoder.utf16_length(), allocation), String);
730 AllocationType allocation) {
748 // TODO(v8): the allocation flag is ignored in this case.
759 NewRawOneByteString(decoder.utf16_length(), allocation), String);
762 // allocation.
773 NewRawTwoByteString(decoder.utf16_length(), allocation), String);
777 // allocation.
785 AllocationType allocation) {
786 DCHECK_NE(allocation, AllocationType::kReadOnly);
792 NewRawOneByteString(length, allocation), String);
799 NewRawTwoByteString(length, allocation), String);
807 const base::Vector<const base::uc16>& string, AllocationType allocation) {
808 return NewStringFromTwoByte(string.begin(), string.length(), allocation);
812 const ZoneVector<base::uc16>* string, AllocationType allocation) {
814 allocation);
1107 Symbol Factory::NewSymbolInternal(AllocationType allocation) {
1108 DCHECK(allocation != AllocationType::kYoung);
1113 Symbol::kSize, allocation, read_only_roots().symbol_map()));
1126 Handle<Symbol> Factory::NewSymbol(AllocationType allocation) {
1127 return handle(NewSymbolInternal(allocation), isolate());
1130 Handle<Symbol> Factory::NewPrivateSymbol(AllocationType allocation) {
1131 DCHECK(allocation != AllocationType::kYoung);
1132 Symbol symbol = NewSymbolInternal(allocation);
1148 AllocationType allocation) {
1155 size, allocation);
1778 AllocationType allocation) {
1782 PropertyCell::kSize, allocation, *global_property_cell_map()));
1787 WriteBarrierMode mode = allocation == AllocationType::kYoung
1808 // Transition arrays are AllocationType::kOld. When black allocation is on we
2037 AllocationType allocation) {
2042 HeapObject new_object = AllocateRawFixedArray(new_len, allocation);
2066 int capacity, AllocationType allocation) {
2070 HeapObject heap_object = AllocateRawWeakArrayList(capacity, allocation);
2081 AllocationType allocation) {
2083 NewUninitializedWeakArrayList(capacity, allocation);
2096 Handle<WeakArrayList> src, int grow_by, AllocationType allocation) {
2101 NewUninitializedWeakArrayList(new_capacity, allocation);
2116 AllocationType allocation) {
2118 NewUninitializedWeakArrayList(new_capacity, allocation);
2145 AllocationType allocation) {
2149 HeapObject heap_object = AllocateRawFixedArray(new_len, allocation);
2381 // allocation is on.
2425 AllocationType allocation) {
2428 return NewJSObjectFromMap(map, allocation);
2547 Handle<Map> map, AllocationType allocation,
2558 AllocateRawWithAllocationSite(map, allocation, allocation_site));
2570 Handle<Map> map, int capacity, AllocationType allocation,
2575 object_properties = NewSwissNameDictionary(capacity, allocation);
2580 NewJSObjectFromMap(map, allocation, allocation_site);
2614 AllocationType allocation) {
2618 allocation);
2625 elms, elements_kind, length, allocation));
2631 AllocationType allocation) {
2633 elements, elements_kind, length, allocation);
2640 AllocationType allocation) {
2649 NewJSObjectFromMap(handle(map, isolate()), allocation));
2826 std::shared_ptr<BackingStore> backing_store, AllocationType allocation) {
2830 Handle<JSArrayBuffer>::cast(NewJSObjectFromMap(map, allocation));
2838 AllocationType allocation) {
2849 Handle<JSArrayBuffer>::cast(NewJSObjectFromMap(map, allocation));
3534 AllocationType allocation) {
3549 return handle(LoadHandler::cast(New(map, allocation)), isolate());