Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ platform), dispatch the workflow with `platforms: android` or `platforms: ios`.
| `v8_nonmasking_own_lookup.patch` | Fixes own-property lookups on an object with a `kNonMasking` named interceptor when its prototype has a named interceptor of its own ([crbug 585053531](https://issues.chromium.org/issues/585053531)). `LookupIterator::NextInternal` meant to treat the prototype's interceptor as invisible but `continue`d out of the walk while still in a found state, so the lookup ended on the prototype: its properties read as own, `delete` removed them from the prototype, and sets and `defineProperty` went to the prototype's interceptor instead of the receiver's. The patch steps past the invisible interceptor within the same holder. Indexed interceptors are no longer skipped, as upstream since 892dda71342. Applied on every platform. |
| `v8_create_data_property_interceptor.patch` | `JSObject::CreateDataProperty`, behind class fields (`DefineNamedOwnIC_Slow`) and `v8::Object::CreateDataProperty`, added the property without consulting the object's named interceptor: its fast path follows a cached map transition, and its slow path's `CheckIfCanDefineAsConfigurable` advances the lookup past the interceptor before defining. A field defined on an object with a named interceptor therefore landed on the object itself once the class's initializer had feedback. For objects whose own lookup reaches a named interceptor, the patch skips the fast path and defines through the interceptor with define semantics: the definer goes first and the configurability checks run only if it declines, as on the class-field path without feedback. An assignment that adds a property (`SetSuperProperty`) still does not call the definer, which V8's own interceptor tests require; it passes `EnforceDefineSemantics::kSet`. Adds cctest `PropertyDefinerCallbackInCreateDataProperty`. Applied on every platform. |
| `v8_interceptor_define_descriptor.patch` | The define-semantics branch of `JSObject::DefineOwnPropertyIgnoreAttributes` built the descriptor it hands a named interceptor's definer with each attribute test inverted, so a plain data property (`NONE`) arrived as `{writable: false, enumerable: false, configurable: false}`. Adds cctest `PropertyDefinerCallbackClassField`. Applied on every platform. |
| `v8_declined_interceptor_store_fast_path.patch` | Speeds up stores to an existing property of an object with a masking named interceptor whose setter declines (returns `Intercepted::kNo`), as the runtimes' write-observing setters do. V8 finishes every declined store in `Runtime_StorePropertyPastInterceptor`, which repeats the lookup and runs a generic `SetProperty` (about 150 ns per store on an M-series Mac, versus about 9 ns when the setter intercepts). When the IC is computed, the patch records in the store handler whether the receiver's map has an own, writable, fast-mode data field for the name, and its descriptor index. After a declined setter, the handler overwrites that field in place if the receiver still has the same map and that map is not deprecated; anything else continues in the runtime exactly as before, never through an IC miss, so the setter is never called twice. Constness, representation and field type are read live, so const fields and values that need generalization take the runtime path. Globals, access-checked objects, dictionary-mode objects and protector names are excluded when the IC is computed. Behaviour is unchanged; `--no-store-ic-declined-interceptor-fast-path` turns the fast path off. With the flag off the behaviour is identical but the code is not byte-identical: the handler still loads the receiver map before calling the setter, and `Runtime_StorePropertyPastInterceptor` still increments the new `V8.StorePropertyPastInterceptor` stats counter. Adds cctests `DeclinedInterceptorStore*`. Not yet submitted upstream; intended for an upstream CL. Applied on every platform. |
| `android_build.patch` | Lowers chromium's minimum SDK to 21 (that floor is for Java/dex tooling; this builds only the native target), makes `android_ndk_root` a gn arg, and widens the hard Linux-host assert so macOS can build the 64-bit ABIs. |
| `v8_catalyst_jit_write_protect.patch` | Mac Catalyst compiles as iOS (`TARGET_OS_IPHONE`), so V8 picks its iOS JIT-memory model, which assumes `MAP_JIT` pages are writable and executable at once. A Catalyst process runs on macOS, where Apple silicon makes `MAP_JIT` pages per-thread W^X, so the first JIT code write faults (`SIGBUS`). The patch gives Catalyst the macOS model: `pthread_jit_write_protect_np` around code writes (resolved with `dlsym`, since the SDK marks it unavailable on Catalyst) and the macOS code-range pre-commit. Applied to iOS fetches only; it is a no-op outside Catalyst. |

Expand Down
Loading
Loading