mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1161346 - Add missing capacity for unboxed arrays, r=jandem.
This commit is contained in:
parent
fce5ee9da4
commit
0013770a05
@ -1231,7 +1231,7 @@ UnboxedArrayObject::objectMovedDuringMinorGC(JSTracer* trc, JSObject* dst, JSObj
|
||||
UnboxedArrayObject::CapacityArray[] = {
|
||||
UINT32_MAX, // For CapacityMatchesLengthIndex.
|
||||
0, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 13, 16, 17, 18, 20, 24, 26, 32, 34, 36, 48, 52, 64, 68,
|
||||
128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288,
|
||||
72, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288,
|
||||
1048576, 2097152, 3145728, 4194304, 5242880, 6291456, 7340032, 8388608, 9437184, 11534336,
|
||||
13631488, 15728640, 17825792, 20971520, 24117248, 27262976, 31457280, 35651584, 40894464,
|
||||
46137344, 52428800, 59768832, MaximumCapacity
|
||||
@ -1246,23 +1246,23 @@ Pow2CapacityIndexes[] = {
|
||||
13, // 16
|
||||
19, // 32
|
||||
24, // 64
|
||||
26, // 128
|
||||
27, // 256
|
||||
28, // 512
|
||||
29, // 1024
|
||||
30, // 2048
|
||||
31, // 4096
|
||||
32, // 8192
|
||||
33, // 16384
|
||||
34, // 32768
|
||||
35, // 65536
|
||||
36, // 131072
|
||||
37, // 262144
|
||||
38, // 524288
|
||||
39 // 1048576
|
||||
27, // 128
|
||||
28, // 256
|
||||
29, // 512
|
||||
30, // 1024
|
||||
31, // 2048
|
||||
32, // 4096
|
||||
33, // 8192
|
||||
34, // 16384
|
||||
35, // 32768
|
||||
36, // 65536
|
||||
37, // 131072
|
||||
38, // 262144
|
||||
39, // 524288
|
||||
40 // 1048576
|
||||
};
|
||||
|
||||
static const uint32_t MebiCapacityIndex = 39;
|
||||
static const uint32_t MebiCapacityIndex = 40;
|
||||
|
||||
/* static */ uint32_t
|
||||
UnboxedArrayObject::chooseCapacityIndex(uint32_t capacity, uint32_t length)
|
||||
|
Loading…
Reference in New Issue
Block a user