[ES6 modules] Introduce ModuleTreeLinker

Desktop / Chromium - kouhei [chromium.org] - 19 April 2017 04:00 EDT

This CL introduces ModuleTreeLinker, which implements "internal module script graph fetching procedure": https://html.spec.whatwg.org/multipage/webappapis.html#internal-module-script-graph-fetching-procedure

See below diagram for where it stands in the stack: https://docs.google.com/document/d/1vjiWxwhg9D0GNNOYgw3AxMG0iKOC9I3jlID4GTgZsac/edit#heading=h.47x0qrpzjbj4

BUG=594639

Review-Url: https://codereview.chromium.org/2823803003 Cr-Commit-Position: refs/heads/master@{#465524}

bdc9faa [ES6 modules] Introduce ModuleTreeLinker
third_party/WebKit/Source/core/BUILD.gn | 1 +
third_party/WebKit/Source/core/dom/Modulator.h | 1 +
.../WebKit/Source/core/dom/ModuleScript.cpp | 24 +-
third_party/WebKit/Source/core/dom/ModuleScript.h | 7 +-
third_party/WebKit/Source/core/loader/BUILD.gn | 4 +
.../core/loader/modulescript/ModuleTreeLinker.cpp | 460 +++++++++++++++++++++
.../core/loader/modulescript/ModuleTreeLinker.h | 94 +++++
.../modulescript/ModuleTreeLinkerRegistry.cpp | 39 ++
.../loader/modulescript/ModuleTreeLinkerRegistry.h | 46 +++
.../loader/modulescript/ModuleTreeLinkerTest.cpp | 451 ++++++++++++++++++++
10 files changed, 1122 insertions(+), 5 deletions(-)

Upstream: git.chromium.org


  • Share