Changeset 230856 in webkit
- Timestamp:
- Apr 20, 2018 2:10:56 PM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r230852 r230856 1 2018-04-20 Daniel Bates <dabates@apple.com> 2 3 Remove code for compilers that did not support NSDMI for aggregates 4 https://bugs.webkit.org/show_bug.cgi?id=184599 5 6 Reviewed by Per Arne Vollan. 7 8 Remove workaround for earlier Visual Studio versions that did not support non-static data 9 member initializers (NSDMI) for aggregates. We have since updated all the build.webkit.org 10 and EWS bots to a newer version that supports this feature. 11 12 * domjit/DOMJITEffect.h: 13 (JSC::DOMJIT::Effect::Effect): Deleted. 14 * runtime/HasOwnPropertyCache.h: 15 (JSC::HasOwnPropertyCache::Entry::Entry): Deleted. 16 * wasm/WasmFormat.h: 17 (JSC::Wasm::WasmToWasmImportableFunction::WasmToWasmImportableFunction): Deleted. 18 1 19 2018-04-20 Mark Lam <mark.lam@apple.com> 2 20 -
trunk/Source/JavaScriptCore/domjit/DOMJITEffect.h
r221213 r230856 31 31 32 32 struct Effect { 33 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)34 constexpr Effect() = default;35 constexpr Effect(HeapRange reads, HeapRange writes)36 : reads { reads }37 , writes { writes }38 {39 }40 constexpr Effect(HeapRange reads, HeapRange writes, HeapRange def)41 : reads { reads }42 , writes { writes }43 , def { def }44 {45 }46 #endif47 33 48 34 constexpr static Effect forWrite(HeapRange writeRange) -
trunk/Source/JavaScriptCore/runtime/HasOwnPropertyCache.h
r221213 r230856 42 42 static ptrdiff_t offsetOfImpl() { return OBJECT_OFFSETOF(Entry, impl); } 43 43 static ptrdiff_t offsetOfResult() { return OBJECT_OFFSETOF(Entry, result); } 44 45 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)46 Entry() = default;47 Entry(RefPtr<UniquedStringImpl>&& impl, StructureID structureID, bool result)48 : impl { WTFMove(impl) }49 , structureID { structureID }50 , result { result }51 {52 }53 54 Entry& operator=(Entry&& other) = default;55 #endif56 44 57 45 RefPtr<UniquedStringImpl> impl; -
trunk/Source/JavaScriptCore/wasm/WasmFormat.h
r230748 r230856 276 276 struct WasmToWasmImportableFunction { 277 277 using LoadLocation = MacroAssemblerCodePtr<WasmEntryPtrTag>*; 278 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)279 WasmToWasmImportableFunction() = default;280 WasmToWasmImportableFunction(SignatureIndex signatureIndex, LoadLocation entrypointLoadLocation)281 : signatureIndex { signatureIndex }282 , entrypointLoadLocation { entrypointLoadLocation }283 {284 }285 #endif286 287 278 static ptrdiff_t offsetOfEntrypointLoadLocation() { return OBJECT_OFFSETOF(WasmToWasmImportableFunction, entrypointLoadLocation); } 288 279 -
trunk/Source/WTF/ChangeLog
r230824 r230856 1 2018-04-20 Daniel Bates <dabates@apple.com> 2 3 Remove code for compilers that did not support NSDMI for aggregates 4 https://bugs.webkit.org/show_bug.cgi?id=184599 5 6 Reviewed by Per Arne Vollan. 7 8 Remove workaround for earlier Visual Studio versions that did not support non-static data 9 member initializers (NSDMI) for aggregates. We have since updated all the build.webkit.org 10 and EWS bots to a newer version that supports this feature. 11 12 * wtf/Compiler.h: 13 1 14 2018-04-19 David Kilzer <ddkilzer@apple.com> 2 15 -
trunk/Source/WTF/wtf/Compiler.h
r230113 r230856 146 146 #endif 147 147 148 /* Non-static data member initializer (NSDMI) for aggregates */ 149 150 #if defined(__cpp_aggregate_nsdmi) && __cpp_aggregate_nsdmi >= 201304 151 #define WTF_COMPILER_SUPPORTS_NSDMI_FOR_AGGREGATES 1 152 #endif 148 /* ASAN_ENABLED and SUPPRESS_ASAN */ 153 149 154 150 #define ASAN_ENABLED COMPILER_HAS_CLANG_FEATURE(address_sanitizer) -
trunk/Source/WebCore/ChangeLog
r230853 r230856 1 2018-04-20 Daniel Bates <dabates@apple.com> 2 3 Remove code for compilers that did not support NSDMI for aggregates 4 https://bugs.webkit.org/show_bug.cgi?id=184599 5 6 Reviewed by Per Arne Vollan. 7 8 Remove workaround for earlier Visual Studio versions that did not support non-static data 9 member initializers (NSDMI) for aggregates. We have since updated all the build.webkit.org 10 and EWS bots to a newer version that supports this feature. 11 12 * Modules/cache/CacheQueryOptions.h: 13 (WebCore::CacheQueryOptions::CacheQueryOptions): Deleted. 14 * dom/Node.h: 15 (WebCore::Node::InsertionType::InsertionType): Deleted. 16 (WebCore::Node::RemovalType::RemovalType): Deleted. 17 * html/canvas/CanvasStyle.h: 18 (WebCore::CanvasStyle::CMYKAColor::CMYKAColor): Deleted. 19 * page/EventHandler.h: 20 (WebCore::EventHandler::DragTargetResponse::DragTargetResponse): Deleted. 21 * page/animation/CSSAnimationController.h: 22 (WebCore::AnimationUpdate::AnimationUpdate): Deleted. 23 * platform/graphics/FontSelectionAlgorithm.h: 24 (WebCore::FontSelectionRequest::tied const): 25 (WebCore::FontSelectionRequest::FontSelectionRequest): Deleted. 26 (WebCore::FontSelectionCapabilities::FontSelectionCapabilities): Deleted. 27 * platform/mediastream/IceCandidate.h: 28 (WebCore::IceCandidate::IceCandidate): Deleted. 29 * platform/text/StringWithDirection.h: 30 (WebCore::StringWithDirection::StringWithDirection): Deleted. 31 * rendering/MarkedText.h: 32 (WebCore::MarkedText::MarkedText): Deleted. 33 * style/StyleUpdate.h: 34 (WebCore::Style::ElementUpdate::ElementUpdate): Deleted. 35 (WebCore::Style::ElementUpdates::ElementUpdates): Deleted. 36 (WebCore::Style::TextUpdate::TextUpdate): Deleted. 37 1 38 2018-04-20 Youenn Fablet <youenn@apple.com> 2 39 -
trunk/Source/WebCore/Modules/cache/CacheQueryOptions.h
r221306 r230856 31 31 32 32 struct CacheQueryOptions { 33 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)34 CacheQueryOptions() = default;35 CacheQueryOptions(bool ignoreSearch, bool ignoreMethod, bool ignoreVary, String&& cacheName)36 : ignoreSearch { ignoreSearch }37 , ignoreMethod { ignoreMethod }38 , ignoreVary { ignoreVary }39 , cacheName { WTFMove(cacheName) }40 {41 }42 #endif43 33 CacheQueryOptions isolatedCopy() const { return { ignoreSearch, ignoreMethod, ignoreVary, cacheName.isolatedCopy() }; } 44 34 -
trunk/Source/WebCore/dom/Node.h
r230229 r230856 441 441 442 442 struct InsertionType { 443 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)444 InsertionType(bool connectedToDocument, bool treeScopeChanged)445 : connectedToDocument(connectedToDocument)446 , treeScopeChanged(treeScopeChanged)447 { }448 #endif449 443 bool connectedToDocument { false }; 450 444 bool treeScopeChanged { false }; … … 456 450 457 451 struct RemovalType { 458 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)459 RemovalType(bool disconnectedFromDocument, bool treeScopeChanged)460 : disconnectedFromDocument(disconnectedFromDocument)461 , treeScopeChanged(treeScopeChanged)462 { }463 #endif464 452 bool disconnectedFromDocument { false }; 465 453 bool treeScopeChanged { false }; -
trunk/Source/WebCore/html/canvas/CanvasStyle.h
r224390 r230856 71 71 72 72 struct CMYKAColor { 73 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)74 CMYKAColor() = default;75 CMYKAColor(Color color, float cyan, float magenta, float yellow, float black, float alpha)76 : color(color), c(cyan), m(magenta), y(yellow), k(black), a(alpha)77 {78 }79 #endif80 81 73 Color color; 82 74 float c { 0 }; -
trunk/Source/WebCore/page/EventHandler.h
r228549 r230856 159 159 #if ENABLE(DRAG_SUPPORT) 160 160 struct DragTargetResponse { 161 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)162 DragTargetResponse() = default;163 DragTargetResponse(bool accept, std::optional<DragOperation> operation)164 : accept(accept)165 , operation(operation)166 {167 }168 #endif169 161 bool accept { false }; 170 162 std::optional<DragOperation> operation; -
trunk/Source/WebCore/page/animation/CSSAnimationController.h
r229174 r230856 44 44 45 45 struct AnimationUpdate { 46 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)47 AnimationUpdate() = default;48 AnimationUpdate(std::unique_ptr<RenderStyle> style, bool stateChanged)49 : style(WTFMove(style))50 , stateChanged(stateChanged)51 { }52 #endif53 46 std::unique_ptr<RenderStyle> style; 54 47 bool stateChanged { false }; -
trunk/Source/WebCore/platform/graphics/FontSelectionAlgorithm.h
r226300 r230856 338 338 return WTF::tie(weight, width, slope); 339 339 } 340 341 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)342 FontSelectionRequest() = default;343 344 constexpr FontSelectionRequest(Value weight, Value width, Value slope)345 : weight(weight)346 , width(width)347 , slope(slope)348 {349 }350 #endif351 340 }; 352 341 … … 386 375 Range width { normalStretchValue() }; 387 376 Range slope { normalItalicValue() }; 388 389 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)390 FontSelectionCapabilities() = default;391 392 constexpr FontSelectionCapabilities(Range weight, Range width, Range slope)393 : weight(weight)394 , width(width)395 , slope(slope)396 {397 }398 #endif399 377 }; 400 378 -
trunk/Source/WebCore/platform/mediastream/IceCandidate.h
r221213 r230856 38 38 39 39 struct IceCandidate { 40 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)41 IceCandidate() = default;42 IceCandidate(String&& type, String&& foundation, unsigned componentId, String&& transport, unsigned long priority, String&& address, unsigned port, String&& tcpType, String&& relatedAddress, unsigned relatedPort)43 : type { WTFMove(type) }44 , foundation { WTFMove(foundation) }45 , componentId { componentId }46 , transport { WTFMove(transport) }47 , priority { priority }48 , address { WTFMove(address) }49 , port { port }50 , tcpType { WTFMove(tcpType) }51 , relatedAddress { WTFMove(relatedAddress) }52 , relatedPort { relatedPort }53 {54 }55 #endif56 57 40 String type; 58 41 String foundation; -
trunk/Source/WebCore/platform/text/StringWithDirection.h
r221921 r230856 47 47 48 48 struct StringWithDirection { 49 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)50 StringWithDirection() = default;51 StringWithDirection(String string, TextDirection direction)52 : string { WTFMove(string) }53 , direction { direction }54 {55 }56 #endif57 49 String string; 58 50 TextDirection direction { LTR }; -
trunk/Source/WebCore/rendering/MarkedText.h
r229079 r230856 48 48 DraggedContent, 49 49 }; 50 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)51 MarkedText() = default;52 MarkedText(unsigned startOffset, unsigned endOffset, Type type, const RenderedDocumentMarker* marker = nullptr)53 : startOffset { startOffset }54 , endOffset { endOffset }55 , type { type }56 , marker { marker }57 {58 }59 #endif60 50 unsigned startOffset; 61 51 unsigned endOffset; -
trunk/Source/WebCore/style/StyleUpdate.h
r226809 r230856 44 44 45 45 struct ElementUpdate { 46 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)47 ElementUpdate() = default;48 ElementUpdate(std::unique_ptr<RenderStyle> style, Change change, bool recompositeLayer)49 : style { WTFMove(style) }50 , change { change }51 , recompositeLayer { recompositeLayer }52 {53 }54 #endif55 46 std::unique_ptr<RenderStyle> style; 56 47 Change change { NoChange }; … … 61 52 62 53 struct ElementUpdates { 63 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)64 ElementUpdates() = default;65 ElementUpdates(ElementUpdate update, DescendantsToResolve descendantsToResolve, std::optional<ElementUpdate> beforePseudoElementUpdate, std::optional<ElementUpdate> afterPseudoElementUpdate)66 : update { WTFMove(update) }67 , descendantsToResolve(descendantsToResolve)68 , beforePseudoElementUpdate { WTFMove(beforePseudoElementUpdate) }69 , afterPseudoElementUpdate { WTFMove(afterPseudoElementUpdate) }70 {71 }72 #endif73 54 ElementUpdate update; 74 55 DescendantsToResolve descendantsToResolve { DescendantsToResolve::None }; … … 78 59 79 60 struct TextUpdate { 80 #if !COMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)81 TextUpdate() = default;82 TextUpdate(unsigned offset, unsigned length, std::optional<std::unique_ptr<RenderStyle>> inheritedDisplayContentsStyle)83 : offset { offset }84 , length { length }85 , inheritedDisplayContentsStyle { WTFMove(inheritedDisplayContentsStyle) }86 {87 }88 #endif89 90 61 unsigned offset { 0 }; 91 62 unsigned length { std::numeric_limits<unsigned>::max() }; -
trunk/Source/bmalloc/ChangeLog
r230824 r230856 1 2018-04-20 Daniel Bates <dabates@apple.com> 2 3 Remove code for compilers that did not support NSDMI for aggregates 4 https://bugs.webkit.org/show_bug.cgi?id=184599 5 6 Reviewed by Per Arne Vollan. 7 8 Remove workaround for earlier Visual Studio versions that did not support non-static data 9 member initializers (NSDMI) for aggregates. We have since updated all the build.webkit.org 10 and EWS bots to a newer version that supports this feature. 11 12 * bmalloc/BPlatform.h: 13 * bmalloc/List.h: 14 (bmalloc::ListNode::ListNode): Deleted. 15 (bmalloc::List::iterator::iterator): Deleted. 16 1 17 2018-04-19 David Kilzer <ddkilzer@apple.com> 2 18 -
trunk/Source/bmalloc/bmalloc/BPlatform.h
r230255 r230856 82 82 #define BCOMPILER_SUPPORTS(FEATURE) (defined BCOMPILER_SUPPORTS_##FEATURE && BCOMPILER_SUPPORTS_##FEATURE) 83 83 84 /* BCOMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES) - compiler supports non-static data member initializers for aggregates */85 #if defined(__cpp_aggregate_nsdmi) && __cpp_aggregate_nsdmi >= 20130486 #define BCOMPILER_SUPPORTS_NSDMI_FOR_AGGREGATES 187 #endif88 89 84 /* ==== Platform adaptation macros: these describe properties of the target environment. ==== */ 90 85 -
trunk/Source/bmalloc/bmalloc/List.h
r221213 r230856 31 31 template<typename T> 32 32 struct ListNode { 33 #if !BCOMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)34 ListNode() = default;35 ListNode(ListNode<T>* prev, ListNode<T>* next)36 : prev { prev }37 , next { next }38 {39 }40 #endif41 42 33 ListNode<T>* prev { nullptr }; 43 34 ListNode<T>* next { nullptr }; … … 49 40 50 41 struct iterator { 51 #if !BCOMPILER_SUPPORTS(NSDMI_FOR_AGGREGATES)52 iterator() = default;53 iterator(ListNode<T>* node)54 : m_node(node)55 {56 }57 #endif58 59 42 T* operator*() { return static_cast<T*>(m_node); } 60 43 T* operator->() { return static_cast<T*>(m_node); }
Note: See TracChangeset
for help on using the changeset viewer.