Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Side by Side Diff: Source/heap/Handle.h

Issue 178663004: Oilpan: move WorkerGlobalScope to oilpan's heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/heap/Heap.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 #define PassOwnPtrWillBeRawPtr WTF::RawPtr 626 #define PassOwnPtrWillBeRawPtr WTF::RawPtr
627 #define NoBaseWillBeGarbageCollected WebCore::GarbageCollected 627 #define NoBaseWillBeGarbageCollected WebCore::GarbageCollected
628 #define NoBaseWillBeGarbageCollectedFinalized WebCore::GarbageCollectedFinalized 628 #define NoBaseWillBeGarbageCollectedFinalized WebCore::GarbageCollectedFinalized
629 #define WillBeHeapHashMap WebCore::HeapHashMap 629 #define WillBeHeapHashMap WebCore::HeapHashMap
630 #define WillBePersistentHeapHashMap WebCore::PersistentHeapHashMap 630 #define WillBePersistentHeapHashMap WebCore::PersistentHeapHashMap
631 #define WillBeHeapHashSet WebCore::HeapHashSet 631 #define WillBeHeapHashSet WebCore::HeapHashSet
632 #define WillBePersistentHeapHashSet WebCore::PersistentHeapHashSet 632 #define WillBePersistentHeapHashSet WebCore::PersistentHeapHashSet
633 #define WillBeHeapVector WebCore::HeapVector 633 #define WillBeHeapVector WebCore::HeapVector
634 #define WillBePersistentHeapVector WebCore::PersistentHeapVector 634 #define WillBePersistentHeapVector WebCore::PersistentHeapVector
635 #define WillBeGarbageCollectedMixin WebCore::GarbageCollectedMixin 635 #define WillBeGarbageCollectedMixin WebCore::GarbageCollectedMixin
636 #define WillBeHeapSupplement WebCore::HeapSupplement
637 #define WillBeHeapSupplementable WebCore::HeapSupplementable
636 638
637 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeNoop(T* ptr) 639 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeNoop(T* ptr)
638 { 640 {
639 static const bool notRefCountedGarbageCollected = !WTF::IsSubclassOfTemplate <T, RefCountedGarbageCollected>::value; 641 static const bool notRefCountedGarbageCollected = !WTF::IsSubclassOfTemplate <T, RefCountedGarbageCollected>::value;
640 static const bool notRefCounted = !WTF::IsSubclassOfTemplate<T, RefCounted>: :value; 642 static const bool notRefCounted = !WTF::IsSubclassOfTemplate<T, RefCounted>: :value;
641 COMPILE_ASSERT(notRefCountedGarbageCollected, useAdoptRefCountedWillBeRefCou ntedGarbageCollected); 643 COMPILE_ASSERT(notRefCountedGarbageCollected, useAdoptRefCountedWillBeRefCou ntedGarbageCollected);
642 COMPILE_ASSERT(notRefCounted, youMustAdopt); 644 COMPILE_ASSERT(notRefCounted, youMustAdopt);
643 return PassRefPtrWillBeRawPtr<T>(ptr); 645 return PassRefPtrWillBeRawPtr<T>(ptr);
644 } 646 }
645 647
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 #define PassOwnPtrWillBeRawPtr WTF::PassOwnPtr 687 #define PassOwnPtrWillBeRawPtr WTF::PassOwnPtr
686 #define NoBaseWillBeGarbageCollected WebCore::DummyBase 688 #define NoBaseWillBeGarbageCollected WebCore::DummyBase
687 #define NoBaseWillBeGarbageCollectedFinalized WebCore::DummyBase 689 #define NoBaseWillBeGarbageCollectedFinalized WebCore::DummyBase
688 #define WillBeHeapHashMap WTF::HashMap 690 #define WillBeHeapHashMap WTF::HashMap
689 #define WillBePersistentHeapHashMap WTF::HashMap 691 #define WillBePersistentHeapHashMap WTF::HashMap
690 #define WillBeHeapHashSet WTF::HashSet 692 #define WillBeHeapHashSet WTF::HashSet
691 #define WillBePersistentHeapHashSet WTF::HashSet 693 #define WillBePersistentHeapHashSet WTF::HashSet
692 #define WillBeHeapVector WTF::Vector 694 #define WillBeHeapVector WTF::Vector
693 #define WillBePersistentHeapVector WTF::Vector 695 #define WillBePersistentHeapVector WTF::Vector
694 #define WillBeGarbageCollectedMixin WebCore::DummyBase<void> 696 #define WillBeGarbageCollectedMixin WebCore::DummyBase<void>
697 #define WillBeHeapSupplement WebCore::Supplement
698 #define WillBeHeapSupplementable WebCore::Supplementable
695 699
696 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeNoop(T* ptr) { retu rn adoptRef(ptr); } 700 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeNoop(T* ptr) { retu rn adoptRef(ptr); }
697 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeRefCountedGarbageCo llected(T* ptr) { return adoptRef(ptr); } 701 template<typename T> PassRefPtrWillBeRawPtr<T> adoptRefWillBeRefCountedGarbageCo llected(T* ptr) { return adoptRef(ptr); }
698 template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeNoop(T* ptr) { retu rn adoptPtr(ptr); } 702 template<typename T> PassOwnPtrWillBeRawPtr<T> adoptPtrWillBeNoop(T* ptr) { retu rn adoptPtr(ptr); }
699 703
700 #define WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED WTF_MAKE_FAST_ALLOCATED 704 #define WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED WTF_MAKE_FAST_ALLOCATED
701 705
702 #endif // ENABLE(OILPAN) 706 #endif // ENABLE(OILPAN)
703 707
704 } // namespace WebCore 708 } // namespace WebCore
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 }; 844 };
841 845
842 template<typename T, typename U> 846 template<typename T, typename U>
843 struct NeedsTracing<HashMap<T, U> > { 847 struct NeedsTracing<HashMap<T, U> > {
844 static const bool value = false; 848 static const bool value = false;
845 }; 849 };
846 850
847 } // namespace WTF 851 } // namespace WTF
848 852
849 #endif 853 #endif
OLDNEW
« no previous file with comments | « Source/core/workers/WorkerThread.cpp ('k') | Source/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698