diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-25 16:42:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-25 16:42:05 -0700 |
commit | ec3da5b821ed65c53eff1c78c2493afd7d933371 (patch) | |
tree | cc4b5f00aaf2f79344a115d57fdda99621d4e817 /xfa/fxjse/runtime.cpp | |
parent | cece6534e4e4ac10fdcfb47ac1d690e91bf63c19 (diff) | |
download | pdfium-ec3da5b821ed65c53eff1c78c2493afd7d933371.tar.xz |
Rename FXJSE_HRUNTIME to v8::Isolate
This CL renames all of the instances of FXJSE_HRUNTIME to be v8::Isolate* and
updates the various varible names to match the new type.
Review-Url: https://codereview.chromium.org/2010833002
Diffstat (limited to 'xfa/fxjse/runtime.cpp')
-rw-r--r-- | xfa/fxjse/runtime.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/xfa/fxjse/runtime.cpp b/xfa/fxjse/runtime.cpp index 1ee6c18599..64d685bd5f 100644 --- a/xfa/fxjse/runtime.cpp +++ b/xfa/fxjse/runtime.cpp @@ -55,17 +55,16 @@ void FXJSE_Finalize() { } } -FXJSE_HRUNTIME FXJSE_Runtime_Create() { +v8::Isolate* FXJSE_Runtime_Create() { v8::Isolate::CreateParams params; params.array_buffer_allocator = new FXJSE_ArrayBufferAllocator(); v8::Isolate* pIsolate = v8::Isolate::New(params); ASSERT(pIsolate && CFXJSE_RuntimeData::g_RuntimeList); CFXJSE_RuntimeData::g_RuntimeList->AppendRuntime(pIsolate); - return reinterpret_cast<FXJSE_HRUNTIME>(pIsolate); + return pIsolate; } -void FXJSE_Runtime_Release(FXJSE_HRUNTIME hRuntime, bool bOwnedRuntime) { - v8::Isolate* pIsolate = reinterpret_cast<v8::Isolate*>(hRuntime); +void FXJSE_Runtime_Release(v8::Isolate* pIsolate, bool bOwnedRuntime) { if (!pIsolate) return; if (bOwnedRuntime) { |