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

Changeset 101217 in webkit


Ignore:
Timestamp:
Nov 27, 2011, 6:11:58 PM (15 years ago)
Author:
fpizlo@apple.com
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):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r101198 r101217  
     12011-11-27  Filip Pizlo  <fpizlo@apple.com>
     2
     3        DFG should not emit GetMethod node
     4        https://bugs.webkit.org/show_bug.cgi?id=73175
     5
     6        Reviewed by Gavin Barraclough.
     7       
     8        Replaces all instances of the GetMethod node with GetById. This appears to
     9        be a slight win on V8. This patch leaves GetMethod support in the code-base,
     10        making this decision easy to reverse, for now.
     11
     12        * dfg/DFGByteCodeParser.cpp:
     13        (JSC::DFG::ByteCodeParser::parseBlock):
     14
    1152011-11-26  Hajime Morrita  <morrita@chromium.org>
    216
  • 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.