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

Issue 2245863002: Push v8::Isolate into CFXJS_Engine class (Closed)

Created:
4 years, 4 months ago by Tom Sepez
Modified:
4 years, 4 months ago
Reviewers:
dsinclair
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Project:
pdfium
Visibility:
Public.

Description

Push v8::Isolate into CFXJS_Engine class Nearly all the "loose" functions in FXJS become methods on the CFJXS_Engine. This is the "missing link" wrt some layering violatons that have been around forever. We can stop passing &m_ variables from CJS_ down into FXJS Initialization as a result. Committed: https://pdfium.googlesource.com/pdfium/+/b4694249b336d1c0bea9222880b49dcf9284791d

Patch Set 1 #

Patch Set 2 : tidy #

Patch Set 3 : Compiles #

Patch Set 4 : Rebase (isolate manged back to cjs). #

Patch Set 5 : Merge branch 'yet_another_runtime' into FollowOn #

Patch Set 6 : Merge branch 'master' of https://pdfium.googlesource.com/pdfium into FollowOn #

Patch Set 7 : Make members private #

Total comments: 7

Patch Set 8 : Statics near top #

Patch Set 9 : Fix destruction order #

Patch Set 10 : Null isolate before letting CFXJS_Engine dtor invoked #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1170 lines, -1299 lines) Patch
M fpdfsdk/javascript/Consts.cpp View 1 2 3 4 2 chunks +20 lines, -20 lines 0 comments Download
M fpdfsdk/javascript/Document.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M fpdfsdk/javascript/Document.cpp View 1 25 chunks +104 lines, -131 lines 0 comments Download
M fpdfsdk/javascript/Field.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -3 lines 0 comments Download
M fpdfsdk/javascript/Field.cpp View 1 2 3 4 5 6 7 8 21 chunks +44 lines, -57 lines 0 comments Download
M fpdfsdk/javascript/JS_Define.h View 1 2 3 4 18 chunks +121 lines, -125 lines 0 comments Download
M fpdfsdk/javascript/JS_EventHandler.cpp View 2 chunks +12 lines, -12 lines 0 comments Download
M fpdfsdk/javascript/JS_Object.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/JS_Runtime_Stub.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/javascript/JS_Value.h View 4 chunks +35 lines, -35 lines 0 comments Download
M fpdfsdk/javascript/JS_Value.cpp View 1 2 3 4 16 chunks +112 lines, -122 lines 0 comments Download
M fpdfsdk/javascript/PublicMethods.cpp View 26 chunks +55 lines, -61 lines 0 comments Download
M fpdfsdk/javascript/app.h View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/app.cpp View 10 chunks +48 lines, -52 lines 0 comments Download
M fpdfsdk/javascript/cjs_context.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M fpdfsdk/javascript/cjs_runtime.h View 1 2 3 4 5 6 3 chunks +3 lines, -7 lines 0 comments Download
M fpdfsdk/javascript/cjs_runtime.cpp View 1 2 3 4 5 6 7 8 9 11 chunks +78 lines, -76 lines 0 comments Download
M fpdfsdk/javascript/color.cpp View 6 chunks +41 lines, -49 lines 0 comments Download
M fpdfsdk/javascript/global.cpp View 1 2 3 4 6 chunks +38 lines, -38 lines 0 comments Download
M fpdfsdk/javascript/ijs_runtime.h View 1 chunk +2 lines, -1 line 0 comments Download
M fpdfsdk/javascript/util.cpp View 8 chunks +35 lines, -47 lines 0 comments Download
M fxjs/fxjs_v8.cpp View 1 2 3 4 5 6 7 8 10 chunks +267 lines, -281 lines 0 comments Download
M fxjs/fxjs_v8_embeddertest.cpp View 1 2 3 4 5 6 2 chunks +15 lines, -19 lines 0 comments Download
M fxjs/include/fxjs_v8.h View 1 2 3 4 5 6 2 chunks +124 lines, -147 lines 0 comments Download
M testing/js_embedder_test.h View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M testing/js_embedder_test.cpp View 1 2 3 4 5 6 2 chunks +6 lines, -5 lines 0 comments Download

Messages

Total messages: 20 (13 generated)
Tom Sepez
Dan, follow-on from previous patch. I couldn't find a way to break this into pieces ...
4 years, 4 months ago (2016-08-15 20:10:29 UTC) #6
dsinclair
lgtm w/ question and nits. https://codereview.chromium.org/2245863002/diff/120001/fxjs/fxjs_v8.cpp File fxjs/fxjs_v8.cpp (right): https://codereview.chromium.org/2245863002/diff/120001/fxjs/fxjs_v8.cpp#newcode225 fxjs/fxjs_v8.cpp:225: CFXJS_Engine::CFXJS_Engine() : m_isolate(nullptr) {} ...
4 years, 4 months ago (2016-08-15 20:38:38 UTC) #7
Tom Sepez
https://codereview.chromium.org/2245863002/diff/120001/fxjs/fxjs_v8.cpp File fxjs/fxjs_v8.cpp (right): https://codereview.chromium.org/2245863002/diff/120001/fxjs/fxjs_v8.cpp#newcode225 fxjs/fxjs_v8.cpp:225: CFXJS_Engine::CFXJS_Engine() : m_isolate(nullptr) {} On 2016/08/15 20:38:37, dsinclair wrote: ...
4 years, 4 months ago (2016-08-15 20:46:15 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/2245863002/140001
4 years, 4 months ago (2016-08-15 20:46:34 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: mac on master.tryserver.client.pdfium (JOB_FAILED, https://build.chromium.org/p/tryserver.client.pdfium/builders/mac/builds/1670)
4 years, 4 months ago (2016-08-15 21:39:39 UTC) #13
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/2245863002/180001
4 years, 4 months ago (2016-08-15 23:32:38 UTC) #18
commit-bot: I haz the power
4 years, 4 months ago (2016-08-15 23:44:59 UTC) #20
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://pdfium.googlesource.com/pdfium/+/b4694249b336d1c0bea9222880b49dcf9284...

Powered by Google App Engine
This is Rietveld 408576698