The interfaces for compilation/evaluation/etc. in bindings/core/v8 should be:
- ScriptSourceCode/ScriptModule
- CachedMetadataHandler
and bindings/core/v8 shouldn't use ScriptResource (especially in classic scripts),
- To avoid unnecessary dependencies to ScriptResource, especially to prevent V8-side from being unnecessary affected by revalidation on MemoryCache, and
- Make ScriptSourceCode cleaner, i.e. clarify that ScriptSourceCode has all necessarily information for compilation/evaluation, without need to dereference ScriptResource pointer.
This issue aims to
- Replace ScriptSourceCode's ScriptResource member with CachedMetadataHandler and
- Remove ScriptResource usage from V8ScriptRunner and ScriptController.
(One exception is the dependencies between ScriptStreamer and ScriptResource and they will remain, at least in the short term)
Comment 1 by bugdroid1@chromium.org
, Nov 30 2017