Home | History | Annotate | Download | only in src

Lines Matching refs:ISOLATE

32 #include "isolate.h"
579 PrintPID("%8.0f ms: ", isolate()->time_millis_since_init());
582 "isolate=0x%08" V8PRIxPTR ".\n",
586 reinterpret_cast<intptr_t>(isolate()));
593 Isolate* Heap::isolate() {
594 return reinterpret_cast<Isolate*>(reinterpret_cast<intptr_t>(this) -
595 reinterpret_cast<size_t>(reinterpret_cast<Isolate*>(4)->heap()) + 4);
600 #define GC_GREEDY_CHECK(ISOLATE) \
601 if (FLAG_gc_greedy) (ISOLATE)->heap()->GarbageCollectionGreedyCheck()
603 #define GC_GREEDY_CHECK(ISOLATE) { }
613 #define CALL_AND_RETRY(ISOLATE, FUNCTION_CALL, RETURN_VALUE, RETURN_EMPTY, OOM)\
615 GC_GREEDY_CHECK(ISOLATE); \
623 (ISOLATE)->heap()->CollectGarbage(Failure::cast(__maybe_object__)-> \
632 (ISOLATE)->counters()->gc_last_resort_from_handles()->Increment(); \
633 (ISOLATE)->heap()->CollectAllAvailableGarbage("last resort gc"); \
650 ISOLATE, FUNCTION_CALL, RETURN_VALUE, RETURN_EMPTY) \
652 ISOLATE, \
658 #define CALL_HEAP_FUNCTION(ISOLATE, FUNCTION_CALL, TYPE) \
659 CALL_AND_RETRY_OR_DIE(ISOLATE, \
661 return Handle<TYPE>(TYPE::cast(__object__), ISOLATE), \
665 #define CALL_HEAP_FUNCTION_VOID(ISOLATE, FUNCTION_CALL) \
666 CALL_AND_RETRY_OR_DIE(ISOLATE, FUNCTION_CALL, return, return)
669 #define CALL_HEAP_FUNCTION_PASS_EXCEPTION(ISOLATE, FUNCTION_CALL) \
670 CALL_AND_RETRY(ISOLATE, \
818 Isolate* isolate = Isolate::Current();
819 ASSERT(isolate->heap()->always_allocate_scope_depth_ == 0);
820 isolate->heap()->always_allocate_scope_depth_++;
825 Isolate* isolate = Isolate::Current();
826 isolate->heap()->always_allocate_scope_depth_--;
827 ASSERT(isolate->heap()->always_allocate_scope_depth_ == 0);
833 Isolate* isolate = Isolate::Current();
834 isolate->heap()->no_weak_object_verification_scope_depth_++;
839 Isolate* isolate = Isolate::Current();
840 isolate->heap()->no_weak_object_verification_scope_depth_--;
863 Isolate* isolate = Isolate::Current();
864 old_state_ = isolate->heap()->disallow_allocation_failure_;
865 isolate->heap()->disallow_allocation_failure_ = true;
872 Isolate* isolate = Isolate::Current();
873 isolate->heap()->disallow_allocation_failure_ = old_state_;