1. 17 Feb, 2015 2 commits
  2. 16 Feb, 2015 1 commit
  3. 13 Feb, 2015 1 commit
    • arv's avatar
      ES6 Classes: Remove tracking of super construct calls. · d0c2c2b3
      arv authored
      With the new ES6 semantics super construct calls are only valid in
      a constructor in a derived class. This is something that is
      statically known and we report early SyntaxError in case it occurs.
      We therefore do not need to track this any more.
      
      BUG=v8:3330
      LOG=N
      R=dslomov@chromium.org, adamk
      
      Review URL: https://codereview.chromium.org/924123002
      
      Cr-Commit-Position: refs/heads/master@{#26644}
      d0c2c2b3
  4. 12 Feb, 2015 6 commits
  5. 10 Feb, 2015 3 commits
    • arv's avatar
      super is only allowed in methods, accessors and constructor · 9acfd4fe
      arv authored
      super() is only allowed in a class constructor.
      super.p is allowed in methods, accessors and constructors.
      
      The parser now checks the FunctionState to see what kind of function
      we are currently inside.
      
      BUG=v8:3330
      LOG=N
      R=dslomov@chromium.org, marja@chromium.org
      
      Review URL: https://codereview.chromium.org/915563003
      
      Cr-Commit-Position: refs/heads/master@{#26557}
      9acfd4fe
    • marja's avatar
      Parsing: Make Scope not know about Isolate. · 5d68529b
      marja authored
      Scope, like Parser, must be able to operate independent of Isolate and the V8
      heap (for background parsing). After the heap-independent phase, there is a heap
      dependent phase, during which we do operations such as scope anaylysis.
      
      This CL makes the phases explicit by not telling Scope about the Isolate too
      early (during the heap-independent phase, Scope should know nothing about
      Isolate). This decreases the probability of accidental code changes which would
      add heap-dependent operations into the heap-independent phase.
      
      R=rossberg@chromium.org
      BUG=
      
      Review URL: https://codereview.chromium.org/909093003
      
      Cr-Commit-Position: refs/heads/master@{#26546}
      5d68529b
    • marja's avatar
      Get rid of PreParserScope. · 0ca9bef3
      marja authored
      It's unnecessary; PreParser can just use normal Scopes for the things it needs
      to track. Note: the only functionalities of PreParserScope were keeping track of
      the scope stack, and for each scope, the scope type and language mode. Those are
      now done by Scope. PreParser doesn't yet put variables into scopes (that will be
      done in a follow up).
      
      R=rossberg@chromium.org
      BUG=
      
      Review URL: https://codereview.chromium.org/912563004
      
      Cr-Commit-Position: refs/heads/master@{#26544}
      0ca9bef3
  6. 06 Feb, 2015 4 commits
  7. 05 Feb, 2015 2 commits
  8. 04 Feb, 2015 1 commit
    • marja's avatar
      Introduce LanguageMode, drop StrictMode. · c7851da4
      marja authored
      This enables adding more language modes in the future.
      
      For maximum flexibility, LanguageMode is a bitmask, so we're not restricted to
      use a sequence of language modes which are progressively stricter, but we can
      express the language mode as combination of features.
      
      For now, LanguageMode can only be "sloppy" or "strict", and there are
      STATIC_ASSERTS in places which need to change when more modes are added.
      
      LanguageMode is a bit like the old LanguageMode when "extended" mode was still
      around (see https://codereview.chromium.org/8417035 and
      https://codereview.chromium.org/181543002 ) except that it's transmitted through
      all the layers (there's no StrictModeFlag).
      
      BUG=
      
      Review URL: https://codereview.chromium.org/894683003
      
      Cr-Commit-Position: refs/heads/master@{#26419}
      c7851da4
  9. 03 Feb, 2015 1 commit
  10. 30 Jan, 2015 1 commit
  11. 29 Jan, 2015 1 commit
    • arv's avatar
      Move object literal checking into checker classes · b004b1d8
      arv authored
      This removes the duplicate property check from object literals.
      
      Instead we repurpose the ObjectLiteralChecker into two cases, implemented
      by two subclasses to ObjectLiteralCheckerBase called ObjectLiteralChecker
      and ClassLiteralChecker.
      
      The object literal checker now only checks for duplicate __proto__ fields in
      object literals.
      
      The class literal checker checks for duplicate constructors, non constructor
      fields named constructor as well as static properties named prototype.
      
      BUG=v8:3819
      LOG=Y
      R=adamk, dslomov@chromium.org
      
      Review URL: https://codereview.chromium.org/873823003
      
      Cr-Commit-Position: refs/heads/master@{#26336}
      b004b1d8
  12. 23 Jan, 2015 1 commit
    • danno's avatar
      Remove the dependency of Zone on Isolate · c7b09aac
      danno authored
      Along the way:
      - Thread isolate parameter explicitly through code that used to
        rely on getting it from the zone.
      - Canonicalize the parameter position of isolate and zone for
        affected code
      - Change Hydrogen New<> instruction templates to automatically
        pass isolate
      
      R=mstarzinger@chromium.org
      LOG=N
      
      Review URL: https://codereview.chromium.org/868883002
      
      Cr-Commit-Position: refs/heads/master@{#26252}
      c7b09aac
  13. 20 Jan, 2015 1 commit
  14. 19 Jan, 2015 1 commit
  15. 15 Jan, 2015 1 commit
    • arv's avatar
      ES6 computed property names · 74e38e34
      arv authored
      This adds support for computed property names, under the flag
      --harmony-computed-property-names, for both object literals and
      classes.
      
      This is a revert of the revert, 7d48fd9d.
      
      BUG=v8:3754
      LOG=Y
      R=dslomov@chromium.org
      
      Review URL: https://codereview.chromium.org/798243004
      
      Cr-Commit-Position: refs/heads/master@{#26084}
      74e38e34
  16. 14 Jan, 2015 1 commit
  17. 12 Jan, 2015 1 commit
  18. 18 Dec, 2014 1 commit
  19. 17 Dec, 2014 2 commits
  20. 16 Dec, 2014 2 commits
    • arv's avatar
      Revert of ES6 computed property names (patchset #1 id:1 of... · 5f22fdd5
      arv authored
      Revert of ES6 computed property names (patchset #1 id:1 of https://codereview.chromium.org/807173002/)
      
      Reason for revert:
      Crashes Win32. It was not flake.
      
      Original issue's description:
      > ES6 computed property names
      >
      > This adds support for computed property names, under the flag
      > --harmony-computed-property-names, for both object literals and
      > classes.
      >
      > This is a revert of the revert, a76419f0 with
      > no changes. I cannot reproduce the issue on Win8.1 or WinXP. Letting the bots
      > try again.
      >
      > BUG=v8:3754
      > LOG=Y
      > TBR=dslomov@chromium.org
      
      TBR=dslomov@chromium.org
      NOTREECHECKS=true
      NOTRY=true
      BUG=v8:3754
      
      Review URL: https://codereview.chromium.org/807033003
      
      Cr-Commit-Position: refs/heads/master@{#25853}
      5f22fdd5
    • arv's avatar
      ES6 computed property names · a235b107
      arv authored
      This adds support for computed property names, under the flag
      --harmony-computed-property-names, for both object literals and
      classes.
      
      This is a revert of the revert, a76419f0 with
      no changes. I cannot reproduce the issue on Win8.1 or WinXP. Letting the bots
      try again.
      
      BUG=v8:3754
      LOG=Y
      TBR=dslomov@chromium.org
      
      Review URL: https://codereview.chromium.org/807173002
      
      Cr-Commit-Position: refs/heads/master@{#25851}
      a235b107
  21. 15 Dec, 2014 2 commits
    • arv's avatar
      Revert of ES6 computed property names (patchset #9 id:160001 of... · a76419f0
      arv authored
      Revert of ES6 computed property names (patchset #9 id:160001 of https://codereview.chromium.org/795573005/)
      
      Reason for revert:
      Crashes on Win32
      
      http://build.chromium.org/p/client.v8/builders/V8%20Win32%20-%201/builds/1357
      
      Test: mjsunit/harmony/computed-property-names
      Flags: --stress-opt --always-opt
      Command: build\Release\d8.exe --test --random-seed=-233815021 --stress-opt --always-opt --nohard-abort --nodead-code-elimination --nofold-constants --harmony-computed-property-names test\mjsunit\mjsunit.js test\mjsunit\harmony\computed-property-names.js
      
      Run #1
      Exit code: -1073741819
      Result: CRASH
      Expected outcomes: PASS
      
      Run #2
      Exit code: -1073741819
      Result: CRASH
      Expected outcomes: PASS
      
      Run #3
      Exit code: -1073741819
      Result: CRASH
      Expected outcomes: PASS
      
      Original issue's description:
      > ES6 computed property names
      >
      > This adds support for computed property names, under the flag
      > --harmony-computed-property-names, for both object literals and
      > classes.
      >
      > BUG=v8:3754
      > LOG=Y
      
      TBR=dslomov@chromium.org,wingo@igalia.com
      NOTREECHECKS=true
      NOTRY=true
      BUG=v8:3754
      
      Review URL: https://codereview.chromium.org/809433002
      
      Cr-Commit-Position: refs/heads/master@{#25825}
      a76419f0
    • arv's avatar
      ES6 computed property names · 6e38caf8
      arv authored
      This adds support for computed property names, under the flag
      --harmony-computed-property-names, for both object literals and
      classes.
      
      BUG=v8:3754
      LOG=Y
      
      Review URL: https://codereview.chromium.org/795573005
      
      Cr-Commit-Position: refs/heads/master@{#25821}
      6e38caf8
  22. 11 Dec, 2014 1 commit
  23. 10 Dec, 2014 1 commit
  24. 04 Dec, 2014 1 commit
  25. 02 Dec, 2014 1 commit