| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
[Refactor][NAPI] Move N-API core to common/ and split JS loader into js/napi This change reorganizes N-API sources to clarify ownership and reduce coupling: - Move N-API core from bindings/napi to common/napi with updated include paths and GN targets. - Split JS-specific loader into core/runtime/js/napi (napi_loader_js.*) and add a new BUILD target for it. - Relocate Lepus worklet/test N-API bindings under core/runtime/lepus_context/napi. - Update all includes, deps, and BUILD.gn references across platforms (Android, iOS, macOS, Windows, Harmony) and tests. - Adjust third_party and renderer deps to the new targets. Previous layout mixed engine-agnostic N-API with engine- or context- specific pieces. The new structure separates common N-API from JS engine loader and Lepus context bindings, improving modularity and maintainability. AutoSubmit: True doc: https://github.com/lynx-family/lynx/discussions/281 issue: m-6787224557 | 9 个月前 | |
[Optimize][JSRuntime] Switch runtime ownership to UnsafeOwningPtr and UnsafeWeakPtr across JS/NAPI paths Replace `std::shared_ptr`/`std::weak_ptr` usage for JS runtimes with `base::UnsafeOwningPtr` and `base::UnsafeWeakPtr` to make runtime ownership explicit and avoid accidental ref-count extension. Update NAPI runtime proxy creation to take `Runtime&` and store only a weak runtime handle, and adjust loader hooks to use `Lock()` instead of `lock()`. Refactor Global/App/JSExecutor/RuntimeManager to pass weak runtime handles through factories and callbacks, and migrate devtool and unit tests to the new pointer types and APIs. AutoSubmit: True issue: m-7282878213 | 5 个月前 | |
[Refactor][Runtime] Rename piper namespace to runtime::js across codebase Detailed description: Rename all piper namespace references to runtime::js throughout the project Batch modification of 584 files including headers, source files, and test files Update related include paths and namespace declarations Maintain original functionality with only naming standardization changes This refactoring primarily aims to unify code naming conventions by consolidating the original piper namespace under runtime::js, making the code structure clearer and more consistent. AutoSubmit: True doc: https://github.com/lynx-family/lynx/discussions/281 issue: m-6787224557 | 8 个月前 |