1. 31 Jul, 2017 20 commits
  2. 29 Jul, 2017 4 commits
  3. 28 Jul, 2017 16 commits
    • Brad Nelson's avatar
      Enable SharedArrayBuffer by default in standalone v8. · 7662e063
      Brad Nelson authored
      BUG=chromium:709179
      R=binji@chromium.org,hablich@chromium.org
      
      Change-Id: I2efb3becc1ca9fef84008c82cd882ef11e2aa3f2
      Reviewed-on: https://chromium-review.googlesource.com/589768
      Commit-Queue: Brad Nelson <bradnelson@chromium.org>
      Reviewed-by: 's avatarBen Smith <binji@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46986}
      7662e063
    • Alexey Kozyatinskiy's avatar
      [inspector] move SetScriptSource call to native · 6b0bf165
      Alexey Kozyatinskiy authored
      To avoid using debugging context and debugger-script.js on inspector side we can move SetScriptSource call to v8::internal::Debug. Theoretically we can move live edit implementation to native completely but since it will be reimplemented it looks redundant.
      
      R=yangguo@chromium.org,jgruber@chromium.org
      
      Bug: chromium:652939
      Cq-Include-Trybots: master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: Id09492c2d2a93efbde429c9cc1bc181d5fdda19b
      Reviewed-on: https://chromium-review.googlesource.com/590736
      Commit-Queue: Aleksey Kozyatinskiy <kozyatinskiy@chromium.org>
      Reviewed-by: 's avatarJakob Gruber <jgruber@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46985}
      6b0bf165
    • Alexei Filippov's avatar
      [heap-profiler] Remove unused methods from Heap Profiler. · 920025f5
      Alexei Filippov authored
      Remove GetProfilerMemorySize from HeapProfiler API.
      Remove HeapObjectsMap::FindUntrackedObjects
      
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: I32a9a0676485c17c08c068a8ca501525b0d2670e
      Reviewed-on: https://chromium-review.googlesource.com/590651Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Commit-Queue: Alexei Filippov <alph@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46984}
      920025f5
    • Georg Neis's avatar
      [modules] Blame correct module for ambiguous exports. · 4a9718c7
      Georg Neis authored
      The error got attached to the module asking for the conflicting name.
      This was incorrect in the case where the asking was itself via a star
      export. We must attach the error to the module that explicitly asks
      for the problematic name via a named import or named export statement.
      
      Test will be added to Chromium:
      https://chromium-review.googlesource.com/c/590369/
      
      R=adamk@chromium.org
      
      Bug: v8:1569
      Change-Id: Ib3c297c6c5654ed1b8f2c7b2d6525202c78f87cd
      Reviewed-on: https://chromium-review.googlesource.com/591307
      Commit-Queue: Georg Neis <neis@chromium.org>
      Reviewed-by: 's avatarAdam Klein <adamk@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46983}
      4a9718c7
    • Ulan Degenbaev's avatar
      Revert "[heap] Reland "[heap] Allow a minimum semi-space size of 512K."" · 774a4c5e
      Ulan Degenbaev authored
      This reverts commit 176a2b24.
      
      Reason for revert: performance regression on the benchmarks.
      
      Original change's description:
      > [heap] Reland "[heap] Allow a minimum semi-space size of 512K."
      > 
      > This patch changes the semi-space size to 512K.
      > 
      > > Original commit message:
      > > Revert "[heap] Allow a minimum semi-space size of 512K."
      > > This reverts commit 0d2ed6c3.
      > > The CL introduced perf regressions: crbug.com/735649.
      > > We are going to reland the CL in an isolated V8 roll to ensure
      > > that perf regressions are attributed correctly.
      > 
      > > Original commit message:
      > > > [heap] Allow a minimum semi-space size of 512K.
      > > > This CL also reduces the minimum semi-space size to 512K.
      > > > BUG=chromium:716032
      > > BUG=chromium:735649
      > 
      > Change-Id: Iabc377cba2911b28d51b98bb5b85134d4e893632
      > Reviewed-on: https://chromium-review.googlesource.com/575066
      > Reviewed-by: Michael Lippautz <mlippautz@chromium.org>
      > Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#46763}
      
      TBR=ulan@chromium.org,mlippautz@chromium.org
      
      # Not skipping CQ checks because original CL landed > 1 day ago.
      
      Change-Id: I80f8b6699f41e91512f7cec38060c829252ff95e
      Reviewed-on: https://chromium-review.googlesource.com/591309Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
      Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46982}
      774a4c5e
    • Jakob Kummerow's avatar
      Refactor TransitionArray access · e567dd3a
      Jakob Kummerow authored
      in preparation for caching StoreIC-Transition handlers in there.
      This CL should not change behavior or performance.
      
      The TransitionArray class no longer serves a dual purpose; it is now
      simply the data structure serving that role. Further, it now supports
      storing transitioning handlers in its "target" slot, which in turn have
      a WeakCell pointing to the transition target (but this functionality
      is not being used yet).
      
      The interface for accessing a map's transitions, previously implemented
      as a set of static functions, is now handled by the TransitionsAccessor
      class. It distinguishes the following internal states:
      - kPrototypeInfo: map is a prototype map, will never cache any transitions.
      - kUninitialized: map can cache transitions, but doesn't have any.
      - kWeakCell: map caches a single transition, stored inline. Formerly known
                   as "IsSimpleTransition".
      - kFullTransitionArray: map uses a TransitionArray to store transitions.
      - kTuple3Handler, kFixedArrayHandler: to be used in the future for caching
                                            transitioning handlers.
      
      Change-Id: If2aa68390981f96f317b958445a6e0b935c2a14e
      Reviewed-on: https://chromium-review.googlesource.com/550118Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
      Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
      Commit-Queue: Jakob Kummerow <jkummerow@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46981}
      e567dd3a
    • Tobias Tebbi's avatar
      Revert "Reland: [turbofan] staging new implementation of escape analysis" · c87a3dda
      Tobias Tebbi authored
      This reverts commit ccd8bb69.
      
      Reason for revert: https://build.chromium.org/p/client.v8.fyi/builders/Mac%20Release%20%28Intel%29/builds/2643
      
      Original change's description:
      > Reland: [turbofan] staging new implementation of escape analysis
      > 
      > Reland of https://chromium-review.googlesource.com/c/565720, fixing compilation issues on the waterfall.
      > 
      > Bug: 
      > Change-Id: Ide4f1ea4470e946820edc990c9bf027f04844efe
      > Reviewed-on: https://chromium-review.googlesource.com/591667
      > Reviewed-by: Jaroslav Sevcik <jarin@chromium.org>
      > Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
      > Cr-Commit-Position: refs/heads/master@{#46975}
      
      TBR=jarin@chromium.org,tebbi@chromium.org
      
      Change-Id: I30016fd8d71535c02bab8678b02147195c3e97a6
      No-Presubmit: true
      No-Tree-Checks: true
      No-Try: true
      Reviewed-on: https://chromium-review.googlesource.com/591672Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
      Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46980}
      c87a3dda
    • Adithya Srinivasan's avatar
      Change Accessor counters · 59ddd606
      Adithya Srinivasan authored
      Counters for some of the getters are renamed to remove the
      AccessorNameGetterCallback_ prefix. The prefix causes these getters to
      be categorized under Blink C++ (and they shouldn't be). Counters are
      also added for some setters which are currently being counted under
      GenericNamedPropertySetterCallback and AccessorNameSetterCallback which
      are both categorized as Blink C++.
      
      Bug: 
      Change-Id: Ifc2c08d3eca0460ea6b5572c7a96b3625dd7d7ea
      Reviewed-on: https://chromium-review.googlesource.com/587593Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
      Commit-Queue: Adithya Srinivasan <adithyas@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46979}
      59ddd606
    • Mircea Trofin's avatar
      [wasm] Streaming API: own the promise. · 13532c08
      Mircea Trofin authored
      Avoid leaking because the persistent handle isn't released. To further
      clarify ownership, the v8 side owns now completely the promise.
      
      Bug: 
      Cq-Include-Trybots: master.tryserver.chromium.linux:linux_chromium_rel_ng
      Change-Id: Ief9e44e60235fe6199fc4884ad1ccbd9e34cce8a
      Reviewed-on: https://chromium-review.googlesource.com/591067Reviewed-by: 's avatarAndreas Haas <ahaas@chromium.org>
      Commit-Queue: Mircea Trofin <mtrofin@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46978}
      13532c08
    • Mathias Bynens's avatar
      [printing] Print feedback vectors · 8be73bad
      Mathias Bynens authored
      This patch makes `%DebugPrint(fn)` print `fn`’s feedback vector when
      available.
      
      Example output:
      
      ```
      d8> fn = (x) => x + '.'; fn(''); %DebugPrint(fn)
      DebugPrint: 0x1c12b950df81: [Function]
       - map = 0x1c12b1802361 [FastProperties]
       - prototype = 0x1c12ec904591
       - elements = 0x1c12f5702241 <FixedArray[0]> [HOLEY_ELEMENTS]
       - initial_map =
       - shared_info = 0x1c12ec92fde9 <SharedFunctionInfo fn>
       - name = 0x1c12ec92fcd1 <String[2]: fn>
       - formal_parameter_count = 1
       - kind = [ ArrowFunction ]
       - context = 0x1c12ec903cd1 <FixedArray[278]>
       - code = 0x220721125061 <Code BUILTIN>
       - interpreted
       - bytecode = 0x1c12ec930181
       - source code = (x) => x + '.'
       - properties = 0x1c12f5702241 <FixedArray[0]> {
          #length: 0x1c12e3095eb1 <AccessorInfo> (const accessor descriptor)
          #name: 0x1c12e3095f21 <AccessorInfo> (const accessor descriptor)
       }
      
       - feedback vector: 0x1c12ec9301f9: [FeedbackVector] in OldSpace
       - length: 1
       SharedFunctionInfo: 0x1c12ec92fde9 <SharedFunctionInfo fn>
       Optimized Code: 0
       Invocation Count: 1
       Profiler Ticks: 0
       Slot #0 BinaryOp MONOMORPHIC
        [0]: 8
      0x1c12b1802361: [Map]
       - type: JS_FUNCTION_TYPE
       - instance size: 72
       - inobject properties: 0
       - elements kind: HOLEY_ELEMENTS
       - unused property fields: 0
       - enum length: invalid
       - callable
       - back pointer: 0x1c12f57022d1 <undefined>
       - instance descriptors (own) #2: 0x1c12ec9048e9 <FixedArray[8]>
       - layout descriptor: 0x0
       - prototype: 0x1c12ec904591 <JSFunction (sfi = 0x1c12f5707c91)>
       - constructor: 0x1c12f5702201 <null>
       - code cache: 0x1c12f5702241 <FixedArray[0]>
       - dependent code: 0x1c12f5702241 <FixedArray[0]>
       - construction counter: 0
      
      (x) => x + '.'
      ```
      
      Example output when feedback vector is not available:
      
      ```
      d8> %DebugPrint(() => {})
      DebugPrint: 0x1c12b950bf49: [Function]
       - map = 0x1c12b1802361 [FastProperties]
       - prototype = 0x1c12ec904591
       - elements = 0x1c12f5702241 <FixedArray[0]> [HOLEY_ELEMENTS]
       - initial_map =
       - shared_info = 0x1c12ec92c021 <SharedFunctionInfo>
       - name = 0x1c12f5702431 <String[0]: >
       - formal_parameter_count = 0
       - kind = [ ArrowFunction ]
       - context = 0x1c12ec903cd1 <FixedArray[278]>
       - code = 0x220721004861 <Code BUILTIN>
       - source code = () => {}
       - properties = 0x1c12f5702241 <FixedArray[0]> {
          #length: 0x1c12e3095eb1 <AccessorInfo> (const accessor descriptor)
          #name: 0x1c12e3095f21 <AccessorInfo> (const accessor descriptor)
       }
      
       - feedback vector: not available
      0x1c12b1802361: [Map]
       - type: JS_FUNCTION_TYPE
       - instance size: 72
       - inobject properties: 0
       - elements kind: HOLEY_ELEMENTS
       - unused property fields: 0
       - enum length: invalid
       - callable
       - back pointer: 0x1c12f57022d1 <undefined>
       - instance descriptors (own) #2: 0x1c12ec9048e9 <FixedArray[8]>
       - layout descriptor: 0x0
       - prototype: 0x1c12ec904591 <JSFunction (sfi = 0x1c12f5707c91)>
       - constructor: 0x1c12f5702201 <null>
       - code cache: 0x1c12f5702241 <FixedArray[0]>
       - dependent code: 0x1c12f5702241 <FixedArray[0]>
       - construction counter: 0
      
      () => {}
      ```
      
      Change-Id: Ic80289bff652cfc8d04182c68740843c61c87849
      Reviewed-on: https://chromium-review.googlesource.com/591369
      Commit-Queue: Mathias Bynens <mathias@chromium.org>
      Reviewed-by: 's avatarMichael Stanton <mvstanton@chromium.org>
      Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46977}
      8be73bad
    • Jaroslav Sevcik's avatar
      [profiler] Fix logging addresses on Windows. · 4229ca20
      Jaroslav Sevcik authored
      Change-Id: Iff0dcec95d04b85d31a452fed31b1500ad17a9f0
      Reviewed-on: https://chromium-review.googlesource.com/591373
      Commit-Queue: Jaroslav Sevcik <jarin@chromium.org>
      Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46976}
      4229ca20
    • Tobias Tebbi's avatar
      Reland: [turbofan] staging new implementation of escape analysis · ccd8bb69
      Tobias Tebbi authored
      Reland of https://chromium-review.googlesource.com/c/565720, fixing compilation issues on the waterfall.
      
      Bug: 
      Change-Id: Ide4f1ea4470e946820edc990c9bf027f04844efe
      Reviewed-on: https://chromium-review.googlesource.com/591667Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
      Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46975}
      ccd8bb69
    • Daniel Clifford's avatar
      [csa] Move common FixedArray initialization into AllocateUninitializedJSArrayWithElements · d0579a4b
      Daniel Clifford authored
      Change-Id: Ifb689a6d5bc5290c6612a92fa45aae6f5db2d81c
      Reviewed-on: https://chromium-review.googlesource.com/589433Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
      Commit-Queue: Daniel Clifford <danno@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46974}
      d0579a4b
    • Mathias Bynens's avatar
      Add .editorconfig · 27e3921b
      Mathias Bynens authored
      This file codifies the preferred editor configuration when working
      on V8. Including it in the repository makes it easier for contributors
      to follow the existing coding style.
      
      See http://editorconfig.org/ for more information.
      
      Change-Id: Iea69c29fc0d88e0fd085e4b3ffc46697d0cd1202
      Reviewed-on: https://chromium-review.googlesource.com/591427Reviewed-by: 's avatarTobias Tebbi <tebbi@chromium.org>
      Commit-Queue: Mathias Bynens <mathias@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46973}
      27e3921b
    • Michael Lippautz's avatar
      [heap] Decouple RootMarkingVisitor used for seeding items from Minor MC · d9d05917
      Michael Lippautz authored
      This visitor can be reused by the full MC when seeding root items.
      
      Bug: chromium:750084
      Change-Id: I9d46ce55737961d8f72a34b06f3314c8f75f3b4d
      Reviewed-on: https://chromium-review.googlesource.com/591451Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46972}
      d9d05917
    • Michael Lippautz's avatar
      [heap] Fix smaller issues in MarkCompactMarkingVisitor · ca33118d
      Michael Lippautz authored
      Bug: chromium:750084
      Change-Id: I17560b2ab31ad494637a7498a089f4d2b7377907
      Reviewed-on: https://chromium-review.googlesource.com/591450Reviewed-by: 's avatarUlan Degenbaev <ulan@chromium.org>
      Commit-Queue: Michael Lippautz <mlippautz@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#46971}
      ca33118d