Ignore:
Timestamp:
Jun 7, 2012, 9:25:58 PM (13 years ago)
Author:
[email protected]
Message:

DFG should inline prototype chain accesses, and do the right things if the
specific function optimization is available
https://bugs.webkit.org/show_bug.cgi?id=88594

Patch by Filip Pizlo <[email protected]> on 2012-06-07
Reviewed by Gavin Barraclough.

Looks like a 3% win on V8.

  • bytecode/CodeBlock.h:

(JSC::Structure::prototypeForLookup):
(JSC):

  • bytecode/GetByIdStatus.cpp:

(JSC::GetByIdStatus::computeFromLLInt):
(JSC):
(JSC::GetByIdStatus::computeForChain):
(JSC::GetByIdStatus::computeFor):

  • bytecode/GetByIdStatus.h:

(JSC::GetByIdStatus::GetByIdStatus):
(JSC::GetByIdStatus::isSimple):
(JSC::GetByIdStatus::chain):
(JSC::GetByIdStatus::specificValue):
(GetByIdStatus):

  • bytecode/StructureSet.h:

(StructureSet):
(JSC::StructureSet::singletonStructure):

  • bytecode/StructureStubInfo.h:

(JSC::StructureStubInfo::initGetByIdProto):
(JSC::StructureStubInfo::initGetByIdChain):

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::handleGetById):

  • dfg/DFGRepatch.cpp:

(JSC::DFG::tryCacheGetByID):

  • jit/JITStubs.cpp:

(JSC::JITThunks::tryCacheGetByID):

  • runtime/JSGlobalObject.h:

(JSC::Structure::prototypeForLookup):
(JSC):

  • runtime/Structure.h:

(Structure):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSGlobalData.h

    r119568 r119795  
    3939#include "LLIntData.h"
    4040#include "NumericStrings.h"
     41#include "PrivateName.h"
    4142#include "SmallStrings.h"
    4243#include "Strong.h"
     
    282283#endif
    283284
     285        PrivateName m_inheritorIDKey;
     286
    284287        OwnPtr<ParserArena> parserArena;
    285288        OwnPtr<Keywords> keywords;
Note: See TracChangeset for help on using the changeset viewer.