Ignore:
Timestamp:
Feb 24, 2016, 12:46:44 PM (9 years ago)
Author:
[email protected]
Message:

Unreviewed, rolling out r197033.
https://bugs.webkit.org/show_bug.cgi?id=154649

"It broke JSC tests when 'this' was loaded from global scope"
(Requested by saamyjoon on #webkit).

Reverted changeset:

"[ES6] Arrow function syntax. Emit loading&putting this/super
only if they are used in arrow function"
https://bugs.webkit.org/show_bug.cgi?id=153981
http://trac.webkit.org/changeset/197033

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/parser/ParserModes.h

    r197033 r197043  
    162162const CodeFeatures AllFeatures = EvalFeature | ArgumentsFeature | WithFeature | ThisFeature | StrictModeFeature | ShadowsArgumentsFeature | ModifiedParameterFeature | ArrowFunctionFeature | ArrowFunctionContextFeature;
    163163
    164 typedef uint8_t ArrowFunctionCodeFeatures;
    165    
    166 const ArrowFunctionCodeFeatures NoArrowFunctionFeatures =                0;
    167 const ArrowFunctionCodeFeatures EvalArrowFunctionFeature =          1 << 0;
    168 const ArrowFunctionCodeFeatures ArgumentsArrowFunctionFeature =     1 << 1;
    169 const ArrowFunctionCodeFeatures ThisArrowFunctionFeature =          1 << 2;
    170 const ArrowFunctionCodeFeatures SuperCallArrowFunctionFeature =     1 << 3;
    171 const ArrowFunctionCodeFeatures SuperPropertyArrowFunctionFeature = 1 << 4;
    172 const ArrowFunctionCodeFeatures NewTargetArrowFunctionFeature =     1 << 5;
    173    
    174 const ArrowFunctionCodeFeatures AllArrowFunctionCodeFeatures = EvalArrowFunctionFeature | ArgumentsArrowFunctionFeature | ThisArrowFunctionFeature | SuperCallArrowFunctionFeature | SuperPropertyArrowFunctionFeature | NewTargetArrowFunctionFeature;
    175164} // namespace JSC
    176165
Note: See TracChangeset for help on using the changeset viewer.