Changeset 190589 in webkit for trunk/Source/JavaScriptCore/heap/CodeBlockSet.h
- Timestamp:
- Oct 5, 2015, 4:31:53 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/heap/CodeBlockSet.h
r190546 r190589 52 52 CodeBlockSet(); 53 53 ~CodeBlockSet(); 54 55 void lastChanceToFinalize(); 54 56 55 57 // Add a CodeBlock. This is only called by CodeBlock constructors. 56 void add( PassRefPtr<CodeBlock>);58 void add(CodeBlock*); 57 59 58 // Clear mark bits for certain CodeBlocks depending on the type of collection.59 void clearMarksForEdenCollection(const Vector<const JSCell*>&);60 61 60 // Clear all mark bits for all CodeBlocks. 62 61 void clearMarksForFullCollection(); … … 73 72 void remove(CodeBlock*); 74 73 75 // Trace all marked code blocks. The CodeBlock is free to make use of76 // mayBeExecuting.77 void traceMarked(SlotVisitor&);78 79 74 // Add all currently executing CodeBlocks to the remembered set to be 80 75 // re-scanned during the next collection. 81 void rememberCurrentlyExecutingCodeBlocks(Heap*);76 void writeBarrierCurrentlyExecutingCodeBlocks(Heap*); 82 77 83 78 // Visits each CodeBlock in the heap until the visitor function returns true … … 102 97 103 98 private: 104 void clearMarksForCodeBlocksInRememberedExecutables(const Vector<const JSCell*>&);105 99 void promoteYoungCodeBlocks(); 106 100 107 // This is not a set of RefPtr<CodeBlock> because we need to be able to find108 // arbitrary bogus pointers. I could have written a thingy that had peek types109 // and all, but that seemed like overkill.110 101 HashSet<CodeBlock*> m_oldCodeBlocks; 111 102 HashSet<CodeBlock*> m_newCodeBlocks; 112 HashSet<RefPtr<CodeBlock>> m_currentlyExecuting; 113 HashSet<RefPtr<CodeBlock>> m_remembered; 103 HashSet<CodeBlock*> m_currentlyExecuting; 114 104 }; 115 105
Note:
See TracChangeset
for help on using the changeset viewer.