⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 271490 in webkit


Ignore:
Timestamp:
Jan 14, 2021, 10:12:42 AM (6 years ago)
Author:
sbarati@apple.com
Message:

SpeculativeJIT::compileGetEnumerableLength should not use GPRFlushedCallResult
https://bugs.webkit.org/show_bug.cgi?id=220557

Reviewed by Yusuke Suzuki.

It wasn't used as the result from a call, so we're overly restricting the
register we allocate for no good reason.

  • dfg/DFGSpeculativeJIT.cpp:

(JSC::DFG::SpeculativeJIT::compileGetEnumerableLength):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r271489 r271490  
     12021-01-14  Saam Barati  <sbarati@apple.com>
     2
     3        SpeculativeJIT::compileGetEnumerableLength should not use GPRFlushedCallResult
     4        https://bugs.webkit.org/show_bug.cgi?id=220557
     5
     6        Reviewed by Yusuke Suzuki.
     7
     8        It wasn't used as the result from a call, so we're overly restricting the
     9        register we allocate for no good reason.
     10
     11        * dfg/DFGSpeculativeJIT.cpp:
     12        (JSC::DFG::SpeculativeJIT::compileGetEnumerableLength):
     13
    1142021-01-14  Saam Barati  <sbarati@apple.com>
    215
  • trunk/Source/JavaScriptCore/dfg/DFGSpeculativeJIT.cpp

    r271422 r271490  
    1283412834{
    1283512835    SpeculateCellOperand enumerator(this, node->child1());
    12836     GPRFlushedCallResult result(this);
     12836    GPRTemporary result(this, Reuse, enumerator);
     12837    GPRReg enumeratorGPR = enumerator.gpr();
    1283712838    GPRReg resultGPR = result.gpr();
    1283812839
    12839     m_jit.load32(MacroAssembler::Address(enumerator.gpr(), JSPropertyNameEnumerator::indexedLengthOffset()), resultGPR);
     12840    m_jit.load32(MacroAssembler::Address(enumeratorGPR, JSPropertyNameEnumerator::indexedLengthOffset()), resultGPR);
    1284012841    strictInt32Result(resultGPR, node);
    1284112842}
Note: See TracChangeset for help on using the changeset viewer.