Commit df435d3
src: build v8 tick processor as built-in source text modules
Instead of polyfilling it with vm.SourceTextModule,
use a built-in source text module loader so that we can
also build the code cache for it at build tiem to
embed the code cache for them in the binary.
Drive-by: instead of inferring how to compile a particular
built-in at run time, do the inferring at build time,
so the function-based built-ins can be compiled using
parameters quickly looked up from a static map, and
the builtins that should be compiled as source text
modules are known internally based on extension in
the source code (at run time, the extensions are all
removed).
PR-URL: #60518
Reviewed-By: Aditi Singh <aditisingh1400@gmail.com>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>1 parent 36869b5 commit df435d3Copy full SHA for df435d3
15 files changed
+595-317Lines changed: 595 additions & 317 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- lib/internal
- main
- src
- api
- test
- cctest
- parallel
- tools
Expand file treeCollapse file tree
Open diff view settings
Collapse file
lib/internal/main/prof_process.js
Copy file name to clipboard+28-1Lines changed: 28 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
3 | 15 | |
4 | 16 | |
5 | 17 | |
6 | 18 | |
7 | 19 | |
| 20 | + |
| 21 | + |
| 22 | + |
8 | 23 | |
9 | 24 | |
10 | | - |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
Collapse file
lib/internal/v8_prof_polyfill.js
Copy file name to clipboardExpand all lines: lib/internal/v8_prof_polyfill.js+47-24Lines changed: 47 additions & 24 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
30 | 30 | |
31 | 31 | |
32 | 32 | |
33 | | - |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
34 | 38 | |
35 | | - |
36 | | - |
37 | | - |
38 | | - |
39 | | - |
40 | | - |
41 | 39 | |
42 | 40 | |
43 | 41 | |
| 42 | + |
| 43 | + |
44 | 44 | |
45 | 45 | |
46 | 46 | |
| ||
68 | 68 | |
69 | 69 | |
70 | 70 | |
| 71 | + |
71 | 72 | |
72 | 73 | |
73 | 74 | |
74 | 75 | |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
80 | | - |
81 | | - |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
82 | 82 | |
83 | | - |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
84 | 91 | |
85 | | - |
| 92 | + |
86 | 93 | |
87 | 94 | |
88 | | - |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
89 | 105 | |
90 | 106 | |
91 | 107 | |
| ||
162 | 178 | |
163 | 179 | |
164 | 180 | |
165 | | - |
166 | | - |
167 | | - |
168 | | - |
169 | | - |
170 | | - |
171 | | - |
| 181 | + |
| 182 | + |
| 183 | + |
| 184 | + |
| 185 | + |
| 186 | + |
| 187 | + |
| 188 | + |
| 189 | + |
| 190 | + |
| 191 | + |
| 192 | + |
| 193 | + |
| 194 | + |
Collapse file
lib/internal/v8_prof_processor.js
Copy file name to clipboardExpand all lines: lib/internal/v8_prof_processor.js-54Lines changed: 0 additions & 54 deletions
This file was deleted.
Collapse file
+4Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
77 | 77 | |
78 | 78 | |
79 | 79 | |
| 80 | + |
80 | 81 | |
81 | 82 | |
82 | 83 | |
| ||
203 | 204 | |
204 | 205 | |
205 | 206 | |
| 207 | + |
206 | 208 | |
207 | 209 | |
208 | 210 | |
| ||
1443 | 1445 | |
1444 | 1446 | |
1445 | 1447 | |
| 1448 | + |
| 1449 | + |
1446 | 1450 | |
1447 | 1451 | |
1448 | 1452 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1056 | 1056 | |
1057 | 1057 | |
1058 | 1058 | |
1059 | | - |
| 1059 | + |
1060 | 1060 | |
1061 | 1061 | |
1062 | 1062 | |
|
Collapse file
src/builtin_info.cc
Copy file name to clipboard+48Lines changed: 48 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
Collapse file
src/builtin_info.h
Copy file name to clipboard+57Lines changed: 57 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
Collapse file
+1Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
57 | 57 | |
58 | 58 | |
59 | 59 | |
| 60 | + |
60 | 61 | |
61 | 62 | |
62 | 63 | |
|
0 commit comments