1. 11 Apr, 2016 1 commit
    • ssanfilippo's avatar
      [Interpreter] Enable tracing of bytecode handler dispatches. · 1e3257d2
      ssanfilippo authored
      When FLAG_trace_ignition_dispatches is enabled, a dispatch counter is
      kept for each pair of source-destination bytecode handlers.
      
      Each counter saturates at max uintptr_t value.
      
      Counters are dumped as a JSON-encoded object of objects, such that
      each key on the top level object is a source bytecode name, and each key
      on the corresponding value is a destination bytecode name, with the
      associated counter as value. The output file name can be controlled
      with the FLAG_trace_ignition_dispatches_output_file flag.
      
      The JSON file may be written by calling
      Interpreter::WriteDispatchCounters(), which is done for d8 in
      Shell::OnExit, if FLAG_trace_ignition_dispatches is enabled.
      
      BUG=v8:4899
      LOG=N
      
      Review URL: https://codereview.chromium.org/1828633003
      
      Cr-Commit-Position: refs/heads/master@{#35380}
      1e3257d2
  2. 05 Apr, 2016 1 commit
  3. 31 Mar, 2016 1 commit
  4. 15 Mar, 2016 1 commit
    • adamk's avatar
      Remove --harmony-modules flag and let embedder decide when modules are used · 5a202cce
      adamk authored
      Modules already have a separate entrypoint into the engine (at the moment,
      this is v8::ScriptCompiler::CompileModule, though that will change to
      something like ParseModule). This meant that requiring a commandline flag
      simply added an extra complexity burden on embedders. By removing the v8
      flag, this lets embedders use their own flagging mechanism (such as d8's
      "--module", or Blink's RuntimeEnabledFeatures) to control whether
      modules are to be used.
      
      Also remove old modules tests that were being skipped (since they test
      very old, pre-ES2015 modules syntax).
      
      R=littledan@chromium.org
      BUG=v8:1569, chromium:594639
      LOG=y
      
      Review URL: https://codereview.chromium.org/1804693002
      
      Cr-Commit-Position: refs/heads/master@{#34764}
      5a202cce
  5. 10 Mar, 2016 1 commit
  6. 08 Mar, 2016 1 commit
  7. 01 Mar, 2016 1 commit
  8. 26 Feb, 2016 1 commit
    • fmeawad's avatar
      Reland: Add Scoped Context Info (Isolate) to V8 Traces · 567e5839
      fmeawad authored
      This patch adds the newly added support for contexts in V8 Tracing, as well
      as use it to mark all the entry points for a V8 Isolate.
      
      Update for reland: The current tracing interface needs to be updated (AddTraceEvent),
      but the embedders need to migrate to the new version before removing the old version.
      (Reland of: https://codereview.chromium.org/1686233002)
      
      The revert happened because the 2 signatures of the old and new AddTraceEvent where different
      so it threw an overload-virtual error on cross arm debug. This issue is temporary, and to solve
      it, I added an implementation of the old and new everywhere until the embedder implements the new.
      
      BUG=v8:4565
      LOG=N
      
      R=jochen@chromium.org
      
      Review URL: https://codereview.chromium.org/1704253002
      
      Cr-Commit-Position: refs/heads/master@{#34332}
      567e5839
  9. 21 Feb, 2016 1 commit
  10. 17 Feb, 2016 2 commits
  11. 16 Feb, 2016 1 commit
  12. 12 Feb, 2016 1 commit
  13. 11 Feb, 2016 2 commits
  14. 29 Dec, 2015 1 commit
  15. 17 Dec, 2015 1 commit
  16. 01 Dec, 2015 1 commit
  17. 30 Nov, 2015 1 commit
  18. 12 Nov, 2015 1 commit
  19. 12 Oct, 2015 2 commits
  20. 28 Sep, 2015 1 commit
    • jkummerow's avatar
      objects-inl.h: Remove ACCESSORS_TO_SMI macro · 7117acd2
      jkummerow authored
      Replacing it with SMI_ACCESSORS.
      This change makes accesses to Smi fields in objects more regular (the
      accessors now always consume/return an int rather than a Smi*), which
      avoids a bunch of manual Smi::FromInt() and Smi::value() conversions,
      and is a step on the way towards being able to generate objects-inl.h.
      
      Review URL: https://codereview.chromium.org/1371893002
      
      Cr-Commit-Position: refs/heads/master@{#30975}
      7117acd2
  21. 27 Aug, 2015 1 commit
  22. 18 Aug, 2015 4 commits
  23. 14 Aug, 2015 1 commit
    • vogelheim's avatar
      Rework startup-data-util. · c69e2eae
      vogelheim authored
      - Make the API look like v8::V8::InitializeICU.
        (That is: A static method call, not an object to be created on the stack.)
      - Fix path separator on Windows, by calling base::OS::isPathSeparator.
      - Move into API, so that it can be called by hello-world & friends.
      - Actually call it from hello-world and friends.
      
      R=jochen@chromium.org
      BUG=
      
      Review URL: https://codereview.chromium.org/1292053002
      
      Cr-Commit-Position: refs/heads/master@{#30174}
      c69e2eae
  24. 11 Aug, 2015 1 commit
  25. 04 Aug, 2015 2 commits
    • binji's avatar
      [d8 Workers] Throw when calling Worker constructor without new · 890c4d9d
      binji authored
      BUG=4399
      R=jarin@chromium.org
      LOG=n
      
      Review URL: https://codereview.chromium.org/1260813008
      
      Cr-Commit-Position: refs/heads/master@{#30016}
      890c4d9d
    • vogelheim's avatar
      Avoid data race when writing Shell::options.script_executed. · e045b78d
      vogelheim authored
      The race occurred when Workers were used. Since Workers call
      Shell::ExecuteString from a different thread, TSAN (correctly) flags
      this as a racy write. Solution would be to either synchronize the writes,
      or to 'lift' the write higher up in the call stack and only write the flag
      from the main thread. This implements this latter solution.
      
      These methods call Shell::ExecuteString, but do *not* set script_executed:
      - ExecuteInThread: Can only occur is JS has already been executed.
      - Shell::Load: Callback for JS; so JS has already been executed when
                     we get there.
      - Shell::RunShell: Interactive shell. We no longer need script_executed once
                         we're here.
      
      BUG=v8:4330
      LOG=N
      
      Review URL: https://codereview.chromium.org/1258303004
      
      Cr-Commit-Position: refs/heads/master@{#30003}
      e045b78d
  26. 03 Aug, 2015 1 commit
  27. 30 Jul, 2015 2 commits
    • binji's avatar
      [d8] Fix tsan bugs · 053b8434
      binji authored
      script_executed and last_run are read/written by multiple threads. Also
      externalized_shared_contents_ is modified by multiple threads.
      
      BUG=4306
      R=jarin@chromium.org
      LOG=n
      
      Review URL: https://codereview.chromium.org/1252623003
      
      Cr-Commit-Position: refs/heads/master@{#29912}
      053b8434
    • binji's avatar
      [d8 Workers] Fix bug creating Worker during main thread termination · a87db3de
      binji authored
      When the main thread terminates, it forcibly terminates all Worker threads.
      When this happens, the threads objects were only half-created; they had a
      JavaScript Worker object, but not a C++ worker object.
      
      This CL fixes that bug, as well as some other fixes:
      * Signatures on Worker methods
      * Use SetAlignedPointerFromInternalField instead of using an External.
      * Remove state_ from Worker. Simplify to atomic bool running_.
      
      BUG=chromium:511880
      R=jarin@chromium.org
      LOG=n
      
      Review URL: https://codereview.chromium.org/1255563002
      
      Cr-Commit-Position: refs/heads/master@{#29911}
      a87db3de
  28. 23 Jul, 2015 3 commits
  29. 20 Jul, 2015 2 commits