Commit e7d101f
bootstrap: support more builtins in the embedded code cache
This patch:
- Make NativeModuleLoader::LookupAndCompile() detect parameters based
on module IDs. This allows us to compile more builtins when
generating the embedded bootstrap, including
- internal/per_context/*
- internal/bootstrap/*
- internal/main/*
- Move pre_execution.js to lib/internal/process as it needs to be
compiled as a regular built-in module, unlike other scripts
in lib/internal/bootstrap
- Move markBootstrapComplete() to the performance binding instead of
making it a function-wrapper-based global to reduce number of
special cases.
PR-URL: #44018
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>1 parent 116dccc commit e7d101fCopy full SHA for e7d101f
File tree
Expand file treeCollapse file tree
27 files changed
+156
-137
lines changedOpen diff view settings
Filter options
- lib/internal
- bootstrap
- main
- process
- v8
- src
- api
- test/parallel
Expand file treeCollapse file tree
27 files changed
+156
-137
lines changedOpen diff view settings
Collapse file
lib/internal/bootstrap/loaders.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/loaders.js+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
326 | 326 | |
327 | 327 | |
328 | 328 | |
| 329 | + |
| 330 | + |
329 | 331 | |
330 | 332 | |
331 | 333 | |
|
Collapse file
lib/internal/bootstrap/node.js
Copy file name to clipboardExpand all lines: lib/internal/bootstrap/node.js+2-2Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
| 9 | + |
10 | 10 | |
11 | 11 | |
12 | 12 | |
| ||
28 | 28 | |
29 | 29 | |
30 | 30 | |
31 | | - |
| 31 | + |
32 | 32 | |
33 | 33 | |
34 | 34 | |
|
Collapse file
lib/internal/main/.eslintrc.yaml
Copy file name to clipboardExpand all lines: lib/internal/main/.eslintrc.yaml-2Lines changed: 0 additions & 2 deletions
This file was deleted.
Collapse file
lib/internal/main/check_syntax.js
Copy file name to clipboardExpand all lines: lib/internal/main/check_syntax.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
8 | | - |
| 7 | + |
| 8 | + |
| 9 | + |
9 | 10 | |
10 | 11 | |
11 | 12 | |
|
Collapse file
lib/internal/bootstrap/environment.js lib/internal/main/environment.jslib/internal/bootstrap/environment.js renamed to lib/internal/main/environment.js
Copy file name to clipboardExpand all lines: lib/internal/main/environment.js+3-3Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
4 | 4 | |
5 | 5 | |
6 | 6 | |
7 | | - |
8 | 7 | |
9 | | - |
10 | | - |
| 8 | + |
| 9 | + |
| 10 | + |
11 | 11 | |
12 | 12 | |
13 | 13 | |
Collapse file
lib/internal/main/eval_stdin.js
Copy file name to clipboardExpand all lines: lib/internal/main/eval_stdin.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | | - |
| 6 | + |
| 7 | + |
| 8 | + |
8 | 9 | |
9 | 10 | |
10 | 11 | |
|
Collapse file
lib/internal/main/eval_string.js
Copy file name to clipboardExpand all lines: lib/internal/main/eval_string.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
11 | | - |
12 | | - |
| 11 | + |
| 12 | + |
| 13 | + |
13 | 14 | |
14 | 15 | |
15 | 16 | |
|
Collapse file
lib/internal/main/inspect.js
Copy file name to clipboardExpand all lines: lib/internal/main/inspect.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
3 | 3 | |
4 | 4 | |
5 | 5 | |
6 | | - |
7 | | - |
| 6 | + |
| 7 | + |
| 8 | + |
8 | 9 | |
9 | 10 | |
10 | 11 | |
|
Collapse file
lib/internal/main/mksnapshot.js
Copy file name to clipboardExpand all lines: lib/internal/main/mksnapshot.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
114 | 114 | |
115 | 115 | |
116 | 116 | |
117 | | - |
| 117 | + |
118 | 118 | |
119 | 119 | |
120 | 120 | |
|
Collapse file
lib/internal/main/print_help.js
Copy file name to clipboardExpand all lines: lib/internal/main/print_help.js+3-2Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
20 | 20 | |
21 | 21 | |
22 | 22 | |
23 | | - |
24 | | - |
| 23 | + |
| 24 | + |
| 25 | + |
25 | 26 | |
26 | 27 | |
27 | 28 | |
|
0 commit comments