mirror of
https://github.com/electron/electron.git
synced 2026-10-28 11:44:46 +08:00
* fix: derive V8 cache compatibility from net patch effects Replace the custom V8 cache salt and Wasm embedded blob guard from #54234 with embedder string version hashing. Generate -electron.<16-hex fingerprint> during GN configuration from the net committed changes between Chromium's pinned V8 revision and patched HEAD. This requires no release time bookkeeping and preserves cache identities across packaging only changes to the patch series. * build: fix metadata generation and restoration * build: address review follow-ups - Keep code cache hash checks free of process global mutation - Limit the helper to DCHECK enabled builds - Make the fingerprint algorithm self contained and include it in the source cache key - Allow an explicit packager identity - Skip Wasm tests without generated assets - Correct the documentation structure * build: simplify V8 fingerprint regeneration tracking Track Git HEAD and the exported V8 patch series instead of symbolic branch refs, packed-refs, or Git directories. Detached checkout updates and patch exports trigger regeneration, while equivalent re-exports preserve the committed source fingerprint. Reject reftable storage explicitly and provide actionable diagnostics when the checkout does not contain Chromium's pinned V8 revision. * fix: gn check for release builds * chore: convert to vitest imports * chore: cleanup testing binding dependency * chore: update patches * chore: remove redundant dep declaration
18 lines
509 B
C++
18 lines
509 B
C++
// Copyright (c) 2026 Microsoft Corporation.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ELECTRON_SHELL_COMMON_V8_CODE_CACHE_TEST_HELPERS_H_
|
|
#define ELECTRON_SHELL_COMMON_V8_CODE_CACHE_TEST_HELPERS_H_
|
|
|
|
#include <cstdint>
|
|
#include <string>
|
|
|
|
namespace electron::testing {
|
|
|
|
[[nodiscard]] uint32_t ComputeV8VersionHash(const std::string& embedder);
|
|
|
|
} // namespace electron::testing
|
|
|
|
#endif // ELECTRON_SHELL_COMMON_V8_CODE_CACHE_TEST_HELPERS_H_
|