1. 23 Mar, 2017 3 commits
  2. 22 Mar, 2017 3 commits
    • kozyatinskiy's avatar
      [inspector] follow up for e27d18c9 · 69ad35ac
      kozyatinskiy authored
      - renamed inspector-test methods,
      - tuned comment in debug.h
      
      BUG=v8:6118
      TBR=dgozman@chromium.org
      
      Review-Url: https://codereview.chromium.org/2766283002
      Cr-Commit-Position: refs/heads/master@{#44043}
      69ad35ac
    • kozyatinskiy's avatar
      [debugger] tuned StepNext and StepOut at return position · e27d18c9
      kozyatinskiy authored
      Proposed behaviour:
      - StepNext at return position go into next function call (no changes with current behavior, but implemented in v8::Debug instead of hack on inspector side);
      - StepOut at return position go into next non-current function call.
      
      We need this to have better stepping in cases with native functions, blackboxed functions and/or different embedder calls (e.g. event listeners).
      
      New behavior could be illustrated with two examples (for more see stepping-with-natives-and-frameworks test):
      - let's assume that we've blackboxed callAll function, this function just takes its arguments and call one after another:
      var foo = () => 1;
      callAll(foo, foo, () => 2);
      If we break inside of first call of function foo. Then on..
      ..StepNext - we're able to reach second call of function foo,
      ..StepOut - we're able to reach () => 2 call.
      
      - let's consider case with native function:
      [1,2,3].map(x => x * 2)
      If we break inside of first callback call, then with StepNext we can iterate through all calls of callback, with StepOut we go to next statement after .map call.
      
      Implementation details:
      - when we request break we schedule step-in function call for any step action at return position and for step-in at any position,
      - when we request StepOut at return position - we mark current function as needed-to-be-ignored inside of PrepareStepIn(function) call,
      - when we request StepOut at not return position - we set break at return position and ask debugger to just repeat last step action on next stepping-related break.
      
      Design doc: https://docs.google.com/document/d/1ihXHOIhP_q-fJCA0e2EiXz_Zr3B08KMjaPifcaqZ60Q/edit
      
      BUG=v8:6118,chromium:583193
      R=dgozman@chromium.org,yangguo@chromium.org
      
      Review-Url: https://codereview.chromium.org/2758483002
      Cr-Commit-Position: refs/heads/master@{#44028}
      e27d18c9
    • Clemens Hammacher's avatar
      Add templatized GlobalHandles::Create method · 857ec798
      Clemens Hammacher authored
      The old method always returned a Handle<Object>, requiring an explicit
      cast in the caller. This CL makes it return Handle<T> if called with a
      T* as parameter.
      
      Also, remove now redundant casts from callers.
      
      R=bmeurer@chromium.org
      
      Change-Id: I13cfb2f2e812e8582a9a1d9d6c8a5a24f40d0e79
      Reviewed-on: https://chromium-review.googlesource.com/458376Reviewed-by: 's avatarBenedikt Meurer <bmeurer@chromium.org>
      Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#44012}
      857ec798
  3. 21 Mar, 2017 4 commits
  4. 20 Mar, 2017 1 commit
  5. 18 Mar, 2017 1 commit
  6. 17 Mar, 2017 3 commits
    • jgruber's avatar
      [gn] Enable stricter build flags · 542b41a7
      jgruber authored
      Default to the chromium-internal build config (instead of the more
      permissive no_chromium_code config).
      
      BUG=v8:5878
      
      Review-Url: https://codereview.chromium.org/2758563002
      Cr-Commit-Position: refs/heads/master@{#43909}
      542b41a7
    • titzer's avatar
      [rename] Rename internal field to embedder field. · 72e53936
      titzer authored
      This CL renames all occurrences of "internal field" to "embedder field"
      to prevent confusion. As it turns out, these fields are not internal to
      V8, but are actually embedder provided fields that should not be mucked
      with by the internal implementation of V8.
      
      Note that WASM does use these fields, and it should not.
      
      BUG=v8:6058
      
      Review-Url: https://codereview.chromium.org/2741683004
      Cr-Commit-Position: refs/heads/master@{#43900}
      72e53936
    • neis's avatar
      Disentangle assembler from isolate. · 94b088ca
      neis authored
      This is a first step towards moving Turbofan code generation off the main thread.
      
      Summary of the changes:
      - AssemblerBase no longer has a pointer to the isolate. Instead, its
        constructor receives the few things that it needs from the isolate (on most
        architectures this is just the serializer_enabled flag).
      - RelocInfo no longer has a pointer to the isolate. Instead, the functions
        that need it take it as an argument.  (There are currently still a few that
        implicitly access the isolate through a HeapObject.)
      - The MacroAssembler now explicitly holds a pointer to the isolate (before, it
        used to get it from the Assembler).
      - The jit_cookie also moved from AssemblerBase to the MacroAssemblers, since
        it's not used at all in the Assemblers.
      - A few architectures implemented parts of the Assembler with the help
        of a Codepatcher that is based on MacroAssembler.  Since the Assembler no
        longer has the isolate, but the MacroAssembler still needs it, this doesn't
        work anymore.  Instead, these Assemblers now use a new PatchingAssembler.
      
      BUG=v8:6048
      
      Review-Url: https://codereview.chromium.org/2732273003
      Cr-Commit-Position: refs/heads/master@{#43890}
      94b088ca
  7. 16 Mar, 2017 2 commits
  8. 15 Mar, 2017 1 commit
  9. 14 Mar, 2017 1 commit
  10. 13 Mar, 2017 4 commits
    • binji's avatar
      Reland moving Atomics builtins to C++ · 65200967
      binji authored
      This reverts the previous revert, commit
      5a04f4fd.
      
      Previously reverted changes:
      
      >    Revert "[SAB] Move Atomics builtins to C++"
      >
      >     This reverts commit 2b9840d8.
      >
      >     Revert "[SAB] Remove unreachable Uint8Clamped atomics paths"
      >
      >     This reverts commit d1160fb1.
      >
      >     Revert "Remove tiny unit test for MinSimple/MaxSimple"
      >
      >     This reverts commit 837760ec.
      >
      >     Revert "Remove infrastructure for experimental JS natives"
      >
      >     This reverts commit 8cfe45b6.
      
      These changes were reverted to improve a perf regression on a Chrome
      bot. Since then, the regression has reappeared, then disappeared again
      all from seemingly unrelated changes.
      
      BUG=v8:6033
      TBR=adamk@chromium.org,hpayer@chromium.org,yangguo@chromium.org
      
      Review-Url: https://codereview.chromium.org/2732213005
      Cr-Commit-Position: refs/heads/master@{#43758}
      65200967
    • kozyatinskiy's avatar
      [inspector] don't make v8::debug::Call for breakProgram. · c418902b
      kozyatinskiy authored
      We emulate break by callling breakProgramCallback function in debugger context, we can just use HandleDebugBreak.
      It allows us to move all stepping logic to debug.cc later and remove one usage of debugger context.
      + two minor issues fixed, see tests.
      
      BUG=v8:5510
      R=yangguo@chromium.org
      
      Review-Url: https://codereview.chromium.org/2738503006
      Cr-Commit-Position: refs/heads/master@{#43750}
      c418902b
    • danno's avatar
      [builtins] (Re-)implement Array.prototype.every/some with the CSA · 6e0496b2
      danno authored
      In the process, re-factor the implementation of Array.prototype.forEach so that
      the bulk of the implementation can be re-used, since much of the spec is
      identical. The refactor should also make it more straight-forward to implement
      map and filter. The re-factored version only have a single slow path for processing
      elements which is used for both the overall slow path and for the bailout from the
      FAST_ELEMENTS case.
      
      Review-Url: https://codereview.chromium.org/2709773002
      Cr-Commit-Position: refs/heads/master@{#43745}
      6e0496b2
    • yangguo's avatar
      [debugger] correctly annotate scripts with debug id. · 07ee0b17
      yangguo authored
      Previously, we would incorrectly not assign any debug id to scripts
      deserialized from the code cache.
      
      R=jgruber@chromium.org
      BUG=v8:6072
      
      Review-Url: https://codereview.chromium.org/2742713003
      Cr-Commit-Position: refs/heads/master@{#43740}
      07ee0b17
  11. 10 Mar, 2017 1 commit
  12. 09 Mar, 2017 3 commits
  13. 08 Mar, 2017 1 commit
  14. 06 Mar, 2017 4 commits
  15. 03 Mar, 2017 1 commit
  16. 02 Mar, 2017 2 commits
  17. 28 Feb, 2017 3 commits
  18. 27 Feb, 2017 2 commits