Changeset 240917 in webkit
- Timestamp:
- Feb 4, 2019, 12:15:46 AM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r240915 r240917 1 2019-02-04 Mark Lam <mark.lam@apple.com> 2 3 DFG's doesGC() is incorrect about the SameValue node's behavior. 4 https://bugs.webkit.org/show_bug.cgi?id=194211 5 <rdar://problem/47608913> 6 7 Reviewed by Saam Barati. 8 9 Only the DoubleRepUse case is guaranteed to not GC. The other case may GC because 10 it calls operationSameValue() which may allocate memory for resolving ropes. 11 12 * dfg/DFGDoesGC.cpp: 13 (JSC::DFG::doesGC): 14 1 15 2019-02-03 Yusuke Suzuki <ysuzuki@apple.com> 2 16 -
trunk/Source/JavaScriptCore/dfg/DFGDoesGC.cpp
r240616 r240917 156 156 case CompareStrictEq: 157 157 case CompareEqPtr: 158 case SameValue:159 158 case Call: 160 159 case DirectCall: … … 414 413 return node->multiPutByOffsetData().reallocatesStorage(); 415 414 415 case SameValue: 416 if (node->isBinaryUseKind(DoubleRepUse)) 417 return false; 418 return true; 419 416 420 case LastNodeType: 417 421 RELEASE_ASSERT_NOT_REACHED();
Note:
See TracChangeset
for help on using the changeset viewer.