Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Issue 2566513002: Create bare-bones ScriptModule class (Closed)

Created:
4 years ago by adamk
Modified:
3 years, 11 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org, dominicc (has gone to gerrit)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create bare-bones ScriptModule class Provides a ScriptModule wrapper around v8::Module, as well as primordial forms of the three basic operations on modules: - compile(), a static method which takes a string and returns a ScriptModule - instantiate(), which "links" a module with its dependencies (the initial implementation does no actual linking) - evaluate(), which runs the module (and its dependencies; naturally this version doesn't do the latter) Landing this in its early state makes it easier for others working on <script type="module"> support to make progress on other CLs, many of which will interact with this class BUG=594639 Review-Url: https://codereview.chromium.org/2566513002 Cr-Commit-Position: refs/heads/master@{#443112} Committed: https://chromium.googlesource.com/chromium/src/+/57c86c65d60a0e5da917fa3cb6c6b374821b7984

Patch Set 1 #

Patch Set 2 : Add instantiate and evaluate methods #

Patch Set 3 : Rebased #

Patch Set 4 : Add more TODOs #

Total comments: 9

Patch Set 5 : haraken comments #

Total comments: 4

Patch Set 6 : Update copyrights #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -0 lines) Patch
M third_party/WebKit/Source/bindings/bindings.gni View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/ScriptModule.h View 1 2 3 4 5 1 chunk +41 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp View 1 2 3 4 5 1 chunk +56 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp View 1 2 3 4 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
adamk
3 years, 11 months ago (2017-01-10 20:21:32 UTC) #3
kouhei (in TOK)
lgtm haraken: This is to unblock split&landing https://codereview.chromium.org/2555653002/ https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h File third_party/WebKit/Source/bindings/core/v8/ScriptModule.h (right): https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode36 third_party/WebKit/Source/bindings/core/v8/ScriptModule.h:36: RefPtr<SharedPersistent<v8::Module>> ...
3 years, 11 months ago (2017-01-10 22:48:38 UTC) #6
adamk
https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h File third_party/WebKit/Source/bindings/core/v8/ScriptModule.h (right): https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode36 third_party/WebKit/Source/bindings/core/v8/ScriptModule.h:36: RefPtr<SharedPersistent<v8::Module>> m_module; On 2017/01/10 22:48:38, kouhei wrote: > Do ...
3 years, 11 months ago (2017-01-10 22:53:18 UTC) #7
kouhei (in TOK)
On 2017/01/10 22:53:18, adamk wrote: > https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h > File third_party/WebKit/Source/bindings/core/v8/ScriptModule.h (right): > > https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode36 > ...
3 years, 11 months ago (2017-01-10 22:58:29 UTC) #8
haraken
https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode27 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:27: if (!v8Call(v8::ScriptCompiler::CompileModule(isolate, &scriptSource), module, I want to create a ...
3 years, 11 months ago (2017-01-11 02:21:35 UTC) #11
adamk
https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2566513002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode27 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:27: if (!v8Call(v8::ScriptCompiler::CompileModule(isolate, &scriptSource), module, On 2017/01/11 02:21:35, haraken wrote: ...
3 years, 11 months ago (2017-01-11 18:27:30 UTC) #12
haraken
LGTM https://codereview.chromium.org/2566513002/diff/80001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2566513002/diff/80001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode1 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:1: // Copyright 2016 The Chromium Authors. All rights ...
3 years, 11 months ago (2017-01-11 23:40:59 UTC) #13
adamk
Thanks for the review https://codereview.chromium.org/2566513002/diff/80001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2566513002/diff/80001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode1 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:1: // Copyright 2016 The Chromium ...
3 years, 11 months ago (2017-01-11 23:43:15 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2566513002/100001
3 years, 11 months ago (2017-01-11 23:44:29 UTC) #17
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 01:36:49 UTC) #20
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/57c86c65d60a0e5da917fa3cb6c6...

Powered by Google App Engine
This is Rietveld 408576698