Changeset 280643 in webkit
- Timestamp:
- Aug 4, 2021, 11:02:20 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
style/RuleFeature.h (modified) (3 diffs)
-
style/RuleSet.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r280638 r280643 1 2021-08-04 Antti Koivisto <antti@apple.com> 2 3 Use fast malloc for RuleData vectors 4 https://bugs.webkit.org/show_bug.cgi?id=228770 5 6 Reviewed by Chris Dumez. 7 8 Revert the change that enabled probabilistic guard malloc as it is not needed anymore. 9 10 * style/RuleFeature.h: 11 * style/RuleSet.h: 12 1 13 2021-08-04 Antti Koivisto <antti@apple.com> 2 14 -
trunk/Source/WebCore/style/RuleFeature.h
r279365 r280643 26 26 #include <wtf/HashMap.h> 27 27 #include <wtf/HashSet.h> 28 #include <wtf/SystemMalloc.h>29 28 #include <wtf/text/AtomString.h> 30 29 #include <wtf/text/AtomStringHash.h> … … 40 39 enum class MatchElement : uint8_t { Subject, Parent, Ancestor, DirectSibling, IndirectSibling, AnySibling, ParentSibling, AncestorSibling, Host }; 41 40 constexpr unsigned matchElementCount = static_cast<unsigned>(MatchElement::Host) + 1; 42 43 #if HAVE(PROBABILISTIC_GUARD_MALLOC)44 // Help finding rdar://7745090045 using RuleMalloc = ProbabilisticGuardMalloc;46 #else47 using RuleMalloc = FastMalloc;48 #endif49 41 50 42 struct RuleFeature { … … 67 59 }; 68 60 69 using RuleFeatureVector = Vector<RuleFeature , 0, CrashOnOverflow, 16, RuleMalloc>;61 using RuleFeatureVector = Vector<RuleFeature>; 70 62 71 63 struct RuleFeatureSet { -
trunk/Source/WebCore/style/RuleSet.h
r280638 r280643 68 68 ~RuleSet(); 69 69 70 typedef Vector<RuleData, 1 , CrashOnOverflow, 16, RuleMalloc> RuleDataVector;70 typedef Vector<RuleData, 1> RuleDataVector; 71 71 typedef HashMap<AtomString, std::unique_ptr<RuleDataVector>> AtomRuleMap; 72 72
Note:
See TracChangeset
for help on using the changeset viewer.