Changeset 272825 in webkit
- Timestamp:
- Feb 12, 2021, 5:27:47 PM (4 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r272823 r272825 1 2021-02-12 Mark Lam <mark.lam@apple.com> 2 3 Remove some unused methods in MarkedBlock and PreciseAllocation. 4 https://bugs.webkit.org/show_bug.cgi?id=221864 5 6 Reviewed by Yusuke Suzuki. 7 8 * heap/MarkedBlock.h: 9 (JSC::MarkedBlock::Handle::visitWeakSet): Deleted. 10 (JSC::MarkedBlock::Handle::reapWeakSet): Deleted. 11 * heap/PreciseAllocation.cpp: 12 (JSC::PreciseAllocation::shrink): Deleted. 13 (JSC::PreciseAllocation::visitWeakSet): Deleted. 14 (JSC::PreciseAllocation::reapWeakSet): Deleted. 15 * heap/PreciseAllocation.h: 16 1 17 2021-02-12 Michael Saboff <msaboff@apple.com> 2 18 -
trunk/Source/JavaScriptCore/heap/MarkedBlock.h
r267820 r272825 2 2 * Copyright (C) 1999-2000 Harri Porten (porten@kde.org) 3 3 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 4 * Copyright (C) 2003-20 19Apple Inc. All rights reserved.4 * Copyright (C) 2003-2021 Apple Inc. All rights reserved. 5 5 * 6 6 * This library is free software; you can redistribute it and/or … … 151 151 152 152 void shrink(); 153 154 void visitWeakSet(SlotVisitor&);155 void reapWeakSet();156 153 157 154 // While allocating from a free list, MarkedBlock temporarily has bogus … … 499 496 } 500 497 501 inline void MarkedBlock::Handle::visitWeakSet(SlotVisitor& visitor)502 {503 return m_weakSet.visit(visitor);504 }505 506 inline void MarkedBlock::Handle::reapWeakSet()507 {508 m_weakSet.reap();509 }510 511 498 inline size_t MarkedBlock::Handle::cellSize() 512 499 { -
trunk/Source/JavaScriptCore/heap/PreciseAllocation.cpp
r267304 r272825 1 1 /* 2 * Copyright (C) 2016-202 0Apple Inc. All rights reserved.2 * Copyright (C) 2016-2021 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 196 196 } 197 197 198 void PreciseAllocation::shrink()199 {200 m_weakSet.shrink();201 }202 203 void PreciseAllocation::visitWeakSet(SlotVisitor& visitor)204 {205 m_weakSet.visit(visitor);206 }207 208 void PreciseAllocation::reapWeakSet()209 {210 return m_weakSet.reap();211 }212 213 198 void PreciseAllocation::flip() 214 199 { -
trunk/Source/JavaScriptCore/heap/PreciseAllocation.h
r267820 r272825 1 1 /* 2 * Copyright (C) 2016-20 19Apple Inc. All rights reserved.2 * Copyright (C) 2016-2021 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 80 80 unsigned indexInSpace() { return m_indexInSpace; } 81 81 void setIndexInSpace(unsigned indexInSpace) { m_indexInSpace = indexInSpace; } 82 83 void shrink();84 85 void visitWeakSet(SlotVisitor&);86 void reapWeakSet();87 82 88 83 void clearNewlyAllocated() { m_isNewlyAllocated = false; }
Note:
See TracChangeset
for help on using the changeset viewer.