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

Issue 2578193004: Remove ActiveScriptWrappableBase::m_scriptWrappable (Closed)

Created:
4 years ago by haraken
Modified:
4 years ago
Reviewers:
Michael Lippautz, sof
CC:
chromium-reviews, shans, tzik, eae+blinkwatch, fs, eric.carlson_apple.com, mcasas+watch+mediarecorder_chromium.org, apavlov+blink_chromium.org, kinuko+worker_chromium.org, Srirama, rwlbuis, jsbell+serviceworker_chromium.org, Yoav Weiss, awdf+watch_chromium.org, toyoshim+midi_chromium.org, yhirano+watch_chromium.org, blink-reviews-css, blink-reviews-html_chromium.org, hongchan, blink-reviews-dom_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, jkarlin+watch_chromium.org, wanming.lin, blink-reviews, falken+watch_chromium.org, gogerald+paymentswatch_chromium.org, blink-worker-reviews_chromium.org, Eric Willigers, kenneth.christiansen, nessy, rjwright, Peter Beverloo, nhiroki, Raymond Toy, feature-media-reviews_chromium.org, tommyw+watchlist_chromium.org, timvolodine, darktears, jsbell+idb_chromium.org, vcarbune.chromium, michaeln, shimazu+serviceworker_chromium.org, tyoshino+watch_chromium.org, emircan+watch+mediarecorder_chromium.org, shalamov, rouslan+payments_chromium.org, mlamouri+watch-blink_chromium.org, blink-reviews-animation_chromium.org, serviceworker-reviews, gasubic, feature-vr-reviews_chromium.org, shimazu+worker_chromium.org, kinuko+serviceworker, mcasas+watch+mediastream_chromium.org, cmumford, horo+watch_chromium.org, Mikhail, kinuko+fileapi, sebsg+paymentswatch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove ActiveScriptWrappableBase::m_scriptWrappable Thanks to Sigbjorn's CL (https://codereview.chromium.org/2577053002/), we can now obtain a pointer to ScriptWrappable from ActiveScriptWrappable. This CL removes ActiveScriptWrappableBase::m_scriptWrappable and reduces sizeof(void*) from each ActiveScriptWrappable object. BUG= Committed: https://crrev.com/206fee6c2a7ddb33c400a56adda7f53bf62157c2 Cr-Commit-Position: refs/heads/master@{#439091}

Patch Set 1 #

Patch Set 2 : temp #

Patch Set 3 : temp #

Total comments: 2

Patch Set 4 : temp #

Total comments: 1

Patch Set 5 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -119 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h View 1 2 3 4 3 chunks +15 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.cpp View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/Animation.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/FontFace.cpp View 1 2 3 1 chunk +2 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/css/MediaQueryList.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/MessagePort.cpp View 1 2 3 1 chunk +1 line, -4 lines 0 comments Download
M third_party/WebKit/Source/core/fileapi/FileReader.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLImageElement.cpp View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElement.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/streams/UnderlyingSourceBase.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/SharedWorker.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/workers/WorkerGlobalScope.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/battery/BatteryManager.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/broadcastchannel/BroadcastChannel.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeySession.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeys.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/eventsource/EventSource.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/fetch/Body.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/filesystem/DOMFileSystem.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/filesystem/FileWriter.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/mediarecorder/MediaRecorder.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediasource/MediaSource.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediasource/SourceBuffer.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaDevices.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/mediastream/MediaStreamTrack.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/netinfo/NetworkInformation.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/notifications/Notification.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCDataChannel.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/peerconnection/RTCPeerConnection.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/permissions/PermissionStatus.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/presentation/PresentationRequest.cpp View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/sensor/Sensor.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorker.cpp View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerRegistration.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/speech/SpeechRecognition.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/vr/VRDisplay.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/BaseAudioContext.cpp View 1 2 3 2 chunks +2 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/webaudio/ScriptProcessorNode.cpp View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIAccess.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/webmidi/MIDIPort.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/modules/websockets/DOMWebSocket.cpp View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
haraken
PTAL
4 years ago (2016-12-16 05:19:24 UTC) #3
sof
a well spotted improvement, lgtm from my side. https://codereview.chromium.org/2578193004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h File third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h (right): https://codereview.chromium.org/2578193004/diff/40001/third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h#newcode47 third_party/WebKit/Source/bindings/core/v8/ActiveScriptWrappable.h:47: ActiveScriptWrappable() ...
4 years ago (2016-12-16 06:36:24 UTC) #4
haraken
On 2016/12/16 06:36:24, sof wrote: > a well spotted improvement, lgtm from my side. > ...
4 years ago (2016-12-16 06:53:05 UTC) #5
sof
On 2016/12/16 06:53:05, haraken wrote: > On 2016/12/16 06:36:24, sof wrote: > > a well ...
4 years ago (2016-12-16 07:28:57 UTC) #6
sof
https://codereview.chromium.org/2578193004/diff/60001/third_party/WebKit/Source/core/html/HTMLImageElement.cpp File third_party/WebKit/Source/core/html/HTMLImageElement.cpp (right): https://codereview.chromium.org/2578193004/diff/60001/third_party/WebKit/Source/core/html/HTMLImageElement.cpp#newcode91 third_party/WebKit/Source/core/html/HTMLImageElement.cpp:91: nit: empty lines snuck during the search & replace, ...
4 years ago (2016-12-16 07:29:08 UTC) #7
haraken
> Fine style to explicitly define though, reduce it to "ActiveScriptWrappable() {}"? Done. "ActiveScriptWrappable() {}" ...
4 years ago (2016-12-16 07:39:25 UTC) #8
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/2578193004/80001
4 years ago (2016-12-16 07:39:44 UTC) #11
Michael Lippautz
lgtm (ActiveScriptWrappable() = default; would also work I guess ;))
4 years ago (2016-12-16 10:26:58 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/290340)
4 years ago (2016-12-16 11:42:04 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/2578193004/80001
4 years ago (2016-12-16 11:43:59 UTC) #16
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years ago (2016-12-16 12:16:54 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-16 12:18:43 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/206fee6c2a7ddb33c400a56adda7f53bf62157c2
Cr-Commit-Position: refs/heads/master@{#439091}

Powered by Google App Engine
This is Rietveld 408576698