Changeset 267221 in webkit
- Timestamp:
- Sep 17, 2020, 7:06:41 PM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r267219 r267221 1 2020-09-17 Mark Lam <mark.lam@apple.com> 2 3 Use OS_CONSTANT(EFFECTIVE_ADDRESS_WIDTH) in speculationFromCell()'s isSanePointer(). 4 https://bugs.webkit.org/show_bug.cgi?id=216638 5 6 Reviewed by Saam Barati. 7 8 We should be using OS_CONSTANT(EFFECTIVE_ADDRESS_WIDTH) instead of assuming the 9 width of the pointer address bits. 10 11 * bytecode/SpeculatedType.cpp: 12 (JSC::isSanePointer): 13 1 14 2020-09-17 Devin Rousso <drousso@apple.com> 2 15 -
trunk/Source/JavaScriptCore/bytecode/SpeculatedType.cpp
r267192 r267221 554 554 #if CPU(ADDRESS64) 555 555 uintptr_t pointerAsInt = bitwise_cast<uintptr_t>(pointer); 556 uintptr_t canonicalPointerBits = pointerAsInt << 16;557 uintptr_t nonCanonicalPointerBits = pointerAsInt >> 48;556 uintptr_t canonicalPointerBits = pointerAsInt << (64 - OS_CONSTANT(EFFECTIVE_ADDRESS_WIDTH)); 557 uintptr_t nonCanonicalPointerBits = pointerAsInt >> OS_CONSTANT(EFFECTIVE_ADDRESS_WIDTH); 558 558 return !nonCanonicalPointerBits && canonicalPointerBits; 559 559 #else
Note:
See TracChangeset
for help on using the changeset viewer.