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

Issue 2033583007: Store ScriptWrappableVisitor in V8PerIsolateData (Closed)

Created:
4 years, 6 months ago by Marcel Hlopko
Modified:
4 years, 6 months ago
CC:
blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Store ScriptWrappableVisitor in V8PerIsolateData Store a reference of ScriptWrappableVisitor also in V8PerIsolateData so it can be accessed from blink code easily (for example when oilpan will want to trace ScriptWrappableVisitor's marking deque :) LOG=no BUG=468240 Committed: https://crrev.com/88755a1fef200479b7c404fba5ab5808560415c6 Cr-Commit-Position: refs/heads/master@{#398003}

Patch Set 1 #

Patch Set 2 : Perform cleanup on destroy #

Patch Set 3 : Use unique_ptr instead #

Total comments: 2

Patch Set 4 : Use unique_ptr correctly #

Total comments: 1

Patch Set 5 : Polish #

Patch Set 6 : No need to deinitialize #

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

Messages

Total messages: 23 (9 generated)
Marcel Hlopko
Ptal.
4 years, 6 months ago (2016-06-03 11:58:37 UTC) #2
haraken
OwnPtr is deprecated. Can we use unique_ptr? (Even if you go with OwnPtr, you need ...
4 years, 6 months ago (2016-06-03 12:14:03 UTC) #3
Marcel Hlopko
Am I using it correctly? First time user of smart pointers :)
4 years, 6 months ago (2016-06-03 12:29:58 UTC) #4
haraken
https://codereview.chromium.org/2033583007/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/2033583007/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp#newcode295 third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp:295: isolate->SetEmbedderHeapTracer(visitor); unique_ptr<ScriptWrappableVisitor> visitor = new ...; isolate->SetEmbedderHeapTracer(visitor.get()); V8PerIsolateData::from(isolate)->setScriptWrappableVisitor(std::move(visitor)); https://codereview.chromium.org/2033583007/diff/40001/third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.h ...
4 years, 6 months ago (2016-06-03 12:32:07 UTC) #5
Marcel Hlopko
Is std::move in setter correct usage? Thank you for the lesson, btw :)
4 years, 6 months ago (2016-06-03 12:44:44 UTC) #6
haraken
LGTM https://codereview.chromium.org/2033583007/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp File third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp (right): https://codereview.chromium.org/2033583007/diff/60001/third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp#newcode293 third_party/WebKit/Source/bindings/core/v8/V8Initializer.cpp:293: std::unique_ptr<ScriptWrappableVisitor> visitor = std::unique_ptr<ScriptWrappableVisitor>(new ScriptWrappableVisitor(isolate)); std::unique_ptr<> visitor(new ...);
4 years, 6 months ago (2016-06-03 14:22:45 UTC) #7
haraken
On 2016/06/03 12:44:44, Marcel Hlopko wrote: > Is std::move in setter correct usage? Thank you ...
4 years, 6 months ago (2016-06-03 14:22:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2033583007/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2033583007/80001
4 years, 6 months ago (2016-06-03 15:04:35 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/238682)
4 years, 6 months ago (2016-06-03 15:49:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2033583007/100001
4 years, 6 months ago (2016-06-06 08:17:23 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/82358)
4 years, 6 months ago (2016-06-06 09:15:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2033583007/100001
4 years, 6 months ago (2016-06-06 10:41:47 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-06 11:10:17 UTC) #21
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 11:11:43 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/88755a1fef200479b7c404fba5ab5808560415c6
Cr-Commit-Position: refs/heads/master@{#398003}

Powered by Google App Engine
This is Rietveld 408576698