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

Issue 29417605: Issue 5034 - Part 3: Create plain JsValue instead of JsValuePtr (Closed)

Created:
April 19, 2017, 5:54 p.m. by hub
Modified:
April 20, 2017, 1:31 p.m.
Reviewers:
sergei
Base URL:
https://hg.adblockplus.org/libadblockplus/
Visibility:
Public.

Description

Issue 5034 - Part 3: Create plain JsValue instead of JsValuePtr

Patch Set 1 #

Total comments: 17

Patch Set 2 : FIxed JsContext bug and a few others. #

Total comments: 2

Patch Set 3 : Added value test for copy ctor #

Total comments: 4

Patch Set 4 : Pass JsEngine by ref #

Unified diffs Side-by-side diffs Delta from patch set Stats (+318 lines, -250 lines) Patch
M include/AdblockPlus/FilterEngine.h View 3 chunks +7 lines, -7 lines 0 comments Download
M include/AdblockPlus/JsEngine.h View 4 chunks +10 lines, -10 lines 0 comments Download
M include/AdblockPlus/JsValue.h View 2 chunks +5 lines, -9 lines 0 comments Download
M shell/src/PrefsCommand.cpp View 1 chunk +11 lines, -11 lines 0 comments Download
M src/ConsoleJsObject.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M src/FileSystemJsObject.cpp View 6 chunks +46 lines, -46 lines 0 comments Download
M src/FilterEngine.cpp View 5 chunks +38 lines, -39 lines 0 comments Download
M src/GlobalJsObject.cpp View 1 chunk +11 lines, -11 lines 0 comments Download
M src/JsEngine.cpp View 4 chunks +15 lines, -17 lines 0 comments Download
M src/JsValue.cpp View 1 2 4 chunks +23 lines, -10 lines 0 comments Download
M src/Notification.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/WebRequestJsObject.cpp View 2 chunks +19 lines, -19 lines 0 comments Download
M test/FilterEngine.cpp View 1 3 chunks +9 lines, -7 lines 0 comments Download
M test/JsEngine.cpp View 1 2 3 3 chunks +77 lines, -17 lines 0 comments Download
M test/JsValue.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M test/Prefs.cpp View 1 1 chunk +33 lines, -33 lines 0 comments Download
M test/UpdateCheck.cpp View 5 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 9
hub
April 19, 2017, 5:54 p.m. (2017-04-19 17:54:30 UTC) #1
hub
There is also a Part 4 comming to change Evaluate() to return a plain JsValue. ...
April 19, 2017, 5:57 p.m. (2017-04-19 17:57:22 UTC) #2
sergei
very good https://codereview.adblockplus.org/29417605/diff/29417606/include/AdblockPlus/JsValue.h File include/AdblockPlus/JsValue.h (right): https://codereview.adblockplus.org/29417605/diff/29417606/include/AdblockPlus/JsValue.h#newcode64 include/AdblockPlus/JsValue.h:64: JsValue& operator=(const JsValue& src); I think it ...
April 19, 2017, 6:56 p.m. (2017-04-19 18:56:52 UTC) #3
hub
Updated patch. I haven't figured out how check values are the same. So it is ...
April 19, 2017, 9:56 p.m. (2017-04-19 21:56:49 UTC) #4
sergei
https://codereview.adblockplus.org/29417605/diff/29417606/test/JsEngine.cpp File test/JsEngine.cpp (right): https://codereview.adblockplus.org/29417605/diff/29417606/test/JsEngine.cpp#newcode102 test/JsEngine.cpp:102: } On 2017/04/19 21:56:49, hub wrote: > On 2017/04/19 ...
April 20, 2017, 7:42 a.m. (2017-04-20 07:42:53 UTC) #5
hub
updated patch with these. https://codereview.adblockplus.org/29417605/diff/29417606/test/JsEngine.cpp File test/JsEngine.cpp (right): https://codereview.adblockplus.org/29417605/diff/29417606/test/JsEngine.cpp#newcode102 test/JsEngine.cpp:102: } On 2017/04/20 07:42:52, sergei ...
April 20, 2017, 12:41 p.m. (2017-04-20 12:41:01 UTC) #6
sergei
LGTM https://codereview.adblockplus.org/29417605/diff/29418572/test/JsEngine.cpp File test/JsEngine.cpp (right): https://codereview.adblockplus.org/29417605/diff/29418572/test/JsEngine.cpp#newcode68 test/JsEngine.cpp:68: bool IsSame(const AdblockPlus::JsEnginePtr& jsEngine, Can be just `JsEngine&` ...
April 20, 2017, 12:45 p.m. (2017-04-20 12:45:08 UTC) #7
hub
updated patch https://codereview.adblockplus.org/29417605/diff/29418572/test/JsEngine.cpp File test/JsEngine.cpp (right): https://codereview.adblockplus.org/29417605/diff/29418572/test/JsEngine.cpp#newcode68 test/JsEngine.cpp:68: bool IsSame(const AdblockPlus::JsEnginePtr& jsEngine, On 2017/04/20 12:45:08, ...
April 20, 2017, 1:01 p.m. (2017-04-20 13:01:46 UTC) #8
sergei
April 20, 2017, 1:03 p.m. (2017-04-20 13:03:15 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld