Ignore:
Timestamp:
Apr 7, 2014, 1:45:58 PM (11 years ago)
Author:
[email protected]
Message:

Make it possible to disable some of the FTL's more interesting features
https://bugs.webkit.org/show_bug.cgi?id=131312

Reviewed by Mark Hahnenberg.

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::handleGetById):
(JSC::DFG::ByteCodeParser::handlePutById):
(JSC::DFG::ByteCodeParser::parse):

  • runtime/Options.h:
File:
1 edited

Legend:

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

    r166510 r166885  
    18951895   
    18961896    if (getByIdStatus.numVariants() > 1) {
    1897         if (!isFTL(m_graph.m_plan.mode)) {
     1897        if (!isFTL(m_graph.m_plan.mode) || !Options::enablePolymorphicAccessInlining()) {
    18981898            set(VirtualRegister(destinationOperand),
    18991899                addToGraph(GetById, OpInfo(identifierNumber), OpInfo(prediction), base));
     
    19801980   
    19811981    if (putByIdStatus.numVariants() > 1) {
    1982         if (!isFTL(m_graph.m_plan.mode) || putByIdStatus.makesCalls()) {
     1982        if (!isFTL(m_graph.m_plan.mode) || putByIdStatus.makesCalls()
     1983            || !Options::enablePolymorphicAccessInlining()) {
    19831984            emitPutById(base, identifierNumber, value, putByIdStatus, isDirect);
    19841985            return;
     
    36203621   
    36213622    m_dfgCodeBlock = m_graph.m_plan.profiledDFGCodeBlock.get();
    3622     if (isFTL(m_graph.m_plan.mode) && m_dfgCodeBlock) {
     3623    if (isFTL(m_graph.m_plan.mode) && m_dfgCodeBlock
     3624        && Options::enablePolyvariantDevirtualization()) {
    36233625        if (Options::enablePolyvariantCallInlining())
    36243626            CallLinkStatus::computeDFGStatuses(m_dfgCodeBlock, m_callContextMap);
Note: See TracChangeset for help on using the changeset viewer.