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

Issue 2781303002: [ES6 modules] Introduce ScriptModuleHash (Closed)

Created:
3 years, 8 months ago by kouhei (in TOK)
Modified:
3 years, 8 months ago
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[ES6 modules] Introduce ScriptModuleHash This CL introduces ScriptModuleHash implementation, which allows ScriptModule to be used as a wtf::Hash{Table,Set,Map} key/value. BUG=594639 Review-Url: https://codereview.chromium.org/2781303002 Cr-Commit-Position: refs/heads/master@{#461979} Committed: https://chromium.googlesource.com/chromium/src/+/41f44b42ba111f77d99f545f3a64022d28577638

Patch Set 1 #

Patch Set 2 : remove defaults #

Total comments: 8

Patch Set 3 : add_tests #

Total comments: 4

Patch Set 4 : noempty #

Total comments: 5

Patch Set 5 : rebased #

Patch Set 6 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -2 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptModule.h View 1 2 3 4 3 chunks +59 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptModuleTest.cpp View 1 2 3 4 1 chunk +44 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 37 (15 generated)
kouhei (in TOK)
3 years, 8 months ago (2017-03-30 06:36:51 UTC) #2
kouhei (in TOK)
3 years, 8 months ago (2017-03-30 06:36:54 UTC) #3
yhirano
https://codereview.chromium.org/2781303002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h File third_party/WebKit/Source/bindings/core/v8/ScriptModule.h (right): https://codereview.chromium.org/2781303002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode39 third_party/WebKit/Source/bindings/core/v8/ScriptModule.h:39: if (m_module.isHashTableDeletedValue() && isHashTableDeletedValue() && rhs.isHashTableDeletedValue() is easier to ...
3 years, 8 months ago (2017-03-30 07:35:09 UTC) #5
haraken
I'd like to have a test. https://codereview.chromium.org/2781303002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h File third_party/WebKit/Source/bindings/core/v8/ScriptModule.h (right): https://codereview.chromium.org/2781303002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode45 third_party/WebKit/Source/bindings/core/v8/ScriptModule.h:45: if (lhsp == ...
3 years, 8 months ago (2017-03-30 13:20:14 UTC) #6
kouhei (in TOK)
https://codereview.chromium.org/2781303002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h File third_party/WebKit/Source/bindings/core/v8/ScriptModule.h (right): https://codereview.chromium.org/2781303002/diff/20001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode39 third_party/WebKit/Source/bindings/core/v8/ScriptModule.h:39: if (m_module.isHashTableDeletedValue() && On 2017/03/30 07:35:09, yhirano (slow) wrote: ...
3 years, 8 months ago (2017-04-04 05:19:26 UTC) #7
yhirano
lgtm
3 years, 8 months ago (2017-04-04 05:24:18 UTC) #8
haraken
+yutak for HashTraits. https://codereview.chromium.org/2781303002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2781303002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode13 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:13: if (!module.IsEmpty()) Is it possible that ...
3 years, 8 months ago (2017-04-04 05:26:06 UTC) #10
kouhei (in TOK)
https://codereview.chromium.org/2781303002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): https://codereview.chromium.org/2781303002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode13 third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp:13: if (!module.IsEmpty()) On 2017/04/04 05:26:06, haraken wrote: > > ...
3 years, 8 months ago (2017-04-04 05:54:32 UTC) #11
haraken
On 2017/04/04 05:54:32, kouhei wrote: > https://codereview.chromium.org/2781303002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp > File third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp (right): > > https://codereview.chromium.org/2781303002/diff/40001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.cpp#newcode13 > ...
3 years, 8 months ago (2017-04-04 06:06:18 UTC) #12
Yuta Kitamura
LGTM regarding hash function and traits. Using V8's hash value looks uncommon, but in this ...
3 years, 8 months ago (2017-04-04 06:21:51 UTC) #13
kouhei (in TOK)
https://codereview.chromium.org/2781303002/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/2781303002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode64 third_party/WebKit/Source/bindings/core/v8/ScriptModule.h:64: unsigned m_identityHash = 0; On 2017/04/04 06:21:51, Yuta Kitamura ...
3 years, 8 months ago (2017-04-04 06:36:55 UTC) #14
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/2781303002/60001
3 years, 8 months ago (2017-04-04 06:37:16 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/45393)
3 years, 8 months ago (2017-04-04 06:46:08 UTC) #19
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/2781303002/80001
3 years, 8 months ago (2017-04-04 15:00:13 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/387936)
3 years, 8 months ago (2017-04-04 15:11:00 UTC) #24
adamk
https://codereview.chromium.org/2781303002/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/2781303002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode64 third_party/WebKit/Source/bindings/core/v8/ScriptModule.h:64: unsigned m_identityHash = 0; On 2017/04/04 06:36:55, kouhei wrote: ...
3 years, 8 months ago (2017-04-05 01:01:03 UTC) #25
kouhei (in TOK)
On 2017/04/05 01:01:03, adamk wrote: > https://codereview.chromium.org/2781303002/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/2781303002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode64 > ...
3 years, 8 months ago (2017-04-05 01:05:01 UTC) #26
adamk
https://codereview.chromium.org/2781303002/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/2781303002/diff/60001/third_party/WebKit/Source/bindings/core/v8/ScriptModule.h#newcode64 third_party/WebKit/Source/bindings/core/v8/ScriptModule.h:64: unsigned m_identityHash = 0; On 2017/04/05 01:01:03, adamk wrote: ...
3 years, 8 months ago (2017-04-05 01:09:38 UTC) #27
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/2781303002/100001
3 years, 8 months ago (2017-04-05 02:15:49 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/73012)
3 years, 8 months ago (2017-04-05 02:27:30 UTC) #32
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/2781303002/100001
3 years, 8 months ago (2017-04-05 03:14:36 UTC) #34
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 04:44:01 UTC) #37
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/41f44b42ba111f77d99f545f3a64...

Powered by Google App Engine
This is Rietveld 408576698