Changeset 246792 in webkit
- Timestamp:
- Jun 25, 2019 9:08:27 AM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r246780 r246792 1 2019-06-25 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 REGRESSION(r245586): static assertion failed: Match result and EncodedMatchResult should be the same size 4 https://bugs.webkit.org/show_bug.cgi?id=198518 5 6 Reviewed by Keith Miller. 7 8 r245586 made some bad assumptions about the size of size_t, which we can solve using the 9 CPU(ADDRESS32) guard that I didn't know about. 10 11 This solution was developed by Mark Lam and Keith Miller. I'm just preparing the patch. 12 13 * runtime/MatchResult.h: 14 1 15 2019-06-24 Commit Queue <commit-queue@webkit.org> 2 16 -
trunk/Source/JavaScriptCore/runtime/MatchResult.h
r245586 r246792 32 32 33 33 struct MatchResult; 34 #if CPU(ARM64) || CPU(X86_64) 34 #if CPU(ADDRESS32) 35 using EncodedMatchResult = uint64_t; 36 #else 35 37 using EncodedMatchResult = MatchResult; 36 #else37 using EncodedMatchResult = uint64_t;38 38 #endif 39 39 … … 51 51 } 52 52 53 #if !(CPU(ARM64) || CPU(X86_64))53 #if CPU(ADDRESS32) 54 54 ALWAYS_INLINE MatchResult(EncodedMatchResult match) 55 55 : start(bitwise_cast<MatchResult>(match).start) … … 80 80 }; 81 81 82 static_assert(sizeof(EncodedMatchResult) == 2 * sizeof(size_t), "https://bugs.webkit.org/show_bug.cgi?id=198518#c11"); 82 83 static_assert(sizeof(MatchResult) == sizeof(EncodedMatchResult), "Match result and EncodedMatchResult should be the same size"); 83 84
Note: See TracChangeset
for help on using the changeset viewer.