Store object definition ID in each js_class.
authorTom Sepez <tsepez@chromium.org>
Tue, 6 Oct 2015 18:10:52 +0000 (11:10 -0700)
committerTom Sepez <tsepez@chromium.org>
Tue, 6 Oct 2015 18:10:52 +0000 (11:10 -0700)
commitf0a5b2803c09f3605dcd606e764ef604f0d2a8ea
treec70b0fd99702afbeb7474b7c168d13dc5d6831a3
parent4ea721cb7954898a9722c389dae86c62957352d0
Store object definition ID in each js_class.

Avoids doing a lookup via FXJS_V8 for something already
known in CJS layer.

Also:
Consolidate repeated code in JS macros.
Remove knowledge that Document is global from FXJS layer

R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1382263002 .
18 files changed:
fpdfsdk/include/jsapi/fxjs_v8.h
fpdfsdk/src/javascript/Document.cpp
fpdfsdk/src/javascript/Document.h
fpdfsdk/src/javascript/Field.cpp
fpdfsdk/src/javascript/Field.h
fpdfsdk/src/javascript/Icon.h
fpdfsdk/src/javascript/JS_Define.h
fpdfsdk/src/javascript/JS_EventHandler.cpp
fpdfsdk/src/javascript/JS_Runtime.cpp
fpdfsdk/src/javascript/app.cpp
fpdfsdk/src/javascript/app.h
fpdfsdk/src/javascript/color.h
fpdfsdk/src/javascript/console.h
fpdfsdk/src/javascript/event.h
fpdfsdk/src/javascript/global.h
fpdfsdk/src/javascript/report.h
fpdfsdk/src/javascript/util.h
fpdfsdk/src/jsapi/fxjs_v8.cpp