Home | History | Annotate | Download | only in heap

Lines Matching refs:Heap

12 #include "src/heap/heap.h"
13 #include "src/heap/store-buffer.h"
14 #include "src/heap/store-buffer-inl.h"
15 #include "src/heap-profiler.h"
47 SemiSpace::AssertValidRange(target->GetIsolate()->heap()->new_space()->top(),
54 bool inline Heap::IsOneByte(Vector<const char> str, int chars) {
61 bool inline Heap::IsOneByte(String* str, int chars) {
66 AllocationResult Heap::AllocateInternalizedStringFromUtf8(
77 AllocationResult Heap::AllocateInternalizedStringImpl(T t, int chars,
86 AllocationResult Heap::AllocateOneByteInternalizedString(
118 AllocationResult Heap::AllocateTwoByteInternalizedString(Vector<const uc16> str,
148 AllocationResult Heap::CopyFixedArray(FixedArray* src) {
154 AllocationResult Heap::CopyFixedDoubleArray(FixedDoubleArray* src) {
160 AllocationResult Heap::CopyConstantPoolArray(ConstantPoolArray* src) {
166 AllocationResult Heap::AllocateRaw(int size_in_bytes, AllocationSpace space,
173 Heap::allocation_timeout_-- <= 0) {
224 void Heap::OnAllocationEvent(HeapObject* object, int size_in_bytes) {
245 void Heap::OnMoveEvent(HeapObject* target, HeapObject* source,
277 void Heap::UpdateAllocationsHash(HeapObject* object) {
291 void Heap::UpdateAllocationsHash(uint32_t value) {
301 void Heap::PrintAlloctionsHash() {
307 void Heap::FinalizeExternalString(String* string) {
322 bool Heap::InNewSpace(Object* object) {
331 bool Heap::InNewSpace(Address address) { return new_space_.Contains(address); }
334 bool Heap::InFromSpace(Object* object) {
339 bool Heap::InToSpace(Object* object) {
344 bool Heap::InOldPointerSpace(Address address) {
349 bool Heap::InOldPointerSpace(Object* object) {
354 bool Heap::InOldDataSpace(Address address) {
359 bool Heap::InOldDataSpace(Object* object) {
364 bool Heap::OldGenerationAllocationLimitReached() {
370 bool Heap::ShouldBePromoted(Address old_address, int object_size) {
378 void Heap::RecordWrite(Address address, int offset) {
383 void Heap::RecordWrites(Address address, int start, int len) {
392 OldSpace* Heap::TargetSpace(HeapObject* object) {
399 AllocationSpace Heap::TargetSpaceId(InstanceType type) {
400 // Heap numbers and sequential strings are promoted to old data space, all
403 // know that object has the heap object tag.
417 // Only the latter two contain non-map-word pointers to heap objects.
427 bool Heap::AllowedToBeMigrated(HeapObject* obj, AllocationSpace dst) {
469 void Heap::CopyBlock(Address dst, Address src, int byte_size) {
475 void Heap::MoveBlock(Address dst, Address src, int byte_size) {
494 void Heap::ScavengePointer(HeapObject** p) { ScavengeObject(p, *p); }
497 AllocationMemento* Heap::FindAllocationMemento(HeapObject* object) {
536 void Heap::UpdateAllocationSiteFeedback(HeapObject* object,
538 Heap* heap = object->GetHeap();
539 DCHECK(heap->InFromSpace(object));
545 AllocationMemento* memento = heap->FindAllocationMemento(object);
549 heap->AddAllocationSiteToScratchpad(memento->GetAllocationSite(), mode);
554 void Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
555 DCHECK(object->GetIsolate()->heap()->InFromSpace(object));
557 // We use the first word (where the map pointer usually is) of a heap
567 DCHECK(object->GetIsolate()->heap()->InFromSpace(*p));
581 bool Heap::CollectGarbage(AllocationSpace space, const char* gc_reason,
589 Isolate* Heap::isolate() {
592 reinterpret_cast<size_t>(reinterpret_cast<Isolate*>(4)->heap()) + 4);
605 DCHECK(__object__ != (ISOLATE)->heap()->exception()); \
614 (ISOLATE)->heap()->CollectGarbage(__allocation__.RetrySpace(), \
619 (ISOLATE)->heap()->CollectAllAvailableGarbage("last resort gc"); \
626 v8::internal::Heap::FatalProcessOutOfMemory("CALL_AND_RETRY_LAST", true); \
701 void Heap::ClearInstanceofCache() {
706 Object* Heap::ToBoolean(bool condition) {
711 void Heap::CompletelyClearInstanceofCache() {
718 : heap_(isolate->heap()), daf_(isolate) {
737 isolate->heap()->no_weak_object_verification_scope_depth_++;
743 isolate->heap()->no_weak_object_verification_scope_depth_--;
748 GCCallbacksScope::GCCallbacksScope(Heap* heap) : heap_(heap) {
765 CHECK(object->GetIsolate()->heap()->Contains(object));