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

Issue 2241483004: Move some v8 objects from CJS back into FXJS (Closed)

Created:
4 years, 4 months ago by Tom Sepez
Modified:
4 years, 4 months ago
Reviewers:
Lei Zhang, 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

Move some v8 objects from CJS back into FXJS Create a new class to hold these, CFXJS_Engine (could have been called Runtime, but there are too many "Runtimes" already). In a subsequent patch, all the FXJS_*() functions that take an isolate as the first argument can become methods on the engine. CJS_ must still manage the isolates; this happens outside the engine. The IJS_Runtime abstraction moves up to fpdfsdk/javascript; it remains to allow for either a real JS library or a stubb one to be linked (for non-js builds). Committed: https://pdfium.googlesource.com/pdfium/+/a4941914bb4411dc4e9053cb344e0349db388007

Patch Set 1 #

Patch Set 2 : Chromium style rules #

Total comments: 4

Patch Set 3 : rebase, include map #

Patch Set 4 : Move m_isolateManaged to CJS_ layer #

Patch Set 5 : Rename to GetCurrentEngineFromIsolate() since engines not 1:1 with isolates #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -67 lines) Patch
M fpdfsdk/javascript/Consts.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/javascript/JS_Define.h View 1 2 3 4 9 chunks +12 lines, -11 lines 0 comments Download
M fpdfsdk/javascript/cjs_runtime.h View 1 2 3 2 chunks +3 lines, -7 lines 0 comments Download
M fpdfsdk/javascript/cjs_runtime.cpp View 1 2 3 5 chunks +5 lines, -6 lines 0 comments Download
M fxjs/fxjs_v8.cpp View 1 2 3 4 9 chunks +21 lines, -18 lines 0 comments Download
M fxjs/fxjs_v8_embeddertest.cpp View 3 chunks +5 lines, -7 lines 0 comments Download
M fxjs/include/fxjs_v8.h View 1 2 3 4 3 chunks +28 lines, -14 lines 0 comments Download
M testing/js_embedder_test.cpp View 1 chunk +3 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 33 (24 generated)
Tom Sepez
Dan, for review. Thanks.
4 years, 4 months ago (2016-08-12 16:39:12 UTC) #2
dsinclair
https://codereview.chromium.org/2241483004/diff/20001/fxjs/include/fxjs_v8.h File fxjs/include/fxjs_v8.h (right): https://codereview.chromium.org/2241483004/diff/20001/fxjs/include/fxjs_v8.h#newcode21 fxjs/include/fxjs_v8.h:21: #include <map> https://codereview.chromium.org/2241483004/diff/20001/fxjs/include/fxjs_v8.h#newcode134 fxjs/include/fxjs_v8.h:134: class CFXJS_Engine { Any reason ...
4 years, 4 months ago (2016-08-15 13:13:32 UTC) #15
Tom Sepez
https://codereview.chromium.org/2241483004/diff/20001/fxjs/include/fxjs_v8.h File fxjs/include/fxjs_v8.h (right): https://codereview.chromium.org/2241483004/diff/20001/fxjs/include/fxjs_v8.h#newcode21 fxjs/include/fxjs_v8.h:21: On 2016/08/15 13:13:32, dsinclair wrote: > #include <map> Done. ...
4 years, 4 months ago (2016-08-15 16:37:55 UTC) #16
dsinclair
lgtm
4 years, 4 months ago (2016-08-15 17:22:18 UTC) #20
Tom Sepez
On 2016/08/15 17:22:18, dsinclair wrote: > lgtm Dan, quick recheck vs. PS 3 due to ...
4 years, 4 months ago (2016-08-15 18:00:47 UTC) #24
dsinclair
lgtm
4 years, 4 months ago (2016-08-15 18:06:43 UTC) #25
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/2241483004/80001
4 years, 4 months ago (2016-08-15 18:28:39 UTC) #28
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/2241483004/80001
4 years, 4 months ago (2016-08-15 18:28:58 UTC) #31
commit-bot: I haz the power
4 years, 4 months ago (2016-08-15 18:40:15 UTC) #33
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://pdfium.googlesource.com/pdfium/+/a4941914bb4411dc4e9053cb344e0349db38...

Powered by Google App Engine
This is Rietveld 408576698