Changeset 247801 in webkit


Ignore:
Timestamp:
Jul 24, 2019 5:10:51 PM (5 years ago)
Author:
mark.lam@apple.com
Message:

Remove some unused code.
https://bugs.webkit.org/show_bug.cgi?id=200101

Reviewed by Yusuke Suzuki.

  • heap/MarkedBlock.cpp:

(JSC::MarkedBlock::Handle::zap): Deleted.

  • heap/MarkedBlock.h:
  • heap/SlotVisitor.cpp:

(JSC::SlotVisitor::appendToMutatorMarkStack): Deleted.

  • heap/SlotVisitor.h:
Location:
trunk/Source/JavaScriptCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r247799 r247801  
     12019-07-24  Mark Lam  <mark.lam@apple.com>
     2
     3        Remove some unused code.
     4        https://bugs.webkit.org/show_bug.cgi?id=200101
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        * heap/MarkedBlock.cpp:
     9        (JSC::MarkedBlock::Handle::zap): Deleted.
     10        * heap/MarkedBlock.h:
     11        * heap/SlotVisitor.cpp:
     12        (JSC::SlotVisitor::appendToMutatorMarkStack): Deleted.
     13        * heap/SlotVisitor.h:
     14
    1152019-07-24  Mark Lam  <mark.lam@apple.com>
    216
  • trunk/Source/JavaScriptCore/heap/MarkedBlock.cpp

    r244939 r247801  
    11/*
    2  * Copyright (C) 2011-2018 Apple Inc. All rights reserved.
     2 * Copyright (C) 2011-2019 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    204204    // freelist, in which case the block will still be Marked!
    205205    sweep(&freeList);
    206 }
    207 
    208 void MarkedBlock::Handle::zap(const FreeList& freeList)
    209 {
    210     freeList.forEach(
    211         [&] (HeapCell* cell) {
    212             if (m_attributes.destruction == NeedsDestruction)
    213                 cell->zap();
    214         });
    215206}
    216207
  • trunk/Source/JavaScriptCore/heap/MarkedBlock.h

    r244506 r247801  
    22 *  Copyright (C) 1999-2000 Harri Porten (porten@kde.org)
    33 *  Copyright (C) 2001 Peter Kelly (pmk@post.com)
    4  *  Copyright (C) 2003-2018 Apple Inc. All rights reserved.
     4 *  Copyright (C) 2003-2019 Apple Inc. All rights reserved.
    55 *
    66 *  This library is free software; you can redistribute it and/or
     
    146146       
    147147        void unsweepWithNoNewlyAllocated();
    148        
    149         void zap(const FreeList&);
    150148       
    151149        void shrink();
  • trunk/Source/JavaScriptCore/heap/SlotVisitor.cpp

    r243467 r247801  
    297297}
    298298
    299 void SlotVisitor::appendToMutatorMarkStack(const JSCell* cell)
    300 {
    301     m_mutatorStack.append(cell);
    302 }
    303 
    304299void SlotVisitor::markAuxiliary(const void* base)
    305300{
  • trunk/Source/JavaScriptCore/heap/SlotVisitor.h

    r245808 r247801  
    11/*
    2  * Copyright (C) 2011-2018 Apple Inc. All rights reserved.
     2 * Copyright (C) 2011-2019 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    212212    void appendToMarkStack(ContainerType&, JSCell*);
    213213   
    214     void appendToMutatorMarkStack(const JSCell*);
    215    
    216214    void noteLiveAuxiliaryCell(HeapCell*);
    217215   
Note: See TracChangeset for help on using the changeset viewer.