summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/jsapi/fxjs_v8.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-08 12:04:47 -0700
committerLei Zhang <thestig@chromium.org>2015-10-08 12:04:47 -0700
commit3fa115bf1d6b86fcdbc9a139c6ac789ea2294c2e (patch)
treecb857d2dd6a1003e30487e0a7eedd68519c43cb7 /fpdfsdk/src/jsapi/fxjs_v8.cpp
parentba038bc14bfeb4d011d57f388871f7f14c4c3c22 (diff)
downloadpdfium-3fa115bf1d6b86fcdbc9a139c6ac789ea2294c2e.tar.xz
Merge to XFA: Only call DefineJSObjects() once for the global V8 isolate.
BUG=539106 TBR=tsepez@chromium.org Review URL: https://codereview.chromium.org/1386823002 . (cherry picked from commit 7dfe5929282cb6d78d7b5e32e1d72e9db99d3066) Review URL: https://codereview.chromium.org/1400503003 .
Diffstat (limited to 'fpdfsdk/src/jsapi/fxjs_v8.cpp')
-rw-r--r--fpdfsdk/src/jsapi/fxjs_v8.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp
index eae1bb414a..80def30f96 100644
--- a/fpdfsdk/src/jsapi/fxjs_v8.cpp
+++ b/fpdfsdk/src/jsapi/fxjs_v8.cpp
@@ -158,6 +158,10 @@ bool FXJS_GetIsolate(v8::Isolate** pResultIsolate) {
return true;
}
+size_t FXJS_GlobalIsolateRefCount() {
+ return g_isolate_ref_count;
+}
+
// static
void FXJS_PerIsolateData::SetUp(v8::Isolate* pIsolate) {
if (!pIsolate->GetData(g_embedderDataSlot))