1. 05 Feb, 2016 33 commits
  2. 04 Feb, 2016 7 commits
    • adamk's avatar
      Support computed properties for ES2015 Function.name · 21c045a2
      adamk authored
      Adds a new runtime function, %DefineDataPropertyInLiteral, which
      takes a fifth argument specifying whether the property and value
      are syntactically such that the value is a function (or class)
      literal that should have its name set at runtime.
      
      The new runtime call also allows us to eliminate the now-redundant
      %DefineClassMethod runtime function.
      
      This should get much less ugly once we can desugar the "dynamic"
      part of object literals in the parser (but that work is currently
      blocked on having a performant way of desugaring literals).
      
      BUG=v8:3699, v8:3761
      LOG=n
      
      Review URL: https://codereview.chromium.org/1626423003
      
      Cr-Commit-Position: refs/heads/master@{#33756}
      21c045a2
    • mbrandy's avatar
      PPC: Write barrier for storing a code entry, and usage in CompileLazy builtin. · ca255fd5
      mbrandy authored
      Port 477e1336
      
      R=mvstanton@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
      BUG=
      
      Review URL: https://codereview.chromium.org/1668233003
      
      Cr-Commit-Position: refs/heads/master@{#33755}
      ca255fd5
    • mbrandy's avatar
      PPC: [generators] Implement Generator.prototype.return. · bedb3344
      mbrandy authored
      Port dbd86408
      
      Original commit message:
          Note: This is currently only used by yield*, we still need to support it in
          other places (such as for-of loops).  It can be used manually of course.
      
          (This CL does not touch the full-codegen implementation of yield* because that
          code is already dead.  The yield* desugaring already supports return and doesn't
          need to be touched.)
      
      R=neis@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
      BUG=v8:3566
      LOG=y
      
      Review URL: https://codereview.chromium.org/1664413002
      
      Cr-Commit-Position: refs/heads/master@{#33754}
      bedb3344
    • mbrandy's avatar
      PPC: Type Feedback Vector lives in the closure · 753ad25e
      mbrandy authored
      Port bb31db3a
      
      Original commit message:
          (RELAND: the problem before was a missing write barrier for adding the code
          entry to the new closure. It's been addressed with a new macro instruction
          and test. The only change to this CL is the addition of two calls to
          __ RecordWriteCodeEntryField() in the platform CompileLazy builtin.)
      
          We get less "pollution" of type feedback if we have one vector per native
          context, rather than one for the whole system. This CL moves the vector
          appropriately.
      
          We rely more heavily on the Optimized Code Map in the SharedFunctionInfo. The
          vector actually lives in the first slot of the literals array (indeed there is
          great commonality between those arrays, they can be thought of as the same
          thing). So we make greater effort to ensure there is a valid literals array
          after compilation.
      
          This meant, for performance reasons, that we needed to extend
          FastNewClosureStub to support creating closures with literals. And ultimately,
          it drove us to move the optimized code map lookup out of FastNewClosureStub
          and into the compile lazy builtin.
      
          The heap change is trivial so I TBR Hannes for it...
          Also, Yang has had a look at the debugger changes already and approved 'em. So he is TBR style too.
          And Benedikt reviewed it as well.
      
      R=mvstanton@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
      BUG=
      
      Review URL: https://codereview.chromium.org/1671553002
      
      Cr-Commit-Position: refs/heads/master@{#33753}
      753ad25e
    • caitpotter88's avatar
      [esnext] implement Object.getOwnPropertyDescriptors() proposal · ee10b595
      caitpotter88 authored
      BUG=v8:4725
      LOG=N
      R=adamk@chromium.org, cbruni@chromium.org, rossberg@chromium.org
      
      Review URL: https://codereview.chromium.org/1658773003
      
      Cr-Commit-Position: refs/heads/master@{#33752}
      ee10b595
    • alph's avatar
      Fix crash in SafeStackFrameIterator related to native frames entry/exit · 271f68ba
      alph authored
      There might be several ExternalCallbackScope's created
      during the native callback. Remove the assert that is not
      aligned with that.
      
      Moreover this iterator must work for any kind of
      stacks including corrupted ones.
      
      BUG=v8:4705
      LOG=N
      
      Review URL: https://codereview.chromium.org/1663193003
      
      Cr-Commit-Position: refs/heads/master@{#33751}
      271f68ba
    • adamk's avatar
      Remove is_parenthesized bit from Expression and PreParserExpression · 1c318a9e
      adamk authored
      This bit was ostensibly being used to provide appropriate syntax
      errors for invalid destructuring assignment patterns, but adding a
      single call to RecordPatternError() (in place of
      BindingPatternUnexpectedToken()) seems to have replaced the need for it.
      
      Review URL: https://codereview.chromium.org/1665043002
      
      Cr-Commit-Position: refs/heads/master@{#33750}
      1c318a9e