[blink] Don't share ScriptResources between module and classic scripts
Add ScriptResource::ScriptType in preparation for module streaming and stop sharing ScriptResources with different ScriptTypes. Currently the ScriptResource creates the ScriptStreamer which in turn is responsible for creating the v8::ScriptCompiler::ScriptStreamingTask. To support module streaming compilation we need to pass on the script type from the fetch location to V8. Bug: 1061857 Change-Id: I6d8d032b0f42dca904493f1e80b0ff31878aa123 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2556942 Commit-Queue: Camillo Bruni <cbruni@chromium.org> Reviewed-by:Hiroshige Hayashizaki <hiroshige@chromium.org> Reviewed-by:
Yutaka Hirano <yhirano@chromium.org> Reviewed-by:
Leszek Swirski <leszeks@chromium.org> Reviewed-by:
Kouhei Ueno <kouhei@chromium.org> Cr-Commit-Position: refs/heads/master@{#833325}
Showing
Please register or sign in to comment