Changeset 258952 in webkit
- Timestamp:
- Mar 24, 2020 3:53:03 PM (4 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r258901 r258952 1 2020-03-24 Keith Miller <keith_miller@apple.com> 2 3 Fix isEmpty AssemblyHelpers function and add isNotEmpty 4 https://bugs.webkit.org/show_bug.cgi?id=209507 5 6 Reviewed by Saam Barati. 7 8 This fixes the 32 version of my HasIndexedProperty patch as well 9 as properly names the functions for what they do. 10 11 * dfg/DFGSpeculativeJIT.cpp: 12 (JSC::DFG::SpeculativeJIT::compileHasIndexedProperty): 13 * jit/AssemblyHelpers.h: 14 (JSC::AssemblyHelpers::isEmpty): 15 (JSC::AssemblyHelpers::isNotEmpty): 16 1 17 2020-03-23 Keith Miller <keith_miller@apple.com> 2 18 -
trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp
r258901 r258952 13594 13594 13595 13595 if (mode.isSaneChain()) { 13596 m_jit.is Empty(scratchGPR, resultGPR);13596 m_jit.isNotEmpty(scratchGPR, resultGPR); 13597 13597 break; 13598 13598 } … … 13656 13656 13657 13657 if (mode.isSaneChain()) { 13658 m_jit.is Empty(scratchGPR, resultGPR);13658 m_jit.isNotEmpty(scratchGPR, resultGPR); 13659 13659 break; 13660 13660 } -
trunk/Source/JavaScriptCore/jit/AssemblyHelpers.h
r258901 r258952 965 965 { 966 966 #if USE(JSVALUE64) 967 test64( NonZero, gpr, TrustedImm32(-1), dst);967 test64(Zero, gpr, gpr, dst); 968 968 #else 969 969 compare32(Equal, gpr, TrustedImm32(JSValue::EmptyValueTag), dst); 970 #endif 971 } 972 973 void isNotEmpty(GPRReg gpr, GPRReg dst) 974 { 975 #if USE(JSVALUE64) 976 test64(NonZero, gpr, gpr, dst); 977 #else 978 compare32(NotEqual, gpr, TrustedImm32(JSValue::EmptyValueTag), dst); 970 979 #endif 971 980 }
Note: See TracChangeset
for help on using the changeset viewer.