Changeset 284715 in webkit
- Timestamp:
- Oct 22, 2021, 2:47:34 PM (5 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
heap/HeapInlines.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r284702 r284715 1 2021-10-22 Mark Lam <mark.lam@apple.com> 2 3 Change Heap::writeBarrier() to do the cheaper check first. 4 https://bugs.webkit.org/show_bug.cgi?id=232172 5 6 Reviewed by Robin Morisset. 7 8 It's cheaper to do a check using incoming args (which are already loaded in 9 registers) than to do a check which requires memory loads. 10 11 * heap/HeapInlines.h: 12 (JSC::Heap::writeBarrier): 13 1 14 2021-10-22 Asumu Takikawa <asumu@igalia.com> 2 15 -
trunk/Source/JavaScriptCore/heap/HeapInlines.h
r282707 r284715 110 110 if (!from) 111 111 return; 112 if (LIKELY(!to)) 113 return; 112 114 if (!isWithinThreshold(from->cellState(), barrierThreshold())) 113 return;114 if (LIKELY(!to))115 115 return; 116 116 writeBarrierSlowPath(from);
Note:
See TracChangeset
for help on using the changeset viewer.