Changeset 177981 in webkit


Ignore:
Timestamp:
Jan 6, 2015, 11:39:05 AM (11 years ago)
Author:
mark.lam@apple.com
Message:

Fix Use details for op_create_lexical_environment and op_create_arguments.
<https://webkit.org/b/140110>

Reviewed by Filip Pizlo.

The current "Use" details for op_create_lexical_environment and
op_create_arguments are wrong. op_create_argument uses nothing instead of the
1st operand (the output local). op_create_lexical_environment uses its 2nd
operand (the scope chain) instead of the 1st (the output local).
This patch fixes them to specify the proper uses.

  • bytecode/BytecodeUseDef.h:

(JSC::computeUsesForBytecodeOffset):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r177978 r177981  
     12015-01-06  Mark Lam  <mark.lam@apple.com>
     2
     3        Fix Use details for op_create_lexical_environment and op_create_arguments.
     4        <https://webkit.org/b/140110>
     5
     6        Reviewed by Filip Pizlo.
     7
     8        The current "Use" details for op_create_lexical_environment and
     9        op_create_arguments are wrong.  op_create_argument uses nothing instead of the
     10        1st operand (the output local).  op_create_lexical_environment uses its 2nd
     11        operand (the scope chain) instead of the 1st (the output local).
     12        This patch fixes them to specify the proper uses.
     13
     14        * bytecode/BytecodeUseDef.h:
     15        (JSC::computeUsesForBytecodeOffset):
     16
    1172015-01-06  Yusuke Suzuki  <utatane.tea@gmail.com>
    218
  • trunk/Source/JavaScriptCore/bytecode/BytecodeUseDef.h

    r176836 r177981  
    4141    switch (opcodeID) {
    4242    // No uses.
     43    case op_create_arguments:
    4344    case op_new_regexp:
    4445    case op_new_array_buffer:
     
    5657    case op_profile_control_flow:
    5758        return;
    58     case op_create_lexical_environment:
    5959    case op_get_scope:
    60     case op_create_arguments:
    6160    case op_to_this:
    6261    case op_pop_scope:
     
    115114        return;
    116115    }
     116    case op_create_lexical_environment:
    117117    case op_get_enumerable_length:
    118118    case op_new_func_exp:
Note: See TracChangeset for help on using the changeset viewer.