From 7dfe5929282cb6d78d7b5e32e1d72e9db99d3066 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Sun, 4 Oct 2015 20:40:15 -0700 Subject: Only call DefineJSObjects() once for the global V8 isolate. BUG=539106 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1386823002 . --- fpdfsdk/src/jsapi/fxjs_v8.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'fpdfsdk/src/jsapi') diff --git a/fpdfsdk/src/jsapi/fxjs_v8.cpp b/fpdfsdk/src/jsapi/fxjs_v8.cpp index bea9f4c4d8..54044e2118 100644 --- a/fpdfsdk/src/jsapi/fxjs_v8.cpp +++ b/fpdfsdk/src/jsapi/fxjs_v8.cpp @@ -166,6 +166,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)) -- cgit v1.2.3