Commit e0bcb6a
src: avoid common case heap allocation
Optimize three functions that pass on (part of) their JS arguments to
the JS function they call by stack-allocating the storage in the common
case.
PR-URL: #21409
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com>1 parent 8e5104b commit e0bcb6aCopy full SHA for e0bcb6a
File tree
Expand file treeCollapse file tree
3 files changed
+37
-15
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
3 files changed
+37
-15
lines changedOpen diff view settings
Collapse file
+2-9Lines changed: 2 additions & 9 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
131 | 131 | |
132 | 132 | |
133 | 133 | |
134 | | - |
135 | | - |
136 | | - |
137 | | - |
138 | | - |
| 134 | + |
139 | 135 | |
140 | 136 | |
141 | 137 | |
| ||
150 | 146 | |
151 | 147 | |
152 | 148 | |
153 | | - |
154 | | - |
155 | | - |
156 | | - |
| 149 | + |
157 | 150 | |
158 | 151 | |
159 | 152 | |
|
Collapse file
+34Lines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
40 | 40 | |
41 | 41 | |
42 | 42 | |
| 43 | + |
43 | 44 | |
44 | 45 | |
45 | 46 | |
| ||
315 | 316 | |
316 | 317 | |
317 | 318 | |
| 319 | + |
| 320 | + |
| 321 | + |
| 322 | + |
| 323 | + |
| 324 | + |
| 325 | + |
| 326 | + |
| 327 | + |
| 328 | + |
| 329 | + |
| 330 | + |
| 331 | + |
| 332 | + |
| 333 | + |
| 334 | + |
| 335 | + |
| 336 | + |
| 337 | + |
| 338 | + |
| 339 | + |
| 340 | + |
| 341 | + |
| 342 | + |
| 343 | + |
| 344 | + |
| 345 | + |
| 346 | + |
| 347 | + |
| 348 | + |
| 349 | + |
| 350 | + |
| 351 | + |
318 | 352 | |
319 | 353 | |
320 | 354 | |
|
Collapse file
+1-6Lines changed: 1 addition & 6 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
2 | 2 | |
3 | 3 | |
4 | | - |
5 | | - |
6 | 4 | |
7 | 5 | |
8 | 6 | |
| ||
309 | 307 | |
310 | 308 | |
311 | 309 | |
312 | | - |
313 | | - |
314 | | - |
315 | | - |
| 310 | + |
316 | 311 | |
317 | 312 | |
318 | 313 | |
|
0 commit comments