1. 17 Nov, 2020 12 commits
  2. 16 Nov, 2020 20 commits
  3. 15 Nov, 2020 1 commit
  4. 14 Nov, 2020 3 commits
  5. 13 Nov, 2020 4 commits
    • Nico Hartmann's avatar
      [TurboFan] Transition SharedFunctionInfo to kNeverSerialized (2) · 43997d3a
      Nico Hartmann authored
      This is the 2nd step in series of CLs to move the SharedFunctionInfo
      class to kNeverSerialized and make it concurrently accessible from
      the background thread. This CL:
      * Changes optimization of GetTemplateObject in JSCreateLowering to
        only perform the optimization of a template object exists in the
        SharedFunctionInfo[Ref], but skips the optimization if one is
        missing instead of allocating a new one on demand.
      
      Bug: v8:7790
      Change-Id: Ic37d8333676e54b3f8d69416480df12bd90723ea
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2463229
      Commit-Queue: Nico Hartmann <nicohartmann@chromium.org>
      Reviewed-by: 's avatarGeorg Neis <neis@chromium.org>
      Reviewed-by: 's avatarSantiago Aboy Solanes <solanes@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#71189}
      43997d3a
    • Sathya Gunasekaran's avatar
      [intl] Cache the last used formatter if possible · 4b139f76
      Sathya Gunasekaran authored
      Instead of caching only the default formatter, cache the last used
      formatter if possible.
      
      This is better because it's a common use case to create a formatter
      in a different language and reuse it a lot, rather than create
      several formatters in various languages.
      
      Running the following benchmark:
      ```
      let i = 0;
      
      function toLocaleString() {
        i++;
        return i.toLocaleString();
      }
      
      i = 0;
      function toLocaleStringWithLocale() {
        i++;
        return i.toLocaleString('en-US');
      }
      
      const functions = [toLocaleString, toLocaleStringWithLocale];
      
      for (const f of functions) {
        let start = performance.now();
        for (let i = 0; i < 10e5; i++) {
          f();
        }
        let end = performance.now();
        print(`${f.name}: ${end - start}`);
      }
      ```
      sees the following improvements:
      
      With this patch:
        toLocaleString: 384.292
        toLocaleStringWithLocale: 450.48900000000003
      
      Without this patch:
        toLocaleString: 341.952
        toLocaleStringWithLocale: 23439.694
      
      This a little over 50x improvement.
      
      Bug: chromium:926075
      Change-Id: I0e316e959c90243e175df985854832a7abddbf54
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2536461
      Commit-Queue: Sathya Gunasekaran  <gsathya@chromium.org>
      Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#71188}
      4b139f76
    • Ulan Degenbaev's avatar
      [api] Introduce a single-threaded version of DefaultPlatform · a18a674b
      Ulan Degenbaev authored
      The new platform can be used in combination with --single-threaded.
      It disables background threads and thus avoids waiting on mutexes
      and condition variables completely, which is useful for V8 embedders
      that fork the V8 process after initialization.
      
      As a bonus the new platform allows use to test --single-threaded and
      has already uncovered an existing bug in parallel pointer updating code.
      
      Change-Id: I3446fa027d2a077641cdaac0cd08062a1acae176
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2416501
      Commit-Queue: Ulan Degenbaev <ulan@chromium.org>
      Reviewed-by: 's avatarMichael Lippautz <mlippautz@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#71187}
      a18a674b
    • Georg Neis's avatar
      Make PropertyCell's set_name method private · 466166b8
      Georg Neis authored
      It is only used during initialization.
      
      Bug: v8:7790
      Change-Id: I2105ad01413e3b398b3252d14e83c930c0dd3e74
      Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2536637Reviewed-by: 's avatarSantiago Aboy Solanes <solanes@chromium.org>
      Commit-Queue: Santiago Aboy Solanes <solanes@chromium.org>
      Auto-Submit: Georg Neis <neis@chromium.org>
      Cr-Commit-Position: refs/heads/master@{#71186}
      466166b8