Ignore:
Timestamp:
Jul 21, 2015, 1:15:54 PM (10 years ago)
Author:
[email protected]
Message:

Object allocation sinking phase is performing needless HashMap copies
https://bugs.webkit.org/show_bug.cgi?id=147159

Reviewed by Geoffrey Garen.

The points-to analyzer in the object allocation sinking phase is
currently performing copies of its allocation and pointers tables in
several places. While this is not a huge problem since those tables are
usually small and we are in the FTL path anyway, we still shouldn't be
doing such useless copying.

This patch also removes the DFGInsertOSRHintsForUpdate files that are
no longer needed with the new object sinking phase and should have been
removed in r186795.

(JSC::DFG::insertOSRHintsForUpdate): Deleted.

  • dfg/DFGInsertOSRHintsForUpdate.h: Removed.
  • dfg/DFGObjectAllocationSinkingPhase.cpp:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGObjectAllocationSinkingPhase.cpp

    r186860 r187118  
    537537    }
    538538
    539     const HashMap<Node*, Allocation> allocations() const
     539    const HashMap<Node*, Allocation>& allocations() const
    540540    {
    541541        return m_allocations;
    542542    }
    543543
    544     const HashMap<Node*, Node*> pointers() const
     544    const HashMap<Node*, Node*>& pointers() const
    545545    {
    546546        return m_pointers;
Note: See TracChangeset for help on using the changeset viewer.