Changeset 242655 in webkit
- Timestamp:
- Mar 8, 2019, 1:59:34 PM (7 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
dfg/DFGAbstractInterpreterInlines.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r242650 r242655 1 2019-03-08 Yusuke Suzuki <ysuzuki@apple.com> 2 3 Unreviewed, follow-up after r242568 4 5 Robin pointed that calculation of `numberOfChildren` and `nonEmptyIndex` is unnecessary. 6 7 * dfg/DFGAbstractInterpreterInlines.h: 8 (JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects): 9 1 10 2019-03-08 Yusuke Suzuki <ysuzuki@apple.com> 2 11 -
trunk/Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h
r242568 r242655 708 708 709 709 case MakeRope: { 710 unsigned numberOfChildren = 0;711 710 unsigned numberOfRemovedChildren = 0; 712 Optional<unsigned> nonEmptyIndex;713 711 for (unsigned i = 0; i < AdjacencyList::Size; ++i) { 714 712 Edge& edge = node->children.child(i); 715 713 if (!edge) 716 714 break; 717 ++numberOfChildren;718 719 715 JSValue childConstant = m_state.forNode(edge).value(); 720 if (!childConstant) { 721 nonEmptyIndex = i; 716 if (!childConstant) 722 717 continue; 723 } 724 if (!childConstant.isString()) { 725 nonEmptyIndex = i; 718 if (!childConstant.isString()) 726 719 continue; 727 } 728 if (asString(childConstant)->length()) { 729 nonEmptyIndex = i; 720 if (asString(childConstant)->length()) 730 721 continue; 731 }732 733 722 ++numberOfRemovedChildren; 734 723 }
Note:
See TracChangeset
for help on using the changeset viewer.