Refactor fxjs_v8 and add embeddertests for it.
authorTom Sepez <tsepez@chromium.org>
Tue, 15 Sep 2015 21:03:52 +0000 (14:03 -0700)
committerTom Sepez <tsepez@chromium.org>
Tue, 15 Sep 2015 21:03:52 +0000 (14:03 -0700)
commit09ed30750282bf56a92d0e646ab22c64bea81a36
tree919cf39ff0c0688589a9db2521bce07abf16ed8f
parent72d51871ae152163eeb9b005fd0a74d5c1651cd2
Refactor fxjs_v8 and add embeddertests for it.

This forces the layer defined by fxjs_v8.h to be (more)
self-contained, so that it can be tested apart from the
CJS_* objects (in fpdfsdk/{src,include}/javascript. This
implies the array buffer allocator must be part of fxjs_v8.

One wrinkle is that we'd like to be able to test an isolate
upon which no native objects have been added, so some
initialization that would have occurred as part of object
definition must be made explicit.

R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1338073002 .
BUILD.gn
fpdfsdk/include/javascript/IJavaScript.h
fpdfsdk/include/javascript/JS_Runtime.h
fpdfsdk/include/jsapi/fxjs_v8.h
fpdfsdk/src/javascript/JS_Runtime.cpp
fpdfsdk/src/jsapi/fxjs_v8.cpp
fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp [new file with mode: 0644]
pdfium.gyp