• adamk's avatar
    Remove support for legacy const, part 1 · ed18aa65
    adamk authored
    Now that ES2015 const has shipped, in Chrome 49, legacy const declarations
    are no more. This lets us remove a bunch of code from many parts of the
    codebase.
    
    In this patch, I remove parser support for generating legacy const variables
    from const declarations. This also removes the special "illegal declaration"
    bit from Scope, which has ripples into all compiler backends.
    
    Also gone are any tests which relied on legacy const declarations.
    
    Note that we do still generate a Variable in mode CONST_LEGACY in one case:
    function name bindings in sloppy mode. The likely fix there is to add a new
    Variable::Kind for this case and handle it appropriately for stores in each
    backend, but I leave that for a later patch to make this one completely
    subtractive.
    
    Review URL: https://codereview.chromium.org/1819123002
    
    Cr-Commit-Position: refs/heads/master@{#35002}
    ed18aa65
Name
Last commit
Last update
..
regress Loading commit data...
array-species-constructor-accessor.js Loading commit data...
array-species-constructor-delete.js Loading commit data...
array-species-constructor.js Loading commit data...
array-species-delete.js Loading commit data...
array-species-modified.js Loading commit data...
array-species-parent-constructor.js Loading commit data...
array-species-proto.js Loading commit data...
array-species.js Loading commit data...
arraybuffer-species.js Loading commit data...
atomics.js Loading commit data...
block-conflicts-sloppy.js Loading commit data...
block-const-assign-sloppy.js Loading commit data...
block-eval-var-over-let.js Loading commit data...
block-for-sloppy.js Loading commit data...
block-lazy-compile.js Loading commit data...
block-leave-sloppy.js Loading commit data...
block-let-crankshaft-sloppy.js Loading commit data...
block-let-declaration-sloppy.js Loading commit data...
block-let-semantics-sloppy.js Loading commit data...
block-scoping-sloppy.js Loading commit data...
block-scoping-top-level-sloppy.js Loading commit data...
block-sloppy-function.js Loading commit data...
dataview-accessors.js Loading commit data...
do-expressions-control.js Loading commit data...
do-expressions.js Loading commit data...
exponentiation-operator.js Loading commit data...
function-name.js Loading commit data...
function-sent.js Loading commit data...
futex.js Loading commit data...
generators.js Loading commit data...
instanceof-es6.js Loading commit data...
iterator-close.js Loading commit data...
module-parsing-eval.js Loading commit data...
modules.js Loading commit data...
object-entries.js Loading commit data...
object-get-own-property-descriptors.js Loading commit data...
object-values.js Loading commit data...
private-symbols.js Loading commit data...
private.js Loading commit data...
promise-species.js Loading commit data...
regexp-flags.js Loading commit data...
regexp-lookbehind.js Loading commit data...
regexp-property-blocks.js Loading commit data...
regexp-property-char-class.js Loading commit data...
regexp-property-disabled.js Loading commit data...
regexp-property-exact-match.js Loading commit data...
regexp-property-general-category.js Loading commit data...
regexp-property-scripts.js Loading commit data...
regexp-sticky.js Loading commit data...
set-prototype-of.js Loading commit data...
sharedarraybuffer.js Loading commit data...
simd.js Loading commit data...
sloppy-implicit-block-function.js Loading commit data...
sloppy-restrictive-block-function.js Loading commit data...
species.js Loading commit data...
string-match.js Loading commit data...
string-replace.js Loading commit data...
string-split.js Loading commit data...
to-length.js Loading commit data...
to-name.js Loading commit data...
to-number.js Loading commit data...
to-primitive.js Loading commit data...
to-string.js Loading commit data...
typedarray-species.js Loading commit data...
unicode-character-ranges.js Loading commit data...
unicode-escapes-in-regexps.js Loading commit data...
unicode-regexp-backrefs.js Loading commit data...
unicode-regexp-ignore-case-noi18n.js Loading commit data...
unicode-regexp-ignore-case.js Loading commit data...
unicode-regexp-last-index.js Loading commit data...
unicode-regexp-restricted-syntax.js Loading commit data...
unicode-regexp-unanchored-advance.js Loading commit data...
unicode-regexp-zero-length.js Loading commit data...