Changeset 258825 in webkit
- Timestamp:
- Mar 22, 2020 9:57:06 PM (4 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r258824 r258825 1 2020-03-22 Yusuke Suzuki <ysuzuki@apple.com> 2 3 Unreviewed, rename keepAlive to ensureStillAliveHere 4 https://bugs.webkit.org/show_bug.cgi?id=209398 5 6 Based on Geoff and Mark's feedback, renaming keepAlive to ensureStillAliveHere 7 to make the effect of keepAlive clear. 8 9 * ftl/FTLLowerDFGToB3.cpp: 10 (JSC::FTL::DFG::LowerDFGToB3::compileAtomicsReadModifyWrite): 11 (JSC::FTL::DFG::LowerDFGToB3::compileGetByVal): 12 (JSC::FTL::DFG::LowerDFGToB3::compilePutByVal): 13 (JSC::FTL::DFG::LowerDFGToB3::compileArraySlice): 14 (JSC::FTL::DFG::LowerDFGToB3::ensureStillAliveHere): 15 (JSC::FTL::DFG::LowerDFGToB3::keepAlive): Deleted. 16 * heap/HeapCell.cpp: 17 (JSC::ensureStillAliveHere): 18 (JSC::keepAlive): Deleted. 19 * heap/HeapCell.h: 20 (JSC::ensureStillAliveHere): 21 (JSC::HeapCell::use const): 22 (JSC::keepAlive): Deleted. 23 * runtime/JSCJSValue.cpp: 24 (JSC::ensureStillAliveHere): 25 (JSC::keepAlive): Deleted. 26 * runtime/JSCJSValue.h: 27 (JSC::ensureStillAliveHere): 28 (JSC::keepAlive): Deleted. 29 * wasm/js/WebAssemblyModuleRecord.cpp: 30 (JSC::WebAssemblyModuleRecord::link): 31 1 32 2020-03-22 Yusuke Suzuki <ysuzuki@apple.com> 2 33 -
trunk/Source/JavaScriptCore/ftl/FTLLowerDFGToB3.cpp
r258603 r258825 3841 3841 3842 3842 // We have to keep base alive since that keeps storage alive. 3843 keepAlive(lowCell(baseEdge));3843 ensureStillAliveHere(lowCell(baseEdge)); 3844 3844 setIntTypedArrayLoadResult(result, type); 3845 3845 } … … 4727 4727 4728 4728 // We have to keep base alive since that keeps storage alive. 4729 keepAlive(base);4729 ensureStillAliveHere(base); 4730 4730 setDouble(result); 4731 4731 return; … … 5095 5095 5096 5096 // We have to keep base alive since that keeps storage alive. 5097 keepAlive(base);5097 ensureStillAliveHere(base); 5098 5098 return; 5099 5099 } … … 5610 5610 5611 5611 // Keep the sourceArray alive at least until after anything that can GC. 5612 keepAlive(sourceArray);5612 ensureStillAliveHere(sourceArray); 5613 5613 5614 5614 LBasicBlock loop = m_out.newBlock(); … … 18345 18345 } 18346 18346 18347 void keepAlive(LValue value)18347 void ensureStillAliveHere(LValue value) 18348 18348 { 18349 18349 PatchpointValue* patchpoint = m_out.patchpoint(Void); -
trunk/Source/JavaScriptCore/heap/HeapCell.cpp
r258824 r258825 45 45 #if !COMPILER(GCC_COMPATIBLE) 46 46 // This makes the argument opaque from the compiler. 47 NEVER_INLINE void keepAlive(const void*)47 NEVER_INLINE void ensureStillAliveHere(const void*) 48 48 { 49 49 } -
trunk/Source/JavaScriptCore/heap/HeapCell.h
r253074 r258825 39 39 40 40 #if COMPILER(GCC_COMPATIBLE) 41 ALWAYS_INLINE void keepAlive(const void* pointer)41 ALWAYS_INLINE void ensureStillAliveHere(const void* pointer) 42 42 { 43 43 asm volatile ("" : : "r"(pointer) : "memory"); 44 44 } 45 45 #else 46 JS_EXPORT_PRIVATE void keepAlive(const void*);46 JS_EXPORT_PRIVATE void ensureStillAliveHere(const void*); 47 47 #endif 48 48 … … 96 96 ALWAYS_INLINE void use() const 97 97 { 98 keepAlive(this);98 ensureStillAliveHere(this); 99 99 } 100 100 }; -
trunk/Source/JavaScriptCore/runtime/JSCJSValue.cpp
r258824 r258825 430 430 #if !COMPILER(GCC_COMPATIBLE) 431 431 // This makes the argument opaque from the compiler. 432 NEVER_INLINE void keepAlive(JSValue)432 NEVER_INLINE void ensureStillAliveHere(JSValue) 433 433 { 434 434 } -
trunk/Source/JavaScriptCore/runtime/JSCJSValue.h
r258824 r258825 639 639 640 640 #if COMPILER(GCC_COMPATIBLE) 641 ALWAYS_INLINE void keepAlive(JSValue value)641 ALWAYS_INLINE void ensureStillAliveHere(JSValue value) 642 642 { 643 643 #if USE(JSVALUE64) … … 648 648 } 649 649 #else 650 JS_EXPORT_PRIVATE void keepAlive(JSValue);650 JS_EXPORT_PRIVATE void ensureStillAliveHere(JSValue); 651 651 #endif 652 652 -
trunk/Source/JavaScriptCore/wasm/js/WebAssemblyModuleRecord.cpp
r253121 r258825 429 429 scope.assertNoException(); 430 430 m_instance->linkGlobal(vm, globalIndex, globalValue); 431 keepAlive(bitwise_cast<void*>(initialBits)); // Ensure this is kept alive while creating JSWebAssemblyGlobal.431 ensureStillAliveHere(bitwise_cast<void*>(initialBits)); // Ensure this is kept alive while creating JSWebAssemblyGlobal. 432 432 break; 433 433 }
Note: See TracChangeset
for help on using the changeset viewer.