Changeset 26619 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 15, 2007, 1:40:50 PM (18 years ago)
Author:
ggaren
Message:

JavaScriptCore:

Reviewed by Darin Adler.


Made function parameters DontDelete. This matches FF and the vague
description in ECMA 10.1.3. It's also required in order to make
symbol table based lookup of function parameters valid. (If the
parameters aren't DontDelete, you can't guarantee that you'll find
them later in the symbol table.)

[ Patch broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]

  • kjs/function.cpp: (KJS::FunctionImp::passInParameters):

LayoutTests:

Committed revision 26618.

Made function parameters DontDelete.

  • fast/js/delete-function-parameter-expected.txt: Added.
  • fast/js/delete-function-parameter.html: Added.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r26618 r26619  
     12007-10-15  Geoffrey Garen  <[email protected]>
     2
     3        Reviewed by Darin Adler.
     4       
     5        Made function parameters DontDelete. This matches FF and the vague
     6        description in ECMA 10.1.3. It's also required in order to make
     7        symbol table based lookup of function parameters valid. (If the
     8        parameters aren't DontDelete, you can't guarantee that you'll find
     9        them later in the symbol table.)
     10
     11        [ Patch broken off from http://bugs.webkit.org/show_bug.cgi?id=14868 ]
     12
     13        * kjs/function.cpp:
     14        (KJS::FunctionImp::passInParameters):
     15
    1162007-10-15  Geoffrey Garen  <[email protected]>
    217
  • trunk/JavaScriptCore/kjs/function.cpp

    r25681 r26619  
    167167      printInfo(exec, "to", args[i]);
    168168#endif
    169       variable->put(exec, parameters[i].name, args[i]);
     169      variable->put(exec, parameters[i].name, args[i], DontDelete);
    170170    }
    171171}
Note: See TracChangeset for help on using the changeset viewer.