Ignore:
Timestamp:
Mar 22, 2020, 9:57:06 PM (5 years ago)
Author:
[email protected]
Message:

Unreviewed, rename keepAlive to ensureStillAliveHere
https://bugs.webkit.org/show_bug.cgi?id=209398

Based on Geoff and Mark's feedback, renaming keepAlive to ensureStillAliveHere
to make the effect of keepAlive clear.

  • ftl/FTLLowerDFGToB3.cpp:

(JSC::FTL::DFG::LowerDFGToB3::compileAtomicsReadModifyWrite):
(JSC::FTL::DFG::LowerDFGToB3::compileGetByVal):
(JSC::FTL::DFG::LowerDFGToB3::compilePutByVal):
(JSC::FTL::DFG::LowerDFGToB3::compileArraySlice):
(JSC::FTL::DFG::LowerDFGToB3::ensureStillAliveHere):
(JSC::FTL::DFG::LowerDFGToB3::keepAlive): Deleted.

  • heap/HeapCell.cpp:

(JSC::ensureStillAliveHere):
(JSC::keepAlive): Deleted.

  • heap/HeapCell.h:

(JSC::ensureStillAliveHere):
(JSC::HeapCell::use const):
(JSC::keepAlive): Deleted.

  • runtime/JSCJSValue.cpp:

(JSC::ensureStillAliveHere):
(JSC::keepAlive): Deleted.

  • runtime/JSCJSValue.h:

(JSC::ensureStillAliveHere):
(JSC::keepAlive): Deleted.

  • wasm/js/WebAssemblyModuleRecord.cpp:

(JSC::WebAssemblyModuleRecord::link):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/heap/HeapCell.h

    r253074 r258825  
    3939
    4040#if COMPILER(GCC_COMPATIBLE)
    41 ALWAYS_INLINE void keepAlive(const void* pointer)
     41ALWAYS_INLINE void ensureStillAliveHere(const void* pointer)
    4242{
    4343    asm volatile ("" : : "r"(pointer) : "memory");
    4444}
    4545#else
    46 JS_EXPORT_PRIVATE void keepAlive(const void*);
     46JS_EXPORT_PRIVATE void ensureStillAliveHere(const void*);
    4747#endif
    4848
     
    9696    ALWAYS_INLINE void use() const
    9797    {
    98         keepAlive(this);
     98        ensureStillAliveHere(this);
    9999    }
    100100};
Note: See TracChangeset for help on using the changeset viewer.