Set pointers in internal fields directly instead of wrapping them
authorJochen Eisinger <jochen@chromium.org>
Wed, 13 May 2015 00:31:02 +0000 (02:31 +0200)
committerJochen Eisinger <jochen@chromium.org>
Wed, 13 May 2015 00:31:02 +0000 (02:31 +0200)
commit2a47d8d6eef22d117ac3475e84c3a52b5ca41a3c
tree99e4369c72e5edb5310d25bfc9d8d6b2533bd20b
parentb2aa54381811383d4a86fbe7b194907c33e8dcc1
Set pointers in internal fields directly instead of wrapping them

The internal fields are scanned by the garbage collector, so they can't contain arbitrary data. However, aligned pointers are supported by the V8 GC, so the V8
API allows for setting a pointer directly instead of wrapping it in an External
container.

Not only is this faster, but it's also required for the new v8::Global API which
I'm going to update to in a follow-up patch.

R=tsepez@chromium.org
BUG=

Review URL: https://codereview.chromium.org/1139853003
fpdfsdk/src/jsapi/fxjs_v8.cpp