Repository navigation
Commit 378c312
authored
build: pin V8 v8-14.9.207.39-12 (#2125)
### Description
Bottom of a stacked series that ports the iOS wrapper lifetime modes
(NativeScript/ios#558, #559's config, #561, #563; #576's leak probe is
redesigned in #2130) to Android. Not ported: #559's `rooted` mode (it
reads retain counts, which Java does not have) and #578 (a native-setter
fast path in the canary write handler; on Android a write to a Java
field still goes through V8 after the handler declines). No PR in the
series has performance numbers yet. This PR changes only the V8 pin, so
the new binary can be validated, and reverted, on its own.
`V8_RELEASE` moves from `v8-14.9.207.39-7` to `-12`. Same V8 version and
the same Android patches (`v8_resurrecting_finalizers.patch`, the JS
dispatch table reservation, the Android build patch), plus two fixes for
named interceptors and a fast path for stores a masking interceptor
declines:
- **`-10`, NativeScript/v8-buildscripts#11**
(`v8_nonmasking_own_lookup.patch`, crbug 585053531): an own-property
lookup on an object with a `kNonMasking` interceptor could end on a
prototype's interceptor (`Object.hasOwn` true for a prototype-only name,
`delete` reaching the prototype).
- **`-11`, NativeScript/v8-buildscripts#13**
(`v8_create_data_property_interceptor.patch`,
`v8_interceptor_define_descriptor.patch`):
`JSObject::CreateDataProperty` (define-semantics class fields once warm,
`v8::Object::CreateDataProperty`) bypassed named interceptors, and a
definer received a plain data property with every attribute inverted.
- **`-12`, NativeScript/v8-buildscripts#15**
(`v8_declined_interceptor_store_fast_path.patch`): when a masking named
interceptor declines a store and the receiver already has that name as
an own data field, the store IC overwrites the field directly instead of
going through `Runtime_StorePropertyPastInterceptor`. Behind
`--store-ic-declined-interceptor-fast-path`, on by default. On a phone,
an expando overwrite on a canary goes from 178 to 105 ns; adding a
property, writes that end at a prototype accessor, and everything else
are unchanged.
The canary mode later in this stack puts a masking named interceptor
(setter, deleter, definer) on wrapper templates, and needs both. Nothing
on Android uses a named interceptor on an instance template today, so
this PR alone changes no behaviour. `-8` and `-9` add only Apple TV and
Mac Catalyst variants.
### Testing
Full suite on an arm64 API 35 emulator with the `-11` arm64 libraries:
1773 specs, 0 failures. With the `-12` patch (the #15 CI arm64 library),
at the top of this stack on `main` at a59e6ba: 1895 / 1895 / 1909
specs, 0 failures, in `canary`/`all`, `canary`/`extended` and
`resurrecting`.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
<!-- coderabbit-ai-generated:v1 -->
## Summary by CodeRabbit
* **Chores**
* Updated the V8 release from 14.9.207.39-11 to 14.9.207.39-12.
* V8 installations now verify that each requested ABI matches the
selected release and record the release for each installed ABI.
Libraries and release stamps that do not match the selected release are
removed during installation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent a59e6ba commit 378c312
3 files changed
Lines changed: 25 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
71 | | - | |
72 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
73 | 79 | | |
74 | 80 | | |
75 | 81 | | |
76 | 82 | | |
77 | | - | |
| 83 | + | |
78 | 84 | | |
79 | 85 | | |
80 | 86 | | |
| |||
132 | 138 | | |
133 | 139 | | |
134 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
135 | 154 | | |
136 | 155 | | |
137 | 156 | | |
| |||
0 commit comments