This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Commit 297ac5b
committed
Bug 1532376 - Fix places where we don't respect the shouldPretenure flag when creating an object r=jandem
This adds an overload of GetInitialHeap that takes an ObjectGroup* instead of a Class* and also takes into account whether the group's shouldPreTenure flag is set. I moved this to JSObject-inl.h too.
I removed the heap parameter in a few places, in particular in NewDenseCopyOnWriteArray which required a bunch of changes elsewhere including the JITs. I left the heap parameter intact for environment objects where we may have reason prefer these objects to be allocated in the tenure heap. It's possible we should just remove all these parameters too and make allocation more uniform.
Differential Revision: https://phabricator.services.mozilla.com/D223241 parent ba8662d commit 297ac5b
File tree
19 files changed
+72
-48
lines changed- js/src
- builtin
- jit
- vm
19 files changed
+72
-48
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4064 | 4064 | | |
4065 | 4065 | | |
4066 | 4066 | | |
4067 | | - | |
| 4067 | + | |
4068 | 4068 | | |
4069 | 4069 | | |
4070 | 4070 | | |
| |||
4153 | 4153 | | |
4154 | 4154 | | |
4155 | 4155 | | |
4156 | | - | |
| 4156 | + | |
4157 | 4157 | | |
4158 | 4158 | | |
4159 | 4159 | | |
| |||
4171 | 4171 | | |
4172 | 4172 | | |
4173 | 4173 | | |
4174 | | - | |
4175 | | - | |
| 4174 | + | |
4176 | 4175 | | |
4177 | 4176 | | |
| 4177 | + | |
| 4178 | + | |
4178 | 4179 | | |
4179 | 4180 | | |
4180 | 4181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
83 | | - | |
| 82 | + | |
84 | 83 | | |
85 | 84 | | |
86 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1553 | 1553 | | |
1554 | 1554 | | |
1555 | 1555 | | |
1556 | | - | |
| 1556 | + | |
1557 | 1557 | | |
1558 | 1558 | | |
1559 | 1559 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2447 | 2447 | | |
2448 | 2448 | | |
2449 | 2449 | | |
2450 | | - | |
2451 | 2450 | | |
2452 | 2451 | | |
2453 | | - | |
| 2452 | + | |
2454 | 2453 | | |
2455 | 2454 | | |
2456 | 2455 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6608 | 6608 | | |
6609 | 6609 | | |
6610 | 6610 | | |
6611 | | - | |
6612 | | - | |
| 6611 | + | |
6613 | 6612 | | |
6614 | 6613 | | |
6615 | 6614 | | |
| |||
6623 | 6622 | | |
6624 | 6623 | | |
6625 | 6624 | | |
6626 | | - | |
| 6625 | + | |
6627 | 6626 | | |
6628 | 6627 | | |
6629 | 6628 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | | - | |
1258 | 1257 | | |
1259 | 1258 | | |
1260 | 1259 | | |
1261 | 1260 | | |
1262 | | - | |
1263 | 1261 | | |
1264 | 1262 | | |
1265 | 1263 | | |
| |||
1269 | 1267 | | |
1270 | 1268 | | |
1271 | 1269 | | |
1272 | | - | |
| 1270 | + | |
1273 | 1271 | | |
1274 | 1272 | | |
1275 | 1273 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
617 | 617 | | |
618 | 618 | | |
619 | 619 | | |
620 | | - | |
621 | | - | |
622 | | - | |
623 | 620 | | |
624 | 621 | | |
625 | 622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | | - | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
111 | 117 | | |
112 | 118 | | |
113 | 119 | | |
| |||
887 | 893 | | |
888 | 894 | | |
889 | 895 | | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
890 | 900 | | |
891 | 901 | | |
892 | 902 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5288 | 5288 | | |
5289 | 5289 | | |
5290 | 5290 | | |
5291 | | - | |
| 5291 | + | |
5292 | 5292 | | |
5293 | 5293 | | |
5294 | 5294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
619 | 619 | | |
620 | 620 | | |
621 | 621 | | |
622 | | - | |
| 622 | + | |
623 | 623 | | |
624 | 624 | | |
625 | 625 | | |
| |||
996 | 996 | | |
997 | 997 | | |
998 | 998 | | |
999 | | - | |
| 999 | + | |
1000 | 1000 | | |
1001 | 1001 | | |
1002 | 1002 | | |
| |||
0 commit comments