diff options
Diffstat (limited to 'fxjs/README')
-rw-r--r-- | fxjs/README | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fxjs/README b/fxjs/README index a1cfe322b..59b55a2a5 100644 --- a/fxjs/README +++ b/fxjs/README @@ -20,20 +20,20 @@ To distinguish these cases, we use two internal slots for all bound objects, regardless of the FXJS/FXJSE distinction. Slot 0 is the tag and contains either: kPerObjectDataTag for FXJS objects, or - g_FXJSEHostObjectTag for FXJSE Host objects, or - g_FXJSEProxyObjectTag for a global proxy object under FXJSE, or + kFXJSEHostObjectTag for FXJSE Host objects, or + kFXJSEProxyObjectTag for a global proxy object under FXJSE, or One of 4 specific FXJSE_CLASS_DESCRIPTOR globals for FXJSE classes: - GlobalClassDescriptor - NormalClassDescriptor - VariablesClassDescriptor - formcalc_fm2js_descriptor + kGlobalClassDescriptor + kNormalClassDescriptor + kVariablesClassDescriptor + kFormCalcDescriptor Slot 1's contents are determined by these tags: kPerObjectDataTag means an aligned pointer to CFXJS_PerObjectData. - g_FXJSEHostObjectTag means an aligned pointer to CFXJSE_HostObject. - g_FXJSEProxyObjectTag means nullptr, and to check the prototype instead. + kFXJSEHostObjectTag means an aligned pointer to CFXJSE_HostObject. + kFXJSEProxyObjectTag means nullptr, and to check the prototype instead. A FXJSE_CLASS_DESCRIPTOR pointer means to expect an actual v8 function - object (or a string naming that function), and not an aligned pointer. + object (or a string naming that function), and not an aligned pointer. Because PDFium uses V8 for various unrelated purposes, there may be up to four v8::Contexts (JS Global Objects) associated with each document. One is |