forked from TritonDataCenter/mdb_v8
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TritonDataCenter#36: Update mdb_v8 for V8 4.6.x
This change makes mdb_v8's test suite pass with https://github.com/nodejs/node/tree/vee-eight-4.6, which is the branch where V8 4.6.x is integrated into node's master. There are two main changes. The first one is that Map's "inobject_properties" property has been renamed to "inobject_properties_or_constructor_function_index". Since mdb_v8's doesn't support new V8 primitives yet, we only care about using the proper name for this property, not about the fact that it has a different semantic for these new V8 primitives. The second one is that typed arrays, which are used to represent Buffer instances since node v4.0.0, store their underlying storage slightly differently. For V8 versions 4.6 and later, we now use the JSArrayBufferView and the JSArrayBuffer properties to get access to that underlying storage, as it seems more reliable and less likely to change than accessing the first elements' slot, whose representation has changed between V8 4.5 and 4.6. It used to be a ExternalUint8Array, and it is now a FixedTypedArray casted as a FixedTypedArrayBase.
- Loading branch information
Julien Gilli
committed
Sep 25, 2015
1 parent
60c8b6c
commit 853e337
Showing
2 changed files
with
130 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters