Ignore:
Timestamp:
May 23, 2012, 7:34:09 PM (13 years ago)
Author:
[email protected]
Message:

DFGCapabilities should not try to get an arguments register from code blocks that don't have one
https://bugs.webkit.org/show_bug.cgi?id=87332

Reviewed by Andy Estes.

  • dfg/DFGCapabilities.h:

(JSC::DFG::canInlineOpcode):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGCapabilities.h

    r118290 r118310  
    211211    // arguments.
    212212    case op_call_varargs:
    213         return pc[3].u.operand == codeBlock->argumentsRegister();
     213        return codeBlock->usesArguments() && pc[3].u.operand == codeBlock->argumentsRegister();
    214214       
    215215    default:
Note: See TracChangeset for help on using the changeset viewer.