Commit b3e1034
buffer: use v8 fast API calls for
Use v8 fast API calls for Buffer.byteLength with sequential one-byte
strings.
PR-URL: #46616
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: James M Snell <jasnell@gmail.com>Buffer.byteLength implementation1 parent 04166fe commit b3e1034Copy full SHA for b3e1034
File tree
Expand file treeCollapse file tree
2 files changed
+28
-3
lines changedOpen diff view settings
Filter options
- src
Expand file treeCollapse file tree
2 files changed
+28
-3
lines changedOpen diff view settings
Collapse file
+25-3Lines changed: 25 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
32 | 32 | |
33 | 33 | |
34 | 34 | |
| 35 | + |
35 | 36 | |
36 | 37 | |
37 | 38 | |
| ||
786 | 787 | |
787 | 788 | |
788 | 789 | |
789 | | - |
| 790 | + |
790 | 791 | |
791 | 792 | |
792 | 793 | |
793 | 794 | |
794 | 795 | |
795 | 796 | |
796 | 797 | |
| 798 | + |
| 799 | + |
| 800 | + |
| 801 | + |
| 802 | + |
| 803 | + |
| 804 | + |
| 805 | + |
| 806 | + |
| 807 | + |
| 808 | + |
| 809 | + |
| 810 | + |
| 811 | + |
| 812 | + |
797 | 813 | |
798 | 814 | |
799 | 815 | |
| ||
1368 | 1384 | |
1369 | 1385 | |
1370 | 1386 | |
1371 | | - |
| 1387 | + |
| 1388 | + |
| 1389 | + |
| 1390 | + |
| 1391 | + |
1372 | 1392 | |
1373 | 1393 | |
1374 | 1394 | |
| ||
1429 | 1449 | |
1430 | 1450 | |
1431 | 1451 | |
1432 | | - |
| 1452 | + |
| 1453 | + |
| 1454 | + |
1433 | 1455 | |
1434 | 1456 | |
1435 | 1457 | |
|
Collapse file
src/node_external_reference.h
Copy file name to clipboardExpand all lines: src/node_external_reference.h+3Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
10 | 10 | |
11 | 11 | |
12 | 12 | |
| 13 | + |
| 14 | + |
13 | 15 | |
14 | 16 | |
15 | 17 | |
| ||
20 | 22 | |
21 | 23 | |
22 | 24 | |
| 25 | + |
23 | 26 | |
24 | 27 | |
25 | 28 | |
|
0 commit comments