Commit 1c9f59c
[builtins] Add machinery for multithreaded builtin generation
This is a reland of commit b022146
Changes since revert:
- Turn off OMT builtin generation when --reorder-builtins
- Make flag off-by-default, controlled by
v8_enable_concurrent_mksnapshot GN arg
Original change's description:
> Reland^2 "[builtins] Optimize and generate builtins off-main-thread"
>
> This is a reland of commit 9125716
>
> Changes since revert:
> - Drain the output queue of the dispatcher when input queue is
> unavailable or output queue is using too much memory
> - Fix data race in AddBuiltin
> - Disable when profiling
>
> Original change's description:
> > Reland "[builtins] Optimize and generate builtins off-main-thread"
> >
> > This is a reland of commit b132bd4
> >
> > Changes since revert:
> > - Don't request InstallCode interrupt during concurrent builtin
> > generation
> >
> > Original change's description:
> > > [builtins] Optimize and generate builtins off-main-thread
> > >
> > > Bug: 342692713
> > > Change-Id: I7c397ba93bc3b717a00ff4cfafa6919ad571cd43
> > > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5594234
> > > Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
> > > Commit-Queue: Shu-yu Guo <syg@chromium.org>
> > > Cr-Commit-Position: refs/heads/main@{#94750}
> >
> > Bug: 342692713
> > Change-Id: I64c7e482901763aadacc5c6c4a35b99d1c03481f
> > Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5670430
> > Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
> > Commit-Queue: Shu-yu Guo <syg@chromium.org>
> > Cr-Commit-Position: refs/heads/main@{#94784}
>
> Bug: 342692713
> Change-Id: I99cbcfb4576b3a5a256eb36c3ac926cfd02cb6fc
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5671629
> Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
> Commit-Queue: Shu-yu Guo <syg@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#95024}
Bug: 342692713
Change-Id: If867249bfae57ed7c5661b3f91768128bd39a323
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5710271
Reviewed-by: Nico Hartmann <nicohartmann@chromium.org>
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Cr-Commit-Position: refs/heads/main@{#97356}1 parent f54c8cd commit 1c9f59c
19 files changed
Lines changed: 800 additions & 182 deletions
File tree
- src
- builtins
- codegen
- compiler-dispatcher
- compiler
- turboshaft
- execution
- flags
- heap
- interpreter
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
106 | 109 | | |
107 | 110 | | |
108 | 111 | | |
| |||
529 | 532 | | |
530 | 533 | | |
531 | 534 | | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
532 | 538 | | |
533 | 539 | | |
534 | 540 | | |
| |||
2665 | 2671 | | |
2666 | 2672 | | |
2667 | 2673 | | |
| 2674 | + | |
| 2675 | + | |
| 2676 | + | |
| 2677 | + | |
| 2678 | + | |
| 2679 | + | |
| 2680 | + | |
| 2681 | + | |
| 2682 | + | |
2668 | 2683 | | |
2669 | 2684 | | |
2670 | 2685 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
129 | 132 | | |
130 | 133 | | |
131 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | 41 | | |
45 | 42 | | |
46 | 43 | | |
| |||
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
56 | 66 | | |
57 | | - | |
58 | 67 | | |
59 | 68 | | |
60 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| |||
0 commit comments