1. 05 Feb, 2015 2 commits
  2. 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
  3. 03 Feb, 2015 2 commits
  4. 30 Jan, 2015 3 commits
  5. 29 Jan, 2015 2 commits
    • 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
    • aperez's avatar
      Do not create unresolved variables when parsing arrow functions lazily · 91b87e7a
      aperez authored
      Arrow function parameter lists are parsed as expressions. When an identifier
      is found a VariableProxy is created and added to the list of unresolved
      variables for the scope. When parsing a function lazily, the scope has been
      already resolved, so with this patch only the VariableProxy is created,
      without adding it as an unresolved variable in the scope.
      
      BUG=v8:3501
      LOG=Y
      
      Review URL: https://codereview.chromium.org/880253004
      
      Cr-Commit-Position: refs/heads/master@{#26328}
      91b87e7a
  6. 28 Jan, 2015 1 commit
  7. 27 Jan, 2015 1 commit
    • adamk's avatar
      Begin modernization of --harmony-modules · aeb3a717
      adamk authored
      The approach taken in this CL is to incrementally move toward the
      currently-specced version of modules in ES6. The biggest change in this
      patch is separating the parsing of modules from the parsing of scripts,
      getting rid of the 'module' keyword and thus disallowing modules-in-scripts
      as well as modules-in-modules.
      
      The syntax supported by import/export declarations has not yet been significantly
      changed, with the major exception being that import declarations require a string
      as the 'from' part.
      
      Most of the existing tests have been disabled, with a first new test added
      in cctest/test-parsing.
      
      BUG=v8:1569
      LOG=n
      
      Review URL: https://codereview.chromium.org/881623002
      
      Cr-Commit-Position: refs/heads/master@{#26299}
      aeb3a717
  8. 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
  9. 22 Jan, 2015 1 commit
  10. 15 Jan, 2015 2 commits
  11. 12 Jan, 2015 1 commit
  12. 18 Dec, 2014 1 commit
  13. 17 Dec, 2014 2 commits
  14. 16 Dec, 2014 3 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
    • marja's avatar
      RegExpParser: Fix Reset()ting to the end. · 978f41a1
      marja authored
      The bug would occur when we try to Reset() to a position already at the end.
      
      This happens e.g., when the regexp ends with \u. What used to happen in that
      case: 1) Advance past \ and u (to the end) (which wouldn't increase next_pos_
      enough) 2) Try to parse 4 hex digits 3) When that failed, Reset() to the
      position which should've been at the end but wasn't.
      
      To be able to properly Reset() to a position at the end, we need to allow
      next_pos_ to move beyond the end (since position() is next_pos_ - 1).
      
      Minimal repro case:
      
      var r = /foo\u/
      r.test("foou") // should be true, was false.
      
      (Note that \u not followed by 4 hex didits should be interpreted as an identity
      escape. It already worked unless \u was at the end of the regexp.)
      
      BUG=v8:3756
      LOG=NO
      
      Review URL: https://codereview.chromium.org/802313003
      
      Cr-Commit-Position: refs/heads/master@{#25838}
      978f41a1
  15. 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
  16. 08 Dec, 2014 1 commit
  17. 03 Dec, 2014 1 commit
  18. 02 Dec, 2014 2 commits
  19. 28 Nov, 2014 1 commit
  20. 27 Nov, 2014 1 commit
  21. 26 Nov, 2014 1 commit
  22. 25 Nov, 2014 1 commit
  23. 20 Nov, 2014 2 commits
  24. 18 Nov, 2014 1 commit
  25. 17 Nov, 2014 1 commit
  26. 14 Nov, 2014 3 commits