Changeset 37117 in webkit for trunk/JavaScriptCore/kjs/NodeInfo.h


Ignore:
Timestamp:
Sep 30, 2008, 3:17:55 PM (17 years ago)
Author:
[email protected]
Message:

2008-09-30 Cameron Zwarich <[email protected]>

Reviewed by Geoff Garen.

Move all detection of 'arguments' in a lexical scope to the parser, in
preparation for fixing

Bug 21123: using "arguments" in a function should not force creation of an activation object
<https://bugs.webkit.org/show_bug.cgi?id=21123>

JavaScriptCore:

  • VM/CodeGenerator.cpp: (JSC::CodeGenerator::CodeGenerator):
  • kjs/NodeInfo.h:
  • kjs/grammar.y:

LayoutTests:

  • fast/js/arguments-expected.txt:
  • fast/js/function-dot-arguments-expected.txt: Added.
  • fast/js/function-dot-arguments.html: Added.
  • fast/js/resources/arguments.js:
  • fast/js/resources/function-dot-arguments.js: Added.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/NodeInfo.h

    r37050 r37117  
    3939        int m_numConstants;
    4040    };
    41    
     41
     42    typedef NodeFeatureInfo<FuncDeclNode*> FuncDeclNodeInfo;   
    4243    typedef NodeFeatureInfo<FuncExprNode*> FuncExprNodeInfo;
    4344    typedef NodeFeatureInfo<ExpressionNode*> ExpressionNodeInfo;
     
    6465    typedef NodeDeclarationInfo<ExpressionNode*> VarDeclListInfo;
    6566    typedef NodeDeclarationInfo<ConstDeclList> ConstDeclListInfo;
     67    typedef NodeDeclarationInfo<ParameterList> ParameterListInfo;
    6668
    6769} // namespace JSC
Note: See TracChangeset for help on using the changeset viewer.