Changeset 262040 in webkit
- Timestamp:
- May 21, 2020 7:17:54 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r262039 r262040 1 2020-05-21 Robin Morisset <rmorisset@apple.com> 2 3 Various compile-time boolean flags could/should be marked constexpr 4 https://bugs.webkit.org/show_bug.cgi?id=212244 5 6 Reviewed by Mark Lam. 7 8 This trivial patch saves roughly 16kB from the JavaScriptCore binary in release mode. 9 10 * b3/B3OptimizeAssociativeExpressionTrees.cpp: 11 * b3/air/AirAllocateRegistersByGraphColoring.cpp: 12 * b3/air/AirSimplifyCFG.cpp: 13 (JSC::B3::Air::simplifyCFG): 14 * b3/air/AirTmpWidth.cpp: 15 (JSC::B3::Air::TmpWidth::recompute): 16 * dfg/DFGPredictionPropagationPhase.cpp: 17 * heap/GCIncomingRefCountedInlines.h: 18 (JSC::GCIncomingRefCounted<T>::filterIncomingReferences): 19 * heap/Heap.cpp: 20 (JSC::Heap::updateAllocationLimits): 21 * wasm/WasmEntryPlan.cpp: 22 1 23 2020-05-21 Robin Morisset <rmorisset@apple.com> 2 24 -
trunk/Source/JavaScriptCore/b3/B3OptimizeAssociativeExpressionTrees.cpp
r254996 r262040 58 58 59 59 Procedure& m_proc; 60 bool verbose { false };60 static constexpr bool verbose { false }; 61 61 }; 62 62 -
trunk/Source/JavaScriptCore/b3/air/AirAllocateRegistersByGraphColoring.cpp
r261755 r262040 44 44 namespace { 45 45 46 bool debug = false;47 bool traceDebug = false;48 bool reportStats = false;46 static constexpr bool debug = false; 47 static constexpr bool traceDebug = false; 48 static constexpr bool reportStats = false; 49 49 50 50 // The AbstractColoringAllocator defines all the code that is independant -
trunk/Source/JavaScriptCore/b3/air/AirSimplifyCFG.cpp
r261755 r262040 36 36 bool simplifyCFG(Code& code) 37 37 { 38 const bool verbose = false;38 constexpr bool verbose = false; 39 39 40 40 PhaseScope phaseScope(code, "simplifyCFG"); -
trunk/Source/JavaScriptCore/b3/air/AirTmpWidth.cpp
r212970 r262040 53 53 const bool beCareful = false; 54 54 55 const bool verbose = false;55 constexpr bool verbose = false; 56 56 57 57 if (verbose) { -
trunk/Source/JavaScriptCore/dfg/DFGPredictionPropagationPhase.cpp
r261895 r262040 37 37 namespace { 38 38 39 bool verboseFixPointLoops = false;39 static constexpr bool verboseFixPointLoops = false; 40 40 41 41 class PredictionPropagationPhase : public Phase { -
trunk/Source/JavaScriptCore/heap/GCIncomingRefCountedInlines.h
r243467 r262040 60 60 bool GCIncomingRefCounted<T>::filterIncomingReferences(FilterFunctionType&& filterFunction) 61 61 { 62 const bool verbose = false;62 constexpr bool verbose = false; 63 63 64 64 if (verbose) -
trunk/Source/JavaScriptCore/heap/Heap.cpp
r261755 r262040 98 98 namespace { 99 99 100 bool verboseStop = false;100 static constexpr bool verboseStop = false; 101 101 102 102 double maxPauseMS(double thisPauseMS) … … 2245 2245 void Heap::updateAllocationLimits() 2246 2246 { 2247 staticconstexpr bool verbose = false;2247 constexpr bool verbose = false; 2248 2248 2249 2249 if (verbose) { -
trunk/Source/JavaScriptCore/wasm/WasmEntryPlan.cpp
r261755 r262040 39 39 40 40 namespace WasmEntryPlanInternal { 41 static const bool verbose = false;41 static constexpr bool verbose = false; 42 42 } 43 43 -
trunk/Source/WTF/ChangeLog
r262030 r262040 1 2020-05-21 Robin Morisset <rmorisset@apple.com> 2 3 Various compile-time boolean flags could/should be marked constexpr 4 https://bugs.webkit.org/show_bug.cgi?id=212244 5 6 Reviewed by Mark Lam. 7 8 * wtf/ParkingLot.cpp: 9 1 10 2020-05-20 Mark Lam <mark.lam@apple.com> 2 11 -
trunk/Source/WTF/wtf/ParkingLot.cpp
r261661 r262040 41 41 namespace { 42 42 43 constbool verbose = false;43 static constexpr bool verbose = false; 44 44 45 45 struct ThreadData : public ThreadSafeRefCounted<ThreadData> { -
trunk/Tools/ChangeLog
r262034 r262040 1 2020-05-21 Robin Morisset <rmorisset@apple.com> 2 3 Various compile-time boolean flags could/should be marked constexpr 4 https://bugs.webkit.org/show_bug.cgi?id=212244 5 6 Reviewed by Mark Lam. 7 8 * TestWebKitAPI/Tests/WTF/Condition.cpp: 9 1 10 2020-05-21 Mark Lam <mark.lam@apple.com> 2 11 -
trunk/Tools/TestWebKitAPI/Tests/WTF/Condition.cpp
r257688 r262040 39 39 namespace { 40 40 41 constbool verbose = false;41 static constexpr bool verbose = false; 42 42 43 43 enum NotifyStyle {
Note: See TracChangeset
for help on using the changeset viewer.