mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 13:22:07 +00:00
chore: update WebKit to ESM bytecode cache preview build
Use WebKit preview-pr-132-c6592bfb which includes the ESM bytecode cache hooks (hasCachedModuleMetadata, createModuleRecordFromCache) cherry-picked onto the latest WebKit main. Also add 'override' keywords to the SourceProvider methods now that the base class has the virtual methods. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,7 @@ option(WEBKIT_VERSION "The version of WebKit to use")
|
||||
option(WEBKIT_LOCAL "If a local version of WebKit should be used instead of downloading")
|
||||
|
||||
if(NOT WEBKIT_VERSION)
|
||||
set(WEBKIT_VERSION 1d0216219a3c52cb85195f48f19ba7d5db747ff7)
|
||||
set(WEBKIT_VERSION preview-pr-132-c6592bfb)
|
||||
endif()
|
||||
|
||||
string(SUBSTRING ${WEBKIT_VERSION} 0 16 WEBKIT_VERSION_PREFIX)
|
||||
|
||||
@@ -91,16 +91,14 @@ public:
|
||||
};
|
||||
|
||||
// ESM bytecode cache support
|
||||
// TODO: Add 'override' once oven-sh/WebKit adds virtual methods to
|
||||
// JSC::SourceProvider for hasCachedModuleMetadata/createModuleRecordFromCache
|
||||
bool hasCachedModuleMetadata() const
|
||||
bool hasCachedModuleMetadata() const override
|
||||
{
|
||||
return m_cachedModuleMetadata.has_value();
|
||||
}
|
||||
|
||||
JSC::JSModuleRecord* createModuleRecordFromCache(
|
||||
JSC::JSGlobalObject* globalObject,
|
||||
const JSC::Identifier& moduleKey);
|
||||
const JSC::Identifier& moduleKey) override;
|
||||
|
||||
void updateCache(const UnlinkedFunctionExecutable* executable, const SourceCode&, CodeSpecializationKind kind, const UnlinkedFunctionCodeBlock* codeBlock);
|
||||
void cacheBytecode(const BytecodeCacheGenerator& generator);
|
||||
|
||||
Reference in New Issue
Block a user