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

Changeset 200896 in webkit


Ignore:
Timestamp:
May 13, 2016, 4:44:31 PM (10 years ago)
Author:
benjamin@webkit.org
Message:

[JSC] Emit the loads of emitLoadWithStructureCheck() in the order they are used
https://bugs.webkit.org/show_bug.cgi?id=157671

Patch by Benjamin Poulain <bpoulain@apple.com> on 2016-05-13
Reviewed by Mark Lam.

This improves the chances of having a value
when issuing the TEST.

  • jit/JITPropertyAccess.cpp:

(JSC::JIT::emitLoadWithStructureCheck):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r200893 r200896  
     12016-05-13  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        [JSC] Emit the loads of emitLoadWithStructureCheck() in the order they are used
     4        https://bugs.webkit.org/show_bug.cgi?id=157671
     5
     6        Reviewed by Mark Lam.
     7
     8        This improves the chances of having a value
     9        when issuing the TEST.
     10
     11        * jit/JITPropertyAccess.cpp:
     12        (JSC::JIT::emitLoadWithStructureCheck):
     13
    1142016-05-13  Joseph Pecoraro  <pecoraro@apple.com>
    215
  • trunk/Source/JavaScriptCore/jit/JITPropertyAccess.cpp

    r200586 r200896  
    802802void JIT::emitLoadWithStructureCheck(int scope, Structure** structureSlot)
    803803{
     804    loadPtr(structureSlot, regT1);
    804805    emitGetVirtualRegister(scope, regT0);
    805     loadPtr(structureSlot, regT1);
    806806    addSlowCase(branchTestPtr(Zero, regT1));
    807807    load32(Address(regT1, Structure::structureIDOffset()), regT1);
Note: See TracChangeset for help on using the changeset viewer.