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

Issue 29556582: Issue 5643 - Make v8::Isolate injectable into JsEngine (Closed)

Created:
Sept. 26, 2017, 8:54 a.m. by anton
Modified:
Sept. 28, 2017, 12:43 p.m.
CC:
René Jeschke, Felix Dahlke
Visibility:
Public.

Description

Issue 5643 - Make v8::Isolate injectable into JsEngine

Patch Set 1 #

Total comments: 13

Patch Set 2 : reverted not related changes, addressed sergei's comments #

Total comments: 1

Patch Set 3 : Using JniLongToTypePtr for casting #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -6 lines) Patch
M libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java View 1 3 chunks +11 lines, -0 lines 0 comments Download
M libadblockplus-android/jni/JniPlatform.cpp View 1 2 3 chunks +31 lines, -3 lines 0 comments Download
M libadblockplus-android/src/org/adblockplus/libadblockplus/Platform.java View 1 2 chunks +7 lines, -2 lines 0 comments Download
M libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java View 1 3 chunks +15 lines, -1 line 1 comment Download

Messages

Total messages: 9
anton
Sept. 26, 2017, 8:56 a.m. (2017-09-26 08:56:42 UTC) #1
sergei
https://codereview.adblockplus.org/29556582/diff/29556583/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29556582/diff/29556583/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode255 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:255: public synchronized boolean retain(boolean asynchronous) It seems this code ...
Sept. 26, 2017, 9:44 a.m. (2017-09-26 09:44:14 UTC) #2
anton
https://codereview.adblockplus.org/29556582/diff/29556583/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java File libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java (right): https://codereview.adblockplus.org/29556582/diff/29556583/libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java#newcode255 libadblockplus-android-settings/src/org/adblockplus/libadblockplus/android/settings/AdblockHelper.java:255: public synchronized boolean retain(boolean asynchronous) On 2017/09/26 09:44:13, sergei ...
Sept. 26, 2017, 10:55 a.m. (2017-09-26 10:55:07 UTC) #3
anton
https://codereview.adblockplus.org/29556582/diff/29556583/libadblockplus-android/jni/JniPlatform.cpp File libadblockplus-android/jni/JniPlatform.cpp (right): https://codereview.adblockplus.org/29556582/diff/29556583/libadblockplus-android/jni/JniPlatform.cpp#newcode109 libadblockplus-android/jni/JniPlatform.cpp:109: isolateProvider = std::unique_ptr<AdblockPlus::IV8IsolateProvider>( On 2017/09/26 09:44:13, sergei wrote: > ...
Sept. 26, 2017, 11:04 a.m. (2017-09-26 11:04:25 UTC) #4
anton
On 2017/09/26 11:04:25, anton wrote: > https://codereview.adblockplus.org/29556582/diff/29556583/libadblockplus-android/jni/JniPlatform.cpp > File libadblockplus-android/jni/JniPlatform.cpp (right): > > https://codereview.adblockplus.org/29556582/diff/29556583/libadblockplus-android/jni/JniPlatform.cpp#newcode109 > ...
Sept. 26, 2017, 11:17 a.m. (2017-09-26 11:17:04 UTC) #5
sergei
https://codereview.adblockplus.org/29556582/diff/29556621/libadblockplus-android/jni/JniPlatform.cpp File libadblockplus-android/jni/JniPlatform.cpp (right): https://codereview.adblockplus.org/29556582/diff/29556621/libadblockplus-android/jni/JniPlatform.cpp#newcode104 libadblockplus-android/jni/JniPlatform.cpp:104: isolateProvider.reset(new V8IsolateHolder(reinterpret_cast<v8::Isolate*>(v8IsolatePtr))); On 2017/09/26 11:04:25, anton wrote: > On ...
Sept. 28, 2017, 8:35 a.m. (2017-09-28 08:35:27 UTC) #6
anton
On 2017/09/28 08:35:27, sergei wrote: > https://codereview.adblockplus.org/29556582/diff/29556621/libadblockplus-android/jni/JniPlatform.cpp > File libadblockplus-android/jni/JniPlatform.cpp (right): > > https://codereview.adblockplus.org/29556582/diff/29556621/libadblockplus-android/jni/JniPlatform.cpp#newcode104 > ...
Sept. 28, 2017, 8:56 a.m. (2017-09-28 08:56:12 UTC) #7
sergei
LGTM https://codereview.adblockplus.org/29556582/diff/29558565/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java File libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java (right): https://codereview.adblockplus.org/29556582/diff/29558565/libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java#newcode136 libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java:136: private Long v8IsolatePtr; I'm not sure about Long ...
Sept. 28, 2017, 9:34 a.m. (2017-09-28 09:34:50 UTC) #8
diegocarloslima
Sept. 28, 2017, 12:07 p.m. (2017-09-28 12:07:30 UTC) #9
On 2017/09/28 09:34:50, sergei wrote:
> LGTM
> 
>
https://codereview.adblockplus.org/29556582/diff/29558565/libadblockplus-andr...
> File
>
libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java
> (right):
> 
>
https://codereview.adblockplus.org/29556582/diff/29558565/libadblockplus-andr...
>
libadblockplus-android/src/org/adblockplus/libadblockplus/android/AdblockEngine.java:136:
> private Long v8IsolatePtr;
> I'm not sure about Long vs long here, but it seems fine.

LGTM

Powered by Google App Engine
This is Rietveld