Changeset 226725 in webkit for trunk/Source/JavaScriptCore/heap/CodeBlockSet.h
- Timestamp:
- Jan 10, 2018, 11:41:12 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/CodeBlockSet.h
r226667 r226725 50 50 ~CodeBlockSet(); 51 51 52 void lastChanceToFinalize(VM&); 53 54 // Add a CodeBlock. This is only called by CodeBlock constructors. 55 void add(CodeBlock*); 56 57 // Clear all mark bits for all CodeBlocks. 58 void clearMarksForFullCollection(); 59 60 // Mark a pointer that may be a CodeBlock that belongs to the set of DFG 61 // blocks. This is defined in CodeBlock.h. 62 private: 52 63 void mark(const AbstractLocker&, CodeBlock* candidateCodeBlock); 64 public: 65 void mark(const AbstractLocker&, void* candidateCodeBlock); 66 67 // Delete all code blocks that are only referenced by this set (i.e. owned 68 // by this set), and that have not been marked. 69 void deleteUnmarkedAndUnreferenced(VM&, CollectionScope); 53 70 54 71 void clearCurrentlyExecuting(); … … 62 79 template<typename Functor> void iterate(const Functor&); 63 80 template<typename Functor> void iterate(const AbstractLocker&, const Functor&); 64 65 template<typename Functor> void iterateViaSubspaces(VM&, const Functor&);66 81 67 82 template<typename Functor> void iterateCurrentlyExecuting(const Functor&); 68 83 69 84 void dump(PrintStream&) const; 70 71 void add(CodeBlock*);72 void remove(CodeBlock*);73 85 74 86 private: 75 HashSet<CodeBlock*> m_codeBlocks; 87 void promoteYoungCodeBlocks(const AbstractLocker&); 88 89 HashSet<CodeBlock*> m_oldCodeBlocks; 90 HashSet<CodeBlock*> m_newCodeBlocks; 76 91 HashSet<CodeBlock*> m_currentlyExecuting; 77 92 Lock m_lock;
Note:
See TracChangeset
for help on using the changeset viewer.