Home | History | Annotate | Download | only in src

Lines Matching full:heap

31 #include "heap.h"
72 SemiSpace::AssertValidRange(target->GetIsolate()->heap()->new_space()->top(),
85 MaybeObject* Heap::AllocateStringFromUtf8(Vector<const char> str,
102 bool inline Heap::IsOneByte(Vector<const char> str, int chars) {
110 bool inline Heap::IsOneByte(String* str, int chars) {
115 MaybeObject* Heap::AllocateInternalizedStringFromUtf8(
126 MaybeObject* Heap::AllocateInternalizedStringImpl(
135 MaybeObject* Heap::AllocateOneByteInternalizedString(Vector<const uint8_t> str,
168 MaybeObject* Heap::AllocateTwoByteInternalizedString(Vector<const uc16> str,
199 MaybeObject* Heap::CopyFixedArray(FixedArray* src) {
204 MaybeObject* Heap::CopyFixedDoubleArray(FixedDoubleArray* src) {
209 MaybeObject* Heap::CopyConstantPoolArray(ConstantPoolArray* src) {
214 MaybeObject* Heap::AllocateRaw(int size_in_bytes,
224 Heap::allocation_timeout_-- <= 0) {
269 MaybeObject* Heap::NumberFromInt32(
277 MaybeObject* Heap::NumberFromUint32(
288 void Heap::FinalizeExternalString(String* string) {
304 bool Heap::InNewSpace(Object* object) {
313 bool Heap::InNewSpace(Address address) {
318 bool Heap::InFromSpace(Object* object) {
323 bool Heap::InToSpace(Object* object) {
328 bool Heap::InOldPointerSpace(Address address) {
333 bool Heap::InOldPointerSpace(Object* object) {
338 bool Heap::InOldDataSpace(Address address) {
343 bool Heap::InOldDataSpace(Object* object) {
348 bool Heap::OldGenerationAllocationLimitReached() {
354 bool Heap::ShouldBePromoted(Address old_address, int object_size) {
367 void Heap::RecordWrite(Address address, int offset) {
372 void Heap::RecordWrites(Address address, int start, int len) {
381 OldSpace* Heap::TargetSpace(HeapObject* object) {
390 AllocationSpace Heap::TargetSpaceId(InstanceType type) {
391 // Heap numbers and sequential strings are promoted to old data space, all
394 // know that object has the heap object tag.
408 // Only the latter two contain non-map-word pointers to heap objects.
418 bool Heap::AllowedToBeMigrated(HeapObject* object, AllocationSpace dst) {
455 void Heap::CopyBlock(Address dst, Address src, int byte_size) {
462 void Heap::MoveBlock(Address dst, Address src, int byte_size) {
481 void Heap::ScavengePointer(HeapObject** p) {
486 void Heap::UpdateAllocationSiteFeedback(HeapObject* object) {
498 Heap::ScavengeObject(HeapObject** p, HeapObject* object) {
499 ASSERT(object->GetIsolate()->heap()->InFromSpace(object));
501 // We use the first word (where the map pointer usually is) of a heap
511 ASSERT(object->GetIsolate()->heap()->InFromSpace(*p));
525 bool Heap::CollectGarbage(AllocationSpace space, const char* gc_reason) {
532 MaybeObject* Heap::PrepareForCompare(String* str) {
551 int64_t Heap::AdjustAmountOfExternalAllocatedMemory(
593 Isolate* Heap::isolate() {
595 reinterpret_cast<size_t>(reinterpret_cast<Isolate*>(4)->heap()) + 4);
601 if (FLAG_gc_greedy) (ISOLATE)->heap()->GarbageCollectionGreedyCheck()
623 (ISOLATE)->heap()->CollectGarbage(Failure::cast(__maybe_object__)-> \
633 (ISOLATE)->heap()->CollectAllAvailableGarbage("last resort gc"); \
734 void Heap::ClearInstanceofCache() {
739 Object* Heap::ToBoolean(bool condition) {
744 void Heap::CompletelyClearInstanceofCache() {
803 isolate_->heap()->AllocateHeapNumber(answer);
819 ASSERT(isolate->heap()->always_allocate_scope_depth_ == 0);
820 isolate->heap()->always_allocate_scope_depth_++;
826 isolate->heap()->always_allocate_scope_depth_--;
827 ASSERT(isolate->heap()->always_allocate_scope_depth_ == 0);
834 isolate->heap()->no_weak_object_verification_scope_depth_++;
840 isolate->heap()->no_weak_object_verification_scope_depth_--;
849 CHECK(object->GetIsolate()->heap()->Contains(object));
864 old_state_ = isolate->heap()->disallow_allocation_failure_;
865 isolate->heap()->disallow_allocation_failure_ = true;
873 isolate->heap()->disallow_allocation_failure_ = old_state_;