1. 25 Aug, 2015 1 commit
    • bmeurer's avatar
      Correctify instanceof and make it optimizable. · 5d875a57
      bmeurer authored
      The previous hack with HInstanceOfKnownGlobal was not only slower,
      but also very brittle and required a lot of weird hacks to support it. And
      what's even more important it wasn't even correct (because a map check
      on the lhs is never enough for instanceof).
      
      The new implementation provides a sane runtime implementation
      for InstanceOf plus a fast case in the InstanceOfStub, combined with
      a proper specialization in the case of a known global in CrankShaft,
      which does only the prototype chain walk (coupled with a code
      dependency on the known global).
      
      As a drive-by-fix: Also fix the incorrect Object.prototype.isPrototypeOf
      implementation.
      
      BUG=v8:4376
      LOG=y
      
      Review URL: https://codereview.chromium.org/1304633002
      
      Cr-Commit-Position: refs/heads/master@{#30342}
      5d875a57
  2. 24 Aug, 2015 25 commits
  3. 22 Aug, 2015 2 commits
    • littledan's avatar
      Revert of Add a separate scope for switch (patchset #7 id:120001 of... · 31b80180
      littledan authored
      Revert of Add a separate scope for switch (patchset #7 id:120001 of https://codereview.chromium.org/1293283002/ )
      
      Reason for revert:
      Breaks cctest/test-cpu-profiler/SourceLocation on nosnap
      
      Original issue's description:
      > Add a separate scope for switch
      >
      > The ES2015 specification for switch statements 13.12.11 specifies that
      > they get their own lexical scope. This patch introduces such a scope
      > through a complex desugaring in terms of blocks, done so that Crankshaft
      > does not have to be updated to support multiple constructs providing
      > scopes.
      >
      > BUG=v8:4377
      > LOG=Y
      > R=adamk
      >
      > Committed: https://crrev.com/9edbc1f21eb1050cabbe3b8bc9aebf89ada7ebd7
      > Cr-Commit-Position: refs/heads/master@{#30314}
      
      TBR=adamk@chromium.org
      NOPRESUBMIT=true
      NOTREECHECKS=true
      NOTRY=true
      BUG=v8:4377
      
      Review URL: https://codereview.chromium.org/1309043004
      
      Cr-Commit-Position: refs/heads/master@{#30316}
      31b80180
    • littledan's avatar
      Fix function scoping issue · 9c79e69e
      littledan authored
      The parser has special behavior with respect to the bindings
      of inner functions in sloppy mode which are not at the top
      level of scopes. This behavior should be turned off when the
      --harmony-sloppy-function flag is set, as lexical scoping
      rules are used instead. Previously, the incorrect flag
      --harmony-sloppy was used, resulting in a crashing bug.
      
      BUG=chromium:520029
      LOG=Y
      R=adamk
      
      Review URL: https://codereview.chromium.org/1303033003
      
      Cr-Commit-Position: refs/heads/master@{#30315}
      9c79e69e
  4. 21 Aug, 2015 12 commits