Changeset 254866 in webkit for trunk/Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp
- Timestamp:
- Jan 21, 2020, 11:36:05 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp
r254735 r254866 411 411 const Allocation& base = m_allocations.find(location.base())->value; 412 412 auto iter = base.fields().find(location.descriptor()); 413 414 413 if (iter == base.fields().end()) 415 414 return nullptr; … … 437 436 438 437 return &getAllocation(identifier); 438 } 439 440 bool isUnescapedAllocation(Node* identifier) const 441 { 442 auto iter = m_allocations.find(identifier); 443 return iter != m_allocations.end() && !iter->value.isEscapedAllocation(); 439 444 } 440 445 … … 1947 1952 1948 1953 for (PromotedHeapLocation location : hintsForPhi[variable->index()]) { 1949 if (m_heap. onlyLocalAllocation(location.base())) {1954 if (m_heap.isUnescapedAllocation(location.base())) { 1950 1955 m_insertionSet.insert(0, 1951 1956 location.createHint(m_graph, block->at(0)->origin.withInvalidExit(), phiDef->value()));
Note:
See TracChangeset
for help on using the changeset viewer.