Commit bcd8e41
committed
buffer: implement Uint8Array backed Buffer
With V8 4.4 removing the external array data API currently used by
Buffer, the new implementation uses the Uint8Array to back Buffer.
Buffers now have a maximum size of Smi::kMaxLength, as defined by V8.
Which is ~2 GB on 64 bit and ~1 GB on 32 bit.
The flag --use-old-buffer allows using the old Buffer implementation.
This flag will be removed once V8 4.4 has landed.1 parent 266526c commit bcd8e41
File tree
8 files changed
+624
-223
lines changed- lib
- src
- test/parallel
8 files changed
+624
-223
lines changedLarge diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
234 | 235 | | |
235 | 236 | | |
236 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| 150 | + | |
| 151 | + | |
149 | 152 | | |
150 | 153 | | |
151 | 154 | | |
| |||
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
168 | | - | |
| 171 | + | |
| 172 | + | |
169 | 173 | | |
170 | | - | |
171 | 174 | | |
172 | 175 | | |
173 | 176 | | |
174 | 177 | | |
175 | 178 | | |
176 | 179 | | |
177 | | - | |
178 | | - | |
179 | | - | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
184 | | - | |
| 185 | + | |
185 | 186 | | |
186 | 187 | | |
187 | 188 | | |
| |||
2844 | 2845 | | |
2845 | 2846 | | |
2846 | 2847 | | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
2847 | 2853 | | |
2848 | 2854 | | |
2849 | 2855 | | |
| |||
3072 | 3078 | | |
3073 | 3079 | | |
3074 | 3080 | | |
| 3081 | + | |
3075 | 3082 | | |
3076 | 3083 | | |
3077 | 3084 | | |
| |||
3208 | 3215 | | |
3209 | 3216 | | |
3210 | 3217 | | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
3211 | 3221 | | |
3212 | 3222 | | |
3213 | 3223 | | |
| |||
0 commit comments