Ignore:
Timestamp:
Nov 27, 2011, 6:11:58 PM (14 years ago)
Author:
[email protected]
Message:

DFG should not emit GetMethod node
https://bugs.webkit.org/show_bug.cgi?id=73175

Reviewed by Gavin Barraclough.

Replaces all instances of the GetMethod node with GetById. This appears to
be a slight win on V8. This patch leaves GetMethod support in the code-base,
making this decision easy to reverse, for now.

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::parseBlock):

File:
1 edited

Legend:

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

    r100975 r101217  
    16541654               
    16551655                set(getInstruction[1].u.operand, cellConstant(methodCall.cachedFunction.get()));
    1656             } else {
    1657                 NodeIndex getMethod = addToGraph(GetMethod, OpInfo(identifier), OpInfo(prediction), base);
    1658                 set(getInstruction[1].u.operand, getMethod);
    1659             }
     1656            } else
     1657                set(getInstruction[1].u.operand, addToGraph(GetById, OpInfo(identifier), OpInfo(prediction), base));
    16601658           
    16611659            m_currentIndex += OPCODE_LENGTH(op_method_check) + OPCODE_LENGTH(op_get_by_id);
Note: See TracChangeset for help on using the changeset viewer.