Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[JSC] Drop Instantiate hook in ES6 module loader
https://bugs.webkit.org/show_bug.cgi?id=178162 Reviewed by Sam Weinig. Source/JavaScriptCore: This patch is a part of patch series for module loader refactoring to adopt integrity="" parameters and introduce new whatwg module import mechanism. In this patch, we drop instantiate hook in module loader. This hook is originally introduced because it is defined in whatwg/loader spec. But this hook is not used in our implementation, and this hook won't be used since (1) whatwg/loader spec is abandoned, and (2) this type of hooks should be done in Service Workers. In addition, this patch applies some cleaning up of our module loader JS code to simplify things. This change paves the way to more efficient loader implementation with great flexibility to adopt integrity="" parameters. * builtins/ModuleLoaderPrototype.js: (requestInstantiate): (provideFetch): provide is changed to provideFetch since we only used this function with Fetch stage parameter. (fulfillInstantiate): Deleted. (commitInstantiated): Deleted. (instantiation): Deleted. They are merged into requestInstantiate code. This is simpler. (provide): Deleted. * jsc.cpp: * runtime/Completion.cpp: (JSC::loadAndEvaluateModule): (JSC::loadModule): * runtime/JSGlobalObject.cpp: * runtime/JSGlobalObject.h: * runtime/JSModuleLoader.cpp: (JSC::JSModuleLoader::provideFetch): (JSC::JSModuleLoader::provide): Deleted. Changed to provideFetch. (JSC::JSModuleLoader::instantiate): Deleted. Drop this hook. * runtime/JSModuleLoader.h: * runtime/ModuleLoaderPrototype.cpp: (JSC::moduleLoaderPrototypeInstantiate): Deleted. Drop this hook. Source/WebCore: Drop instantiate hooks. No behavior change. * bindings/js/JSDOMWindowBase.cpp: * bindings/js/JSWorkerGlobalScopeBase.cpp: Canonical link: https://commits.webkit.org/194413@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223173 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
1 parent
322b52e
commit 0dbf3399e105b0e3a6d86a38dbf38a2c165c38f8
Showing
12 changed files
with
99 additions
and
142 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.