Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Issue 5598762307158016: Issue 1550 - Get rid of V8ValueHolder.h (Closed)

Created:
Nov. 10, 2014, 9:18 a.m. by sergei
Modified:
May 23, 2016, 1:49 p.m.
Reviewers:
Oleksandr
CC:
Felix Dahlke, Eric, René Jeschke
Visibility:
Public.

Description

- make JsValue movable - remove V8ValueHolder.h - use pointer (std::unique_ptr<v8::Persistent<v8::Context>>) instead of member to avoid including v8.h in the public library header.

Patch Set 1 #

Patch Set 2 : update #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Patch Set 5 : rebase, no changes #

Total comments: 1

Patch Set 6 : fix JsValue destructor #

Total comments: 2

Patch Set 7 : fix outdated comment #

Total comments: 8

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -116 lines) Patch
M include/AdblockPlus/FilterEngine.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M include/AdblockPlus/JsEngine.h View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M include/AdblockPlus/JsValue.h View 1 2 3 4 5 6 7 3 chunks +3 lines, -3 lines 0 comments Download
M include/AdblockPlus/Notification.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
D include/AdblockPlus/V8ValueHolder.h View 1 2 3 4 1 chunk +0 lines, -82 lines 0 comments Download
M src/FilterEngine.cpp View 1 2 3 4 5 6 7 9 chunks +11 lines, -11 lines 0 comments Download
M src/JsContext.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/JsEngine.cpp View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M src/JsValue.cpp View 1 2 3 4 5 6 7 3 chunks +12 lines, -6 lines 0 comments Download
M src/Notification.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 19
sergei
Nov. 10, 2014, 9:45 a.m. (2014-11-10 09:45:40 UTC) #1
Wladimir Palant
This looks fine to me but I think that Felix has a better understanding of ...
Nov. 11, 2014, 9:06 p.m. (2014-11-11 21:06:03 UTC) #2
Felix Dahlke
Considering that we have to stick to C++03 in libadblockplus for the time being, we ...
Feb. 5, 2015, 5:18 a.m. (2015-02-05 05:18:58 UTC) #3
sergei
June 11, 2015, 1:25 p.m. (2015-06-11 13:25:48 UTC) #4
sergei
rebase
Jan. 22, 2016, 9:28 a.m. (2016-01-22 09:28:20 UTC) #5
Oleksandr
https://codereview.adblockplus.org/5598762307158016/diff/29334267/include/AdblockPlus/JsValue.h File include/AdblockPlus/JsValue.h (right): https://codereview.adblockplus.org/5598762307158016/diff/29334267/include/AdblockPlus/JsValue.h#newcode133 include/AdblockPlus/JsValue.h:133: std::unique_ptr<v8::Persistent<v8::Value>> value; Aren't we leaking the value here? The ...
Jan. 22, 2016, 12:11 p.m. (2016-01-22 12:11:15 UTC) #6
sergei
On 2016/01/22 12:11:15, Oleksandr wrote: > https://codereview.adblockplus.org/5598762307158016/diff/29334267/include/AdblockPlus/JsValue.h > File include/AdblockPlus/JsValue.h (right): > > https://codereview.adblockplus.org/5598762307158016/diff/29334267/include/AdblockPlus/JsValue.h#newcode133 > ...
Jan. 22, 2016, 1:17 p.m. (2016-01-22 13:17:16 UTC) #7
Oleksandr
LGTM with one nit. https://codereview.adblockplus.org/5598762307158016/diff/29334338/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): https://codereview.adblockplus.org/5598762307158016/diff/29334338/include/AdblockPlus/Notification.h#newcode58 include/AdblockPlus/Notification.h:58: * @param jsValue `JsValuePtr` notification ...
Jan. 22, 2016, 2:02 p.m. (2016-01-22 14:02:37 UTC) #8
sergei
https://codereview.adblockplus.org/5598762307158016/diff/29334338/include/AdblockPlus/Notification.h File include/AdblockPlus/Notification.h (right): https://codereview.adblockplus.org/5598762307158016/diff/29334338/include/AdblockPlus/Notification.h#newcode58 include/AdblockPlus/Notification.h:58: * @param jsValue `JsValuePtr` notification JavaScript object. On 2016/01/22 ...
Jan. 22, 2016, 2:34 p.m. (2016-01-22 14:34:55 UTC) #9
Eric
I'm missing something, I think. What version of v8 does this work with? It's not ...
Jan. 26, 2016, 6:37 p.m. (2016-01-26 18:37:41 UTC) #10
sergei
On 2016/01/26 18:37:41, Eric wrote: > I'm missing something, I think. What version of v8 ...
Jan. 27, 2016, 10:21 a.m. (2016-01-27 10:21:15 UTC) #11
sergei
https://codereview.adblockplus.org/5598762307158016/diff/29334349/src/FilterEngine.cpp File src/FilterEngine.cpp (right): https://codereview.adblockplus.org/5598762307158016/diff/29334349/src/FilterEngine.cpp#newcode230 src/FilterEngine.cpp:230: return FilterPtr(new Filter(std::move(*func->Call(params)))); On 2016/01/27 10:21:14, sergei wrote: > ...
Jan. 27, 2016, 11:23 a.m. (2016-01-27 11:23:03 UTC) #12
Eric
I need version numbers before I can continue on this review. Apparently its for some ...
Feb. 8, 2016, 7:50 p.m. (2016-02-08 19:50:06 UTC) #13
sergei
On 2016/02/08 19:50:06, Eric wrote: > I need version numbers before I can continue on ...
Feb. 29, 2016, 4:59 p.m. (2016-02-29 16:59:05 UTC) #14
sergei
On 2016/02/29 16:59:05, sergei wrote: > On 2016/02/08 19:50:06, Eric wrote: > > I need ...
April 5, 2016, 12:06 p.m. (2016-04-05 12:06:48 UTC) #15
sergei
rebased. I would like to ask you to check it again just in case. I'm ...
May 23, 2016, 10:12 a.m. (2016-05-23 10:12:29 UTC) #16
Oleksandr
LGTM. Looks like this is just a rebase with no extra changes.
May 23, 2016, 10:49 a.m. (2016-05-23 10:49:55 UTC) #17
Oleksandr
LGTM. Looks like this is just a rebase with no extra changes.
May 23, 2016, 10:49 a.m. (2016-05-23 10:49:55 UTC) #18
sergei
May 23, 2016, 10:52 a.m. (2016-05-23 10:52:56 UTC) #19
On 2016/05/23 10:49:55, Oleksandr wrote:
> LGTM. Looks like this is just a rebase with no extra changes.

Yes, basically there are neither required changes nor any files also affected by
other commits, on which it's rebased. Anyway I had compiled it and run all tests
to be sure that the everything still works (e.g. there are neither changes in
the behaviour nor in the interface).

Powered by Google App Engine
This is Rietveld