virgil-crypto 2.1.2.2 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +1 -1
- data/ext/native/src/.travis.yml +70 -41
- data/ext/native/src/CMakeLists.txt +78 -34
- data/ext/native/src/ChangeLog +105 -0
- data/ext/native/src/Dockerfile_Golang +2 -2
- data/ext/native/src/Jenkinsfile +47 -25
- data/ext/native/src/LICENSE +3 -3
- data/ext/native/src/README.md +40 -12
- data/ext/native/src/VERSION +1 -1
- data/ext/native/src/benchmark/CMakeLists.txt +4 -4
- data/ext/native/src/benchmark/benchmark_cipher.cxx +33 -13
- data/ext/native/src/benchmark/benchmark_hash.cxx +3 -3
- data/ext/native/src/benchmark/benchmark_keys.cxx +251 -0
- data/ext/native/src/benchmark/benchmark_random.cxx +56 -0
- data/ext/native/src/benchmark/benchmark_signer.cxx +31 -11
- data/ext/native/src/ci/install-dependencies.sh +134 -0
- data/ext/native/src/ci/{install-doxygen.sh → install-deployment-key.sh} +12 -13
- data/ext/native/src/ci/publish-docs.sh +65 -63
- data/ext/native/src/ci/travis-deployment-key.enc +0 -0
- data/ext/native/src/cmake/apple.cmake +432 -0
- data/ext/native/src/cmake/aux_source_directory_to_file.cmake +3 -3
- data/ext/native/src/cmake/check_pointer_size.cmake +3 -3
- data/ext/native/src/cmake/cmake_args.cmake +3 -3
- data/ext/native/src/cmake/copy_all_files.cmake +3 -3
- data/ext/native/src/cmake/file_regex_replace.cmake +3 -3
- data/ext/native/src/cmake/find_host_utils.cmake +3 -3
- data/ext/native/src/cmake/uppercase_first_char.cmake +3 -3
- data/ext/native/src/cmake/uppercase_namespaces.cmake +6 -3
- data/ext/native/src/cmake/virgil_depends.cmake +3 -3
- data/ext/native/src/cmake/virgil_depends_local.cmake +5 -4
- data/ext/native/src/lib/CMakeLists.txt +98 -42
- data/ext/native/src/lib/Doxyfile.in +1 -1
- data/ext/native/src/lib/Info.plist.in +26 -0
- data/ext/native/src/lib/cmake/config.cmake.in +3 -3
- data/ext/native/src/lib/include/virgil/crypto/VirgilByteArray.h +52 -3
- data/ext/native/src/lib/include/virgil/crypto/VirgilByteArrayUtils.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/VirgilChunkCipher.h +7 -7
- data/ext/native/src/lib/include/virgil/crypto/VirgilCipher.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/VirgilCipherBase.h +16 -18
- data/ext/native/src/lib/include/virgil/crypto/VirgilContentInfo.h +234 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilCrypto.h +101 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilCryptoError.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/VirgilCryptoException.h +3 -3
- data/ext/native/src/lib/include/virgil/crypto/VirgilCustomParams.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/VirgilDataSink.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/VirgilDataSource.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/VirgilKeyPair.h +40 -10
- data/ext/native/src/lib/include/virgil/crypto/VirgilSigner.h +11 -16
- data/ext/native/src/lib/include/virgil/crypto/VirgilSignerBase.h +143 -0
- data/ext/native/src/lib/include/virgil/crypto/VirgilStreamCipher.h +7 -7
- data/ext/native/src/lib/include/virgil/crypto/VirgilStreamSigner.h +12 -12
- data/ext/native/src/lib/include/virgil/crypto/VirgilTinyCipher.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/VirgilVersion.h +3 -3
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilAsymmetricCipher.h +14 -6
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilBase64.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilHKDF.h +87 -0
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilHash.h +24 -8
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilKDF.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilPBE.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilPBKDF.h +6 -6
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilRandom.h +15 -7
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilSymmetricCipher.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/foundation/VirgilSystemCryptoError.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/VirgilAsn1Compatible.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/VirgilAsn1Reader.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/foundation/asn1/VirgilAsn1Writer.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSContent.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSContentInfo.h +9 -7
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSEncryptedContent.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSEnvelopedData.h +9 -7
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSKeyTransRecipient.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/foundation/cms/VirgilCMSPasswordRecipient.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/pfs/VirgilPFS.h +177 -0
- data/ext/native/src/lib/include/virgil/crypto/pfs/VirgilPFSEncryptedMessage.h +85 -0
- data/ext/native/src/lib/include/virgil/crypto/pfs/VirgilPFSInitiatorPrivateInfo.h +80 -0
- data/ext/native/src/lib/include/virgil/crypto/pfs/VirgilPFSInitiatorPublicInfo.h +80 -0
- data/ext/native/src/lib/include/virgil/crypto/pfs/VirgilPFSPrivateKey.h +94 -0
- data/ext/native/src/lib/include/virgil/crypto/pfs/VirgilPFSPublicKey.h +74 -0
- data/ext/native/src/lib/include/virgil/crypto/pfs/VirgilPFSResponderPrivateInfo.h +90 -0
- data/ext/native/src/lib/include/virgil/crypto/pfs/VirgilPFSResponderPublicInfo.h +90 -0
- data/ext/native/src/lib/include/virgil/crypto/pfs/VirgilPFSSession.h +112 -0
- data/ext/native/src/lib/include/virgil/crypto/primitive/VirgilOperationCipher.h +167 -0
- data/ext/native/src/lib/include/virgil/crypto/primitive/VirgilOperationDH.h +114 -0
- data/ext/native/src/lib/include/virgil/crypto/primitive/VirgilOperationHash.h +162 -0
- data/ext/native/src/lib/include/virgil/crypto/primitive/VirgilOperationKDF.h +114 -0
- data/ext/native/src/lib/include/virgil/crypto/primitive/VirgilOperationRandom.h +124 -0
- data/ext/native/src/lib/include/virgil/crypto/stream/VirgilBytesDataSink.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/stream/VirgilBytesDataSource.h +5 -5
- data/ext/native/src/lib/include/virgil/crypto/stream/VirgilStreamDataSink.h +4 -4
- data/ext/native/src/lib/include/virgil/crypto/stream/VirgilStreamDataSource.h +5 -5
- data/ext/native/src/lib/mainpage.dox +11 -0
- data/ext/native/src/lib/src/VirgilAsn1Alg.cxx +4 -4
- data/ext/native/src/lib/{include/virgil/crypto/foundation/asn1/internal → src}/VirgilAsn1Alg.h +3 -3
- data/ext/native/src/lib/src/VirgilAsn1Compatible.cxx +3 -3
- data/ext/native/src/lib/src/VirgilAsn1Reader.cxx +3 -3
- data/ext/native/src/lib/src/VirgilAsn1Writer.cxx +4 -4
- data/ext/native/src/lib/src/VirgilAsymmetricCipher.cxx +225 -223
- data/ext/native/src/lib/src/VirgilBase64.cxx +3 -3
- data/ext/native/src/lib/src/VirgilByteArrayUtils.cxx +3 -3
- data/ext/native/src/lib/src/VirgilCMSContent.cxx +5 -5
- data/ext/native/src/lib/src/VirgilCMSContentInfo.cxx +3 -3
- data/ext/native/src/lib/src/VirgilCMSEncryptedContent.cxx +5 -5
- data/ext/native/src/lib/src/VirgilCMSEnvelopedData.cxx +3 -3
- data/ext/native/src/lib/src/VirgilCMSKeyTransRecipient.cxx +4 -4
- data/ext/native/src/lib/src/VirgilCMSPasswordRecipient.cxx +4 -4
- data/ext/native/src/lib/src/VirgilChunkCipher.cxx +3 -3
- data/ext/native/src/lib/src/VirgilCipher.cxx +3 -3
- data/ext/native/src/lib/src/VirgilCipherBase.cxx +80 -142
- data/ext/native/src/lib/src/VirgilConfig.h.in +44 -0
- data/ext/native/src/lib/src/VirgilContentInfo.cxx +272 -0
- data/ext/native/src/lib/src/VirgilCryptoError.cxx +3 -3
- data/ext/native/src/lib/src/VirgilCryptoException.cxx +3 -3
- data/ext/native/src/lib/src/VirgilCustomParams.cxx +3 -3
- data/ext/native/src/lib/src/VirgilDataSink.cxx +3 -3
- data/ext/native/src/lib/src/VirgilHKDF.cxx +93 -0
- data/ext/native/src/lib/src/VirgilHash.cxx +26 -5
- data/ext/native/src/lib/src/VirgilKDF.cxx +5 -5
- data/ext/native/src/lib/src/VirgilKeyPair.cxx +3 -3
- data/ext/native/src/lib/{include/virgil/crypto/foundation/internal → src}/VirgilOID.h +3 -3
- data/ext/native/src/lib/src/VirgilPBE.cxx +5 -5
- data/ext/native/src/lib/src/VirgilPBKDF.cxx +5 -5
- data/ext/native/src/lib/src/VirgilRandom.cxx +26 -35
- data/ext/native/src/lib/src/VirgilSigner.cxx +19 -38
- data/ext/native/src/lib/src/VirgilSignerBase.cxx +102 -0
- data/ext/native/src/lib/src/VirgilStreamCipher.cxx +3 -3
- data/ext/native/src/lib/src/VirgilStreamSigner.cxx +22 -40
- data/ext/native/src/lib/src/VirgilSymmetricCipher.cxx +6 -6
- data/ext/native/src/lib/src/VirgilSystemCryptoError.cxx +3 -3
- data/ext/native/src/lib/src/VirgilTagFilter.cxx +4 -4
- data/ext/native/src/lib/{include/virgil/crypto/foundation/internal → src}/VirgilTagFilter.h +3 -3
- data/ext/native/src/lib/src/VirgilTinyCipher.cxx +4 -4
- data/ext/native/src/lib/{include/virgil/crypto/foundation/internal → src}/mbedtls_context.h +4 -4
- data/ext/native/src/lib/{include/virgil/crypto/foundation/internal → src}/mbedtls_context_policy_spec.h +32 -5
- data/ext/native/src/lib/{include/virgil/crypto/foundation/internal → src}/mbedtls_type_utils.h +24 -3
- data/ext/native/src/lib/src/pfs/VirgilPFS.cxx +288 -0
- data/ext/native/src/lib/src/pfs/VirgilPFSEncryptedMessage.cxx +57 -0
- data/ext/native/src/lib/src/pfs/VirgilPFSInitiatorPrivateInfo.cxx +54 -0
- data/ext/native/src/lib/src/pfs/VirgilPFSInitiatorPublicInfo.cxx +55 -0
- data/ext/native/src/lib/src/pfs/VirgilPFSPrivateKey.cxx +61 -0
- data/ext/native/src/lib/src/pfs/VirgilPFSPublicKey.cxx +50 -0
- data/ext/native/src/lib/src/pfs/VirgilPFSResponderPrivateInfo.cxx +60 -0
- data/ext/native/src/lib/src/pfs/VirgilPFSResponderPublicInfo.cxx +60 -0
- data/ext/native/src/lib/src/pfs/VirgilPFSSession.cxx +76 -0
- data/ext/native/src/lib/src/primitive/VirgilOperationCipher.cxx +104 -0
- data/ext/native/src/lib/src/primitive/VirgilOperationDH.cxx +63 -0
- data/ext/native/src/lib/src/primitive/VirgilOperationHash.cxx +48 -0
- data/ext/native/src/lib/src/primitive/VirgilOperationKDF.cxx +64 -0
- data/ext/native/src/lib/src/primitive/VirgilOperationRandom.cxx +47 -0
- data/ext/native/src/lib/src/stream/VirgilBytesDataSink.cxx +9 -5
- data/ext/native/src/lib/src/stream/VirgilBytesDataSource.cxx +8 -3
- data/ext/native/src/lib/src/stream/VirgilStreamDataSink.cxx +8 -5
- data/ext/native/src/lib/src/stream/VirgilStreamDataSource.cxx +10 -7
- data/ext/native/src/lib/{include/virgil/crypto/internal → src}/utils.h +3 -3
- data/ext/native/src/libs_ext/mbedtls/mbedtls.cmake +5 -5
- data/ext/native/src/libs_ext/rapidjson/rapidjson.cmake +5 -5
- data/ext/native/src/libs_ext/tinyformat/cmake/config.cmake.in +3 -3
- data/ext/native/src/libs_ext/tinyformat/tinyformat.cmake +3 -3
- data/ext/native/src/tests/CMakeLists.txt +5 -4
- data/ext/native/src/tests/data/test_data_pfs_with_otc.json +15 -0
- data/ext/native/src/tests/data/test_data_pfs_without_otc.json +15 -0
- data/ext/native/src/tests/rsa_keys.h +302 -0
- data/ext/native/src/tests/test_asn1_writer.cxx +3 -3
- data/ext/native/src/tests/test_asymmetric_cipher.cxx +3 -3
- data/ext/native/src/tests/test_base64.cxx +3 -3
- data/ext/native/src/tests/test_byte_array_utils.cxx +3 -3
- data/ext/native/src/tests/test_chunk_cipher.cxx +7 -7
- data/ext/native/src/tests/test_cipher.cxx +8 -133
- data/ext/native/src/tests/test_cipher_base.cxx +3 -3
- data/ext/native/src/tests/test_contract_copy_move.cxx +8 -7
- data/ext/native/src/tests/test_data_pfs.h +157 -0
- data/ext/native/src/tests/test_hash.cxx +3 -3
- data/ext/native/src/tests/test_hkdf.cxx +187 -0
- data/ext/native/src/tests/test_key_pair.cxx +55 -3
- data/ext/native/src/tests/test_pbe.cxx +3 -3
- data/ext/native/src/tests/test_pbkdf.cxx +3 -3
- data/ext/native/src/tests/test_pfs.cxx +141 -0
- data/ext/native/src/tests/test_random.cxx +3 -3
- data/ext/native/src/tests/test_runner.cxx +3 -3
- data/ext/native/src/tests/test_signer.cxx +3 -3
- data/ext/native/src/tests/test_stream_cipher.cxx +7 -7
- data/ext/native/src/tests/test_stream_data_source.cxx +5 -5
- data/ext/native/src/tests/test_symmetric_cipher.cxx +3 -3
- data/ext/native/src/tests/test_tag_filter.cxx +5 -4
- data/ext/native/src/tests/test_tiny_cipher.cxx +3 -3
- data/ext/native/src/utils/build.bat +4 -4
- data/ext/native/src/utils/build.sh +165 -83
- data/ext/native/src/utils/env.sh +4 -3
- data/ext/native/src/wrappers/CMakeLists.txt +6 -4
- data/ext/native/src/wrappers/asmjs/CMakeLists.txt +22 -64
- data/ext/native/src/wrappers/emsdk/CMakeLists.txt +107 -0
- data/ext/native/src/wrappers/{asmjs → emsdk}/error.js +3 -3
- data/ext/native/src/wrappers/{asmjs → emsdk}/example.html +7 -1
- data/ext/native/src/wrappers/emsdk/helpers.js +172 -0
- data/ext/native/src/wrappers/{asmjs → emsdk}/patch_embind.pl +9 -3
- data/ext/native/src/wrappers/{asmjs → emsdk}/wrapper.cxx +186 -6
- data/ext/native/src/wrappers/go/CMakeLists.txt +4 -4
- data/ext/native/src/wrappers/java/CMakeLists.txt +4 -4
- data/ext/native/src/wrappers/java/src/VirgilStreamDataSink.java +3 -3
- data/ext/native/src/wrappers/java/src/VirgilStreamDataSource.java +3 -3
- data/ext/native/src/wrappers/net/CMakeLists.txt +50 -28
- data/ext/native/src/wrappers/net/src/AssemblyInfo.cs +4 -4
- data/ext/native/src/wrappers/net/src/VirgilStreamDataSink.cs +4 -4
- data/ext/native/src/wrappers/net/src/VirgilStreamDataSource.cs +4 -4
- data/ext/native/src/wrappers/nodejs/CMakeLists.txt +241 -54
- data/ext/native/src/wrappers/nodejs/checksum.txt +405 -0
- data/ext/native/src/wrappers/nodejs/load_checksum.py +82 -0
- data/ext/native/src/wrappers/php/CMakeLists.txt +9 -5
- data/ext/native/src/wrappers/php/tests/CMakeLists.txt +6 -6
- data/ext/native/src/wrappers/php/tests/StringSink.php.in +3 -3
- data/ext/native/src/wrappers/php/tests/StringSource.php.in +3 -3
- data/ext/native/src/wrappers/php/tests/VirgilAsn1Reader_Test.php.in +5 -4
- data/ext/native/src/wrappers/php/tests/VirgilAsn1Writer_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilAsymmetricCipher_EC_Test.php.in +4 -13
- data/ext/native/src/wrappers/php/tests/VirgilAsymmetricCipher_RSA_Test.php.in +4 -13
- data/ext/native/src/wrappers/php/tests/VirgilChunkCipher_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilCipher_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilCustomParams_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilHash_MD5_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilHash_SHA256_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilHash_SHA512_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilKDF_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilPBE_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilPBKDF_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilRandom_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilSigner_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilStreamCipher_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilStreamSigner_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilSymmetricCipher_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/VirgilVersion_Test.php.in +4 -4
- data/ext/native/src/wrappers/php/tests/data/CMakeLists.txt +3 -3
- data/ext/native/src/wrappers/python/CMakeLists.txt +4 -4
- data/ext/native/src/wrappers/ruby/CMakeLists.txt +4 -4
- data/ext/native/src/wrappers/swig/common.i +10 -11
- data/ext/native/src/wrappers/swig/csharp/FixedArray.i +3 -3
- data/ext/native/src/wrappers/swig/csharp/VirgilByteArray.i +3 -3
- data/ext/native/src/wrappers/swig/csharp/common.i +3 -3
- data/ext/native/src/wrappers/swig/csharp/csharphead.swg.in +12 -12
- data/ext/native/src/wrappers/swig/go/common.i.in +3 -3
- data/ext/native/src/wrappers/swig/java/VirgilByteArray.i +3 -3
- data/ext/native/src/wrappers/swig/java/common.i +3 -3
- data/ext/native/src/wrappers/swig/php/common.i +12 -6
- data/ext/native/src/wrappers/swig/php/{VirgilByteArray.i → php5/VirgilByteArray.i} +3 -3
- data/ext/native/src/wrappers/swig/php/php7/VirgilByteArray.i +122 -0
- data/ext/native/src/wrappers/swig/util.i +3 -3
- data/ext/native/src/wrappers/swig/wrapper.i.in +67 -35
- data/ext/native/src/wrappers/webasm/CMakeLists.txt +73 -0
- data/lib/virgil/crypto/version.rb +1 -1
- data/virgil-crypto.gemspec +6 -2
- metadata +77 -667
- data/ext/native/src/ci/configure.sh +0 -71
- data/ext/native/src/ci/install-cmake.sh +0 -48
- data/ext/native/src/ci/install-credentials.sh +0 -45
- data/ext/native/src/ci/install-phpunit.sh +0 -47
- data/ext/native/src/ci/install-swig.sh +0 -47
- data/ext/native/src/ci/run.sh +0 -55
- data/ext/native/src/ci/travis_ci_rsa.enc +0 -0
- data/ext/native/src/cmake/apple.toolchain.cmake +0 -323
- data/ext/native/src/cmake/pnacl.toolchain.cmake +0 -87
- data/ext/native/src/lib/include/CMakeLists.txt +0 -66
- data/ext/native/src/libs_ext/mbedtls/configs/config_pnacl.h +0 -8
- data/ext/native/src/wrappers/asmjs/helpers.js +0 -155
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/android-ifaddrs.h +0 -54
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/ares.h +0 -636
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/ares_version.h +0 -24
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/libplatform/libplatform.h +0 -38
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/nameser.h +0 -211
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node.h +0 -447
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_buffer.h +0 -125
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_internals.h +0 -236
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_object_wrap.h +0 -137
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/node_version.h +0 -69
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/aes.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/asn1.h +0 -1417
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/asn1_mac.h +0 -579
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/asn1t.h +0 -973
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/bio.h +0 -875
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/blowfish.h +0 -130
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/bn.h +0 -957
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/buffer.h +0 -118
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/camellia.h +0 -132
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/cast.h +0 -107
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/cmac.h +0 -82
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/cms.h +0 -505
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/comp.h +0 -79
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/conf.h +0 -267
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/conf_api.h +0 -89
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/crypto.h +0 -661
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/des.h +0 -257
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/des_old.h +0 -497
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dh.h +0 -287
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dsa.h +0 -329
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dso.h +0 -451
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/dtls1.h +0 -268
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/e_os2.h +0 -328
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ebcdic.h +0 -26
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ec.h +0 -1193
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ecdh.h +0 -127
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ecdsa.h +0 -260
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/engine.h +0 -961
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/err.h +0 -389
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/evp.h +0 -1480
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/hmac.h +0 -109
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/idea.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/krb5_asn.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/kssl.h +0 -197
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/lhash.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/md4.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/md5.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/mdc2.h +0 -94
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/modes.h +0 -153
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/obj_mac.h +0 -4031
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/objects.h +0 -1143
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ocsp.h +0 -626
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/opensslconf.h +0 -333
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/opensslv.h +0 -97
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ossl_typ.h +0 -209
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pem.h +0 -611
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pem2.h +0 -70
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pkcs12.h +0 -342
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pkcs7.h +0 -481
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/pqueue.h +0 -99
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rand.h +0 -150
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rc2.h +0 -103
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rc4.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ripemd.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/rsa.h +0 -610
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/safestack.h +0 -2536
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/seed.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/sha.h +0 -214
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/srp.h +0 -169
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/srtp.h +0 -148
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl.h +0 -2766
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl2.h +0 -265
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl23.h +0 -84
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ssl3.h +0 -730
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/stack.h +0 -106
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/symhacks.h +0 -486
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/tls1.h +0 -788
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ts.h +0 -862
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/txt_db.h +0 -112
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ui.h +0 -415
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/ui_compat.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/whrlpool.h +0 -41
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/x509.h +0 -1301
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/x509_vfy.h +0 -595
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/openssl/x509v3.h +0 -1015
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/pthread-fixes.h +0 -72
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/smalloc.h +0 -153
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/stdint-msvc2008.h +0 -247
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/tree.h +0 -768
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-aix.h +0 -32
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-bsd.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-darwin.h +0 -61
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-errno.h +0 -418
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-linux.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-sunos.h +0 -44
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-threadpool.h +0 -37
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-unix.h +0 -383
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-version.h +0 -39
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv-win.h +0 -647
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/uv.h +0 -1467
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-debug.h +0 -267
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-platform.h +0 -62
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-profiler.h +0 -611
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-testing.h +0 -48
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-util.h +0 -487
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8-version.h +0 -20
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8.h +0 -6741
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8config.h +0 -451
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/v8stdint.h +0 -33
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/zconf.h +0 -511
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/include/zlib.h +0 -1768
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v0.12.7/lib/win/x86/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/android-ifaddrs.h +0 -54
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/ares.h +0 -589
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/ares_version.h +0 -24
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/libplatform/libplatform.h +0 -38
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/nameser.h +0 -211
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node.h +0 -470
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_buffer.h +0 -65
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_internals.h +0 -339
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_object_wrap.h +0 -116
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/node_version.h +0 -45
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/aes.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/BSD-x86/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/BSD-x86_64/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/VC-WIN32/opensslconf.h +0 -259
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/VC-WIN64A/opensslconf.h +0 -259
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/aix-gcc/opensslconf.h +0 -261
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/aix64-gcc/opensslconf.h +0 -261
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/darwin-i386-cc/opensslconf.h +0 -261
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +0 -261
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-aarch64/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-armv4/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-elf/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-ppc/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-ppc64/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-x32/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/linux-x86_64/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/solaris-x86-gcc/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +0 -258
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/asn1.h +0 -1419
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/asn1_mac.h +0 -579
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/asn1t.h +0 -973
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/bio.h +0 -879
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/blowfish.h +0 -130
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/bn.h +0 -939
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/buffer.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/camellia.h +0 -132
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/cast.h +0 -107
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/cmac.h +0 -82
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/cms.h +0 -555
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/comp.h +0 -79
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/conf.h +0 -267
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/conf_api.h +0 -89
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/crypto.h +0 -661
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/des.h +0 -257
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/des_old.h +0 -497
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dh.h +0 -392
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dsa.h +0 -332
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dso.h +0 -451
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/dtls1.h +0 -272
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/e_os2.h +0 -328
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ebcdic.h +0 -26
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ec.h +0 -1282
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ecdh.h +0 -134
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ecdsa.h +0 -335
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/engine.h +0 -960
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/err.h +0 -389
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/evp.h +0 -1534
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/hmac.h +0 -109
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/idea.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/krb5_asn.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/kssl.h +0 -197
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/lhash.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/md4.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/md5.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/mdc2.h +0 -94
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/modes.h +0 -163
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/obj_mac.h +0 -4194
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/objects.h +0 -1143
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ocsp.h +0 -637
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/opensslconf.h +0 -138
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/opensslv.h +0 -97
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ossl_typ.h +0 -211
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pem.h +0 -615
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pem2.h +0 -70
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pkcs12.h +0 -342
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pkcs7.h +0 -481
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/pqueue.h +0 -99
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rand.h +0 -150
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rc2.h +0 -103
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rc4.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ripemd.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/rsa.h +0 -664
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/safestack.h +0 -2672
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/seed.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/sha.h +0 -214
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/srp.h +0 -169
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/srtp.h +0 -147
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl.h +0 -3164
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl2.h +0 -265
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl23.h +0 -84
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ssl3.h +0 -774
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/stack.h +0 -107
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/symhacks.h +0 -516
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/tls1.h +0 -813
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ts.h +0 -862
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/txt_db.h +0 -112
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ui.h +0 -415
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/ui_compat.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/whrlpool.h +0 -41
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/x509.h +0 -1327
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/x509_vfy.h +0 -647
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/openssl/x509v3.h +0 -1055
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/pthread-fixes.h +0 -72
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/stdint-msvc2008.h +0 -247
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/tree.h +0 -768
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-aix.h +0 -32
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-bsd.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-darwin.h +0 -61
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-errno.h +0 -418
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-linux.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-sunos.h +0 -44
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-threadpool.h +0 -37
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-unix.h +0 -383
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-version.h +0 -43
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv-win.h +0 -655
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/uv.h +0 -1472
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-debug.h +0 -280
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-platform.h +0 -82
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-profiler.h +0 -648
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-testing.h +0 -48
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-util.h +0 -640
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8-version.h +0 -20
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8.h +0 -8366
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/v8config.h +0 -424
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/zconf.h +0 -511
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/include/zlib.h +0 -1768
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v4.1.0/lib/win/x86/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/android-ifaddrs.h +0 -54
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/ares.h +0 -589
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/ares_version.h +0 -24
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/common.gypi +0 -337
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/config.gypi +0 -44
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/libplatform/libplatform.h +0 -38
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/nameser.h +0 -211
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node.h +0 -470
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_buffer.h +0 -65
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_internals.h +0 -333
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_object_wrap.h +0 -116
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/node_version.h +0 -57
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/aes.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/BSD-x86/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/BSD-x86_64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/VC-WIN32/opensslconf.h +0 -271
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/VC-WIN64A/opensslconf.h +0 -271
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/aix-gcc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/aix64-gcc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/darwin-i386-cc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-aarch64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-armv4/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-elf/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-ppc/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-ppc64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-x32/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/linux-x86_64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/solaris-x86-gcc/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/asn1.h +0 -1419
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/asn1_mac.h +0 -579
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/asn1t.h +0 -973
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/bio.h +0 -883
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/blowfish.h +0 -130
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/bn.h +0 -949
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/buffer.h +0 -125
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/camellia.h +0 -132
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/cast.h +0 -107
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/cmac.h +0 -82
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/cms.h +0 -555
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/comp.h +0 -83
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/conf.h +0 -267
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/conf_api.h +0 -89
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/crypto.h +0 -661
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/des.h +0 -257
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/des_old.h +0 -497
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dh.h +0 -393
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dsa.h +0 -332
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dso.h +0 -451
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/dtls1.h +0 -272
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/e_os2.h +0 -328
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ebcdic.h +0 -26
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ec.h +0 -1282
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ecdh.h +0 -134
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ecdsa.h +0 -335
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/engine.h +0 -960
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/err.h +0 -389
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/evp.h +0 -1534
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/hmac.h +0 -109
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/idea.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/krb5_asn.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/kssl.h +0 -197
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/lhash.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/md4.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/md5.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/mdc2.h +0 -94
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/modes.h +0 -163
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/obj_mac.h +0 -4194
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/objects.h +0 -1143
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ocsp.h +0 -637
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/opensslconf.h +0 -138
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/opensslv.h +0 -97
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ossl_typ.h +0 -211
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pem.h +0 -615
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pem2.h +0 -70
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pkcs12.h +0 -342
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pkcs7.h +0 -481
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/pqueue.h +0 -99
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rand.h +0 -150
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rc2.h +0 -103
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rc4.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ripemd.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/rsa.h +0 -664
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/safestack.h +0 -2672
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/seed.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/sha.h +0 -214
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/srp.h +0 -179
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/srtp.h +0 -147
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl.h +0 -3169
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl2.h +0 -265
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl23.h +0 -84
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ssl3.h +0 -774
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/stack.h +0 -107
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/symhacks.h +0 -516
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/tls1.h +0 -810
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ts.h +0 -862
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/txt_db.h +0 -112
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ui.h +0 -415
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/ui_compat.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/whrlpool.h +0 -41
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/x509.h +0 -1328
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/x509_vfy.h +0 -647
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/openssl/x509v3.h +0 -1055
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/pthread-fixes.h +0 -72
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/stdint-msvc2008.h +0 -247
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/tree.h +0 -768
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-aix.h +0 -32
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-bsd.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-darwin.h +0 -61
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-errno.h +0 -418
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-linux.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-sunos.h +0 -44
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-threadpool.h +0 -37
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-unix.h +0 -383
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-version.h +0 -43
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv-win.h +0 -653
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/uv.h +0 -1482
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-debug.h +0 -280
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-platform.h +0 -82
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-profiler.h +0 -648
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-testing.h +0 -48
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-util.h +0 -640
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8-version.h +0 -20
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8.h +0 -8379
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/v8config.h +0 -424
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/zconf.h +0 -511
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/include/zlib.h +0 -1768
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v4.4.4/lib/win/x86/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/android-ifaddrs.h +0 -54
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares.h +0 -627
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares_build.h +0 -117
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares_rules.h +0 -130
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/ares_version.h +0 -24
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/common.gypi +0 -335
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/config.gypi +0 -45
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/libplatform/libplatform.h +0 -38
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/nameser.h +0 -211
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node.h +0 -470
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_buffer.h +0 -65
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_internals.h +0 -331
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_object_wrap.h +0 -116
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/node_version.h +0 -54
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/aes.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/BSD-x86/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/BSD-x86_64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/VC-WIN32/opensslconf.h +0 -271
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/VC-WIN64A/opensslconf.h +0 -271
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/aix-gcc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/aix64-gcc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/darwin-i386-cc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-aarch64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-armv4/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-elf/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-ppc/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-ppc64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-x32/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/linux-x86_64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/solaris-x86-gcc/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/asn1.h +0 -1419
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/asn1_mac.h +0 -579
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/asn1t.h +0 -973
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/bio.h +0 -883
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/blowfish.h +0 -130
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/bn.h +0 -949
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/buffer.h +0 -125
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/camellia.h +0 -132
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/cast.h +0 -107
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/cmac.h +0 -82
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/cms.h +0 -555
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/comp.h +0 -79
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/conf.h +0 -267
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/conf_api.h +0 -89
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/crypto.h +0 -661
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/des.h +0 -257
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/des_old.h +0 -497
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dh.h +0 -393
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dsa.h +0 -332
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dso.h +0 -451
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/dtls1.h +0 -272
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/e_os2.h +0 -328
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ebcdic.h +0 -26
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ec.h +0 -1282
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ecdh.h +0 -134
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ecdsa.h +0 -335
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/engine.h +0 -960
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/err.h +0 -389
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/evp.h +0 -1534
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/hmac.h +0 -109
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/idea.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/krb5_asn.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/kssl.h +0 -197
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/lhash.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/md4.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/md5.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/mdc2.h +0 -94
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/modes.h +0 -163
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/obj_mac.h +0 -4194
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/objects.h +0 -1143
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ocsp.h +0 -637
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/opensslconf.h +0 -138
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/opensslv.h +0 -97
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ossl_typ.h +0 -211
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pem.h +0 -615
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pem2.h +0 -70
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pkcs12.h +0 -342
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pkcs7.h +0 -481
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/pqueue.h +0 -99
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rand.h +0 -150
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rc2.h +0 -103
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rc4.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ripemd.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/rsa.h +0 -664
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/safestack.h +0 -2672
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/seed.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/sha.h +0 -214
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/srp.h +0 -179
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/srtp.h +0 -147
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl.h +0 -3169
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl2.h +0 -265
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl23.h +0 -84
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ssl3.h +0 -774
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/stack.h +0 -107
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/symhacks.h +0 -516
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/tls1.h +0 -810
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ts.h +0 -862
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/txt_db.h +0 -112
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ui.h +0 -415
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/ui_compat.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/whrlpool.h +0 -41
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/x509.h +0 -1327
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/x509_vfy.h +0 -647
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/openssl/x509v3.h +0 -1055
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/pthread-fixes.h +0 -72
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/stdint-msvc2008.h +0 -247
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/tree.h +0 -768
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-aix.h +0 -32
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-bsd.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-darwin.h +0 -61
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-errno.h +0 -418
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-linux.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-sunos.h +0 -44
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-threadpool.h +0 -37
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-unix.h +0 -383
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-version.h +0 -43
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv-win.h +0 -653
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/uv.h +0 -1482
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-debug.h +0 -280
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-platform.h +0 -114
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-profiler.h +0 -648
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-testing.h +0 -48
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-util.h +0 -643
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8-version.h +0 -20
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8.h +0 -8369
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/v8config.h +0 -424
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/zconf.h +0 -511
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/include/zlib.h +0 -1768
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v5.9.1/lib/win/x86/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/android-ifaddrs.h +0 -54
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares.h +0 -635
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares_build.h +0 -117
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares_rules.h +0 -130
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/ares_version.h +0 -24
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/common.gypi +0 -361
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/config.gypi +0 -47
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/libplatform/libplatform.h +0 -38
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/nameser.h +0 -211
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node.h +0 -489
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_buffer.h +0 -68
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_internals.h +0 -309
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_object_wrap.h +0 -111
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/node_version.h +0 -54
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/aes.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/BSD-x86/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/BSD-x86_64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/VC-WIN32/opensslconf.h +0 -271
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/VC-WIN64A/opensslconf.h +0 -271
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/aix-gcc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/aix64-gcc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/darwin-i386-cc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/darwin64-x86_64-cc/opensslconf.h +0 -273
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-aarch64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-armv4/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-elf/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-ppc/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-ppc64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-x32/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux-x86_64/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux32-s390x/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/linux64-s390x/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/solaris-x86-gcc/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/archs/solaris64-x86_64-gcc/opensslconf.h +0 -270
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/asn1.h +0 -1419
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/asn1_mac.h +0 -579
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/asn1t.h +0 -973
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/bio.h +0 -883
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/blowfish.h +0 -130
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/bn.h +0 -949
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/buffer.h +0 -125
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/camellia.h +0 -132
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/cast.h +0 -107
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/cmac.h +0 -82
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/cms.h +0 -555
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/comp.h +0 -83
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/conf.h +0 -267
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/conf_api.h +0 -89
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/crypto.h +0 -661
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/des.h +0 -257
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/des_old.h +0 -497
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dh.h +0 -393
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dsa.h +0 -332
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dso.h +0 -451
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/dtls1.h +0 -272
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/e_os2.h +0 -328
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ebcdic.h +0 -26
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ec.h +0 -1282
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ecdh.h +0 -134
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ecdsa.h +0 -335
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/engine.h +0 -960
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/err.h +0 -389
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/evp.h +0 -1534
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/hmac.h +0 -109
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/idea.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/krb5_asn.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/kssl.h +0 -197
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/lhash.h +0 -240
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/md4.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/md5.h +0 -119
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/mdc2.h +0 -94
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/modes.h +0 -163
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/obj_mac.h +0 -4194
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/objects.h +0 -1143
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ocsp.h +0 -637
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/opensslconf.h +0 -146
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/opensslv.h +0 -97
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ossl_typ.h +0 -211
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pem.h +0 -615
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pem2.h +0 -70
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pkcs12.h +0 -342
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pkcs7.h +0 -481
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/pqueue.h +0 -99
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rand.h +0 -150
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rc2.h +0 -103
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rc4.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ripemd.h +0 -105
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/rsa.h +0 -664
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/safestack.h +0 -2672
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/seed.h +0 -149
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/sha.h +0 -214
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/srp.h +0 -179
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/srtp.h +0 -147
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl.h +0 -3169
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl2.h +0 -265
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl23.h +0 -84
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ssl3.h +0 -774
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/stack.h +0 -107
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/symhacks.h +0 -516
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/tls1.h +0 -810
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ts.h +0 -862
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/txt_db.h +0 -112
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ui.h +0 -415
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/ui_compat.h +0 -88
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/whrlpool.h +0 -41
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/x509.h +0 -1328
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/x509_vfy.h +0 -647
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/openssl/x509v3.h +0 -1055
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/pthread-fixes.h +0 -72
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/stdint-msvc2008.h +0 -247
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/tree.h +0 -768
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-aix.h +0 -32
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-bsd.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-darwin.h +0 -61
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-errno.h +0 -418
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-linux.h +0 -34
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-sunos.h +0 -44
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-threadpool.h +0 -37
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-unix.h +0 -383
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-version.h +0 -43
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv-win.h +0 -648
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/uv.h +0 -1495
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-debug.h +0 -288
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-experimental.h +0 -54
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-platform.h +0 -171
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-profiler.h +0 -782
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-testing.h +0 -48
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-util.h +0 -643
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8-version.h +0 -20
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8.h +0 -8586
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/v8config.h +0 -438
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/zconf.h +0 -511
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/include/zlib.h +0 -1768
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/lib/win/x64/node.lib +0 -0
- data/ext/native/src/wrappers/nodejs/node-v6.1.0/lib/win/x86/node.lib +0 -0
@@ -1,48 +0,0 @@
|
|
1
|
-
// Copyright 2010 the V8 project authors. All rights reserved.
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
3
|
-
// found in the LICENSE file.
|
4
|
-
|
5
|
-
#ifndef V8_V8_TEST_H_
|
6
|
-
#define V8_V8_TEST_H_
|
7
|
-
|
8
|
-
#include "v8.h"
|
9
|
-
|
10
|
-
/**
|
11
|
-
* Testing support for the V8 JavaScript engine.
|
12
|
-
*/
|
13
|
-
namespace v8 {
|
14
|
-
|
15
|
-
class V8_EXPORT Testing {
|
16
|
-
public:
|
17
|
-
enum StressType {
|
18
|
-
kStressTypeOpt,
|
19
|
-
kStressTypeDeopt
|
20
|
-
};
|
21
|
-
|
22
|
-
/**
|
23
|
-
* Set the type of stressing to do. The default if not set is kStressTypeOpt.
|
24
|
-
*/
|
25
|
-
static void SetStressRunType(StressType type);
|
26
|
-
|
27
|
-
/**
|
28
|
-
* Get the number of runs of a given test that is required to get the full
|
29
|
-
* stress coverage.
|
30
|
-
*/
|
31
|
-
static int GetStressRuns();
|
32
|
-
|
33
|
-
/**
|
34
|
-
* Indicate the number of the run which is about to start. The value of run
|
35
|
-
* should be between 0 and one less than the result from GetStressRuns()
|
36
|
-
*/
|
37
|
-
static void PrepareStressRun(int run);
|
38
|
-
|
39
|
-
/**
|
40
|
-
* Force deoptimization of all functions.
|
41
|
-
*/
|
42
|
-
static void DeoptimizeAll();
|
43
|
-
};
|
44
|
-
|
45
|
-
|
46
|
-
} // namespace v8
|
47
|
-
|
48
|
-
#endif // V8_V8_TEST_H_
|
@@ -1,643 +0,0 @@
|
|
1
|
-
// Copyright 2014 the V8 project authors. All rights reserved.
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
3
|
-
// found in the LICENSE file.
|
4
|
-
|
5
|
-
#ifndef V8_UTIL_H_
|
6
|
-
#define V8_UTIL_H_
|
7
|
-
|
8
|
-
#include "v8.h"
|
9
|
-
#include <map>
|
10
|
-
#include <vector>
|
11
|
-
|
12
|
-
/**
|
13
|
-
* Support for Persistent containers.
|
14
|
-
*
|
15
|
-
* C++11 embedders can use STL containers with Global values,
|
16
|
-
* but pre-C++11 does not support the required move semantic and hence
|
17
|
-
* may want these container classes.
|
18
|
-
*/
|
19
|
-
namespace v8 {
|
20
|
-
|
21
|
-
typedef uintptr_t PersistentContainerValue;
|
22
|
-
static const uintptr_t kPersistentContainerNotFound = 0;
|
23
|
-
enum PersistentContainerCallbackType {
|
24
|
-
kNotWeak,
|
25
|
-
// These correspond to v8::WeakCallbackType
|
26
|
-
kWeakWithParameter,
|
27
|
-
kWeakWithInternalFields,
|
28
|
-
kWeak = kWeakWithParameter // For backwards compatibility. Deprecate.
|
29
|
-
};
|
30
|
-
|
31
|
-
|
32
|
-
/**
|
33
|
-
* A default trait implemenation for PersistentValueMap which uses std::map
|
34
|
-
* as a backing map.
|
35
|
-
*
|
36
|
-
* Users will have to implement their own weak callbacks & dispose traits.
|
37
|
-
*/
|
38
|
-
template<typename K, typename V>
|
39
|
-
class StdMapTraits {
|
40
|
-
public:
|
41
|
-
// STL map & related:
|
42
|
-
typedef std::map<K, PersistentContainerValue> Impl;
|
43
|
-
typedef typename Impl::iterator Iterator;
|
44
|
-
|
45
|
-
static bool Empty(Impl* impl) { return impl->empty(); }
|
46
|
-
static size_t Size(Impl* impl) { return impl->size(); }
|
47
|
-
static void Swap(Impl& a, Impl& b) { std::swap(a, b); } // NOLINT
|
48
|
-
static Iterator Begin(Impl* impl) { return impl->begin(); }
|
49
|
-
static Iterator End(Impl* impl) { return impl->end(); }
|
50
|
-
static K Key(Iterator it) { return it->first; }
|
51
|
-
static PersistentContainerValue Value(Iterator it) { return it->second; }
|
52
|
-
static PersistentContainerValue Set(Impl* impl, K key,
|
53
|
-
PersistentContainerValue value) {
|
54
|
-
std::pair<Iterator, bool> res = impl->insert(std::make_pair(key, value));
|
55
|
-
PersistentContainerValue old_value = kPersistentContainerNotFound;
|
56
|
-
if (!res.second) {
|
57
|
-
old_value = res.first->second;
|
58
|
-
res.first->second = value;
|
59
|
-
}
|
60
|
-
return old_value;
|
61
|
-
}
|
62
|
-
static PersistentContainerValue Get(Impl* impl, K key) {
|
63
|
-
Iterator it = impl->find(key);
|
64
|
-
if (it == impl->end()) return kPersistentContainerNotFound;
|
65
|
-
return it->second;
|
66
|
-
}
|
67
|
-
static PersistentContainerValue Remove(Impl* impl, K key) {
|
68
|
-
Iterator it = impl->find(key);
|
69
|
-
if (it == impl->end()) return kPersistentContainerNotFound;
|
70
|
-
PersistentContainerValue value = it->second;
|
71
|
-
impl->erase(it);
|
72
|
-
return value;
|
73
|
-
}
|
74
|
-
};
|
75
|
-
|
76
|
-
|
77
|
-
/**
|
78
|
-
* A default trait implementation for PersistentValueMap, which inherits
|
79
|
-
* a std:map backing map from StdMapTraits and holds non-weak persistent
|
80
|
-
* objects and has no special Dispose handling.
|
81
|
-
*
|
82
|
-
* You should not derive from this class, since MapType depends on the
|
83
|
-
* surrounding class, and hence a subclass cannot simply inherit the methods.
|
84
|
-
*/
|
85
|
-
template<typename K, typename V>
|
86
|
-
class DefaultPersistentValueMapTraits : public StdMapTraits<K, V> {
|
87
|
-
public:
|
88
|
-
// Weak callback & friends:
|
89
|
-
static const PersistentContainerCallbackType kCallbackType = kNotWeak;
|
90
|
-
typedef PersistentValueMap<K, V, DefaultPersistentValueMapTraits<K, V> >
|
91
|
-
MapType;
|
92
|
-
typedef void WeakCallbackDataType;
|
93
|
-
|
94
|
-
static WeakCallbackDataType* WeakCallbackParameter(
|
95
|
-
MapType* map, const K& key, Local<V> value) {
|
96
|
-
return NULL;
|
97
|
-
}
|
98
|
-
static MapType* MapFromWeakCallbackData(
|
99
|
-
const WeakCallbackData<V, WeakCallbackDataType>& data) {
|
100
|
-
return NULL;
|
101
|
-
}
|
102
|
-
static K KeyFromWeakCallbackData(
|
103
|
-
const WeakCallbackData<V, WeakCallbackDataType>& data) {
|
104
|
-
return K();
|
105
|
-
}
|
106
|
-
static void DisposeCallbackData(WeakCallbackDataType* data) { }
|
107
|
-
static void Dispose(Isolate* isolate, Global<V> value, K key) {}
|
108
|
-
};
|
109
|
-
|
110
|
-
|
111
|
-
template <typename K, typename V>
|
112
|
-
class DefaultGlobalMapTraits : public StdMapTraits<K, V> {
|
113
|
-
private:
|
114
|
-
template <typename T>
|
115
|
-
struct RemovePointer;
|
116
|
-
|
117
|
-
public:
|
118
|
-
// Weak callback & friends:
|
119
|
-
static const PersistentContainerCallbackType kCallbackType = kNotWeak;
|
120
|
-
typedef GlobalValueMap<K, V, DefaultGlobalMapTraits<K, V> > MapType;
|
121
|
-
typedef void WeakCallbackDataType;
|
122
|
-
|
123
|
-
static WeakCallbackDataType* WeakCallbackParameter(MapType* map, const K& key,
|
124
|
-
Local<V> value) {
|
125
|
-
return nullptr;
|
126
|
-
}
|
127
|
-
static MapType* MapFromWeakCallbackInfo(
|
128
|
-
const WeakCallbackInfo<WeakCallbackDataType>& data) {
|
129
|
-
return nullptr;
|
130
|
-
}
|
131
|
-
static K KeyFromWeakCallbackInfo(
|
132
|
-
const WeakCallbackInfo<WeakCallbackDataType>& data) {
|
133
|
-
return K();
|
134
|
-
}
|
135
|
-
static void DisposeCallbackData(WeakCallbackDataType* data) {}
|
136
|
-
static void OnWeakCallback(
|
137
|
-
const WeakCallbackInfo<WeakCallbackDataType>& data) {}
|
138
|
-
static void Dispose(Isolate* isolate, Global<V> value, K key) {}
|
139
|
-
// This is a second pass callback, so SetSecondPassCallback cannot be called.
|
140
|
-
static void DisposeWeak(const WeakCallbackInfo<WeakCallbackDataType>& data) {}
|
141
|
-
|
142
|
-
private:
|
143
|
-
template <typename T>
|
144
|
-
struct RemovePointer<T*> {
|
145
|
-
typedef T Type;
|
146
|
-
};
|
147
|
-
};
|
148
|
-
|
149
|
-
|
150
|
-
/**
|
151
|
-
* A map wrapper that allows using Global as a mapped value.
|
152
|
-
* C++11 embedders don't need this class, as they can use Global
|
153
|
-
* directly in std containers.
|
154
|
-
*
|
155
|
-
* The map relies on a backing map, whose type and accessors are described
|
156
|
-
* by the Traits class. The backing map will handle values of type
|
157
|
-
* PersistentContainerValue, with all conversion into and out of V8
|
158
|
-
* handles being transparently handled by this class.
|
159
|
-
*/
|
160
|
-
template <typename K, typename V, typename Traits>
|
161
|
-
class PersistentValueMapBase {
|
162
|
-
public:
|
163
|
-
Isolate* GetIsolate() { return isolate_; }
|
164
|
-
|
165
|
-
/**
|
166
|
-
* Return size of the map.
|
167
|
-
*/
|
168
|
-
size_t Size() { return Traits::Size(&impl_); }
|
169
|
-
|
170
|
-
/**
|
171
|
-
* Return whether the map holds weak persistents.
|
172
|
-
*/
|
173
|
-
bool IsWeak() { return Traits::kCallbackType != kNotWeak; }
|
174
|
-
|
175
|
-
/**
|
176
|
-
* Get value stored in map.
|
177
|
-
*/
|
178
|
-
Local<V> Get(const K& key) {
|
179
|
-
return Local<V>::New(isolate_, FromVal(Traits::Get(&impl_, key)));
|
180
|
-
}
|
181
|
-
|
182
|
-
/**
|
183
|
-
* Check whether a value is contained in the map.
|
184
|
-
*/
|
185
|
-
bool Contains(const K& key) {
|
186
|
-
return Traits::Get(&impl_, key) != kPersistentContainerNotFound;
|
187
|
-
}
|
188
|
-
|
189
|
-
/**
|
190
|
-
* Get value stored in map and set it in returnValue.
|
191
|
-
* Return true if a value was found.
|
192
|
-
*/
|
193
|
-
bool SetReturnValue(const K& key,
|
194
|
-
ReturnValue<Value> returnValue) {
|
195
|
-
return SetReturnValueFromVal(&returnValue, Traits::Get(&impl_, key));
|
196
|
-
}
|
197
|
-
|
198
|
-
/**
|
199
|
-
* Call Isolate::SetReference with the given parent and the map value.
|
200
|
-
*/
|
201
|
-
void SetReference(const K& key,
|
202
|
-
const Persistent<Object>& parent) {
|
203
|
-
GetIsolate()->SetReference(
|
204
|
-
reinterpret_cast<internal::Object**>(parent.val_),
|
205
|
-
reinterpret_cast<internal::Object**>(FromVal(Traits::Get(&impl_, key))));
|
206
|
-
}
|
207
|
-
|
208
|
-
/**
|
209
|
-
* Return value for key and remove it from the map.
|
210
|
-
*/
|
211
|
-
Global<V> Remove(const K& key) {
|
212
|
-
return Release(Traits::Remove(&impl_, key)).Pass();
|
213
|
-
}
|
214
|
-
|
215
|
-
/**
|
216
|
-
* Traverses the map repeatedly,
|
217
|
-
* in case side effects of disposal cause insertions.
|
218
|
-
**/
|
219
|
-
void Clear() {
|
220
|
-
typedef typename Traits::Iterator It;
|
221
|
-
HandleScope handle_scope(isolate_);
|
222
|
-
// TODO(dcarney): figure out if this swap and loop is necessary.
|
223
|
-
while (!Traits::Empty(&impl_)) {
|
224
|
-
typename Traits::Impl impl;
|
225
|
-
Traits::Swap(impl_, impl);
|
226
|
-
for (It i = Traits::Begin(&impl); i != Traits::End(&impl); ++i) {
|
227
|
-
Traits::Dispose(isolate_, Release(Traits::Value(i)).Pass(),
|
228
|
-
Traits::Key(i));
|
229
|
-
}
|
230
|
-
}
|
231
|
-
}
|
232
|
-
|
233
|
-
/**
|
234
|
-
* Helper class for GetReference/SetWithReference. Do not use outside
|
235
|
-
* that context.
|
236
|
-
*/
|
237
|
-
class PersistentValueReference {
|
238
|
-
public:
|
239
|
-
PersistentValueReference() : value_(kPersistentContainerNotFound) { }
|
240
|
-
PersistentValueReference(const PersistentValueReference& other)
|
241
|
-
: value_(other.value_) { }
|
242
|
-
|
243
|
-
Local<V> NewLocal(Isolate* isolate) const {
|
244
|
-
return Local<V>::New(isolate, FromVal(value_));
|
245
|
-
}
|
246
|
-
bool IsEmpty() const {
|
247
|
-
return value_ == kPersistentContainerNotFound;
|
248
|
-
}
|
249
|
-
template<typename T>
|
250
|
-
bool SetReturnValue(ReturnValue<T> returnValue) {
|
251
|
-
return SetReturnValueFromVal(&returnValue, value_);
|
252
|
-
}
|
253
|
-
void Reset() {
|
254
|
-
value_ = kPersistentContainerNotFound;
|
255
|
-
}
|
256
|
-
void operator=(const PersistentValueReference& other) {
|
257
|
-
value_ = other.value_;
|
258
|
-
}
|
259
|
-
|
260
|
-
private:
|
261
|
-
friend class PersistentValueMapBase;
|
262
|
-
friend class PersistentValueMap<K, V, Traits>;
|
263
|
-
friend class GlobalValueMap<K, V, Traits>;
|
264
|
-
|
265
|
-
explicit PersistentValueReference(PersistentContainerValue value)
|
266
|
-
: value_(value) { }
|
267
|
-
|
268
|
-
void operator=(PersistentContainerValue value) {
|
269
|
-
value_ = value;
|
270
|
-
}
|
271
|
-
|
272
|
-
PersistentContainerValue value_;
|
273
|
-
};
|
274
|
-
|
275
|
-
/**
|
276
|
-
* Get a reference to a map value. This enables fast, repeated access
|
277
|
-
* to a value stored in the map while the map remains unchanged.
|
278
|
-
*
|
279
|
-
* Careful: This is potentially unsafe, so please use with care.
|
280
|
-
* The value will become invalid if the value for this key changes
|
281
|
-
* in the underlying map, as a result of Set or Remove for the same
|
282
|
-
* key; as a result of the weak callback for the same key; or as a
|
283
|
-
* result of calling Clear() or destruction of the map.
|
284
|
-
*/
|
285
|
-
PersistentValueReference GetReference(const K& key) {
|
286
|
-
return PersistentValueReference(Traits::Get(&impl_, key));
|
287
|
-
}
|
288
|
-
|
289
|
-
protected:
|
290
|
-
explicit PersistentValueMapBase(Isolate* isolate) : isolate_(isolate) {}
|
291
|
-
|
292
|
-
~PersistentValueMapBase() { Clear(); }
|
293
|
-
|
294
|
-
Isolate* isolate() { return isolate_; }
|
295
|
-
typename Traits::Impl* impl() { return &impl_; }
|
296
|
-
|
297
|
-
static V* FromVal(PersistentContainerValue v) {
|
298
|
-
return reinterpret_cast<V*>(v);
|
299
|
-
}
|
300
|
-
|
301
|
-
static PersistentContainerValue ClearAndLeak(Global<V>* persistent) {
|
302
|
-
V* v = persistent->val_;
|
303
|
-
persistent->val_ = 0;
|
304
|
-
return reinterpret_cast<PersistentContainerValue>(v);
|
305
|
-
}
|
306
|
-
|
307
|
-
static PersistentContainerValue Leak(Global<V>* persistent) {
|
308
|
-
return reinterpret_cast<PersistentContainerValue>(persistent->val_);
|
309
|
-
}
|
310
|
-
|
311
|
-
/**
|
312
|
-
* Return a container value as Global and make sure the weak
|
313
|
-
* callback is properly disposed of. All remove functionality should go
|
314
|
-
* through this.
|
315
|
-
*/
|
316
|
-
static Global<V> Release(PersistentContainerValue v) {
|
317
|
-
Global<V> p;
|
318
|
-
p.val_ = FromVal(v);
|
319
|
-
if (Traits::kCallbackType != kNotWeak && p.IsWeak()) {
|
320
|
-
Traits::DisposeCallbackData(
|
321
|
-
p.template ClearWeak<typename Traits::WeakCallbackDataType>());
|
322
|
-
}
|
323
|
-
return p.Pass();
|
324
|
-
}
|
325
|
-
|
326
|
-
void RemoveWeak(const K& key) {
|
327
|
-
Global<V> p;
|
328
|
-
p.val_ = FromVal(Traits::Remove(&impl_, key));
|
329
|
-
p.Reset();
|
330
|
-
}
|
331
|
-
|
332
|
-
private:
|
333
|
-
PersistentValueMapBase(PersistentValueMapBase&);
|
334
|
-
void operator=(PersistentValueMapBase&);
|
335
|
-
|
336
|
-
static bool SetReturnValueFromVal(ReturnValue<Value>* returnValue,
|
337
|
-
PersistentContainerValue value) {
|
338
|
-
bool hasValue = value != kPersistentContainerNotFound;
|
339
|
-
if (hasValue) {
|
340
|
-
returnValue->SetInternal(
|
341
|
-
*reinterpret_cast<internal::Object**>(FromVal(value)));
|
342
|
-
}
|
343
|
-
return hasValue;
|
344
|
-
}
|
345
|
-
|
346
|
-
Isolate* isolate_;
|
347
|
-
typename Traits::Impl impl_;
|
348
|
-
};
|
349
|
-
|
350
|
-
|
351
|
-
template <typename K, typename V, typename Traits>
|
352
|
-
class PersistentValueMap : public PersistentValueMapBase<K, V, Traits> {
|
353
|
-
public:
|
354
|
-
explicit PersistentValueMap(Isolate* isolate)
|
355
|
-
: PersistentValueMapBase<K, V, Traits>(isolate) {}
|
356
|
-
|
357
|
-
typedef
|
358
|
-
typename PersistentValueMapBase<K, V, Traits>::PersistentValueReference
|
359
|
-
PersistentValueReference;
|
360
|
-
|
361
|
-
/**
|
362
|
-
* Put value into map. Depending on Traits::kIsWeak, the value will be held
|
363
|
-
* by the map strongly or weakly.
|
364
|
-
* Returns old value as Global.
|
365
|
-
*/
|
366
|
-
Global<V> Set(const K& key, Local<V> value) {
|
367
|
-
Global<V> persistent(this->isolate(), value);
|
368
|
-
return SetUnique(key, &persistent);
|
369
|
-
}
|
370
|
-
|
371
|
-
/**
|
372
|
-
* Put value into map, like Set(const K&, Local<V>).
|
373
|
-
*/
|
374
|
-
Global<V> Set(const K& key, Global<V> value) {
|
375
|
-
return SetUnique(key, &value);
|
376
|
-
}
|
377
|
-
|
378
|
-
/**
|
379
|
-
* Put the value into the map, and set the 'weak' callback when demanded
|
380
|
-
* by the Traits class.
|
381
|
-
*/
|
382
|
-
Global<V> SetUnique(const K& key, Global<V>* persistent) {
|
383
|
-
if (Traits::kCallbackType != kNotWeak) {
|
384
|
-
Local<V> value(Local<V>::New(this->isolate(), *persistent));
|
385
|
-
persistent->template SetWeak<typename Traits::WeakCallbackDataType>(
|
386
|
-
Traits::WeakCallbackParameter(this, key, value), WeakCallback);
|
387
|
-
}
|
388
|
-
PersistentContainerValue old_value =
|
389
|
-
Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
|
390
|
-
return this->Release(old_value).Pass();
|
391
|
-
}
|
392
|
-
|
393
|
-
/**
|
394
|
-
* Put a value into the map and update the reference.
|
395
|
-
* Restrictions of GetReference apply here as well.
|
396
|
-
*/
|
397
|
-
Global<V> Set(const K& key, Global<V> value,
|
398
|
-
PersistentValueReference* reference) {
|
399
|
-
*reference = this->Leak(&value);
|
400
|
-
return SetUnique(key, &value);
|
401
|
-
}
|
402
|
-
|
403
|
-
private:
|
404
|
-
static void WeakCallback(
|
405
|
-
const WeakCallbackData<V, typename Traits::WeakCallbackDataType>& data) {
|
406
|
-
if (Traits::kCallbackType != kNotWeak) {
|
407
|
-
PersistentValueMap<K, V, Traits>* persistentValueMap =
|
408
|
-
Traits::MapFromWeakCallbackData(data);
|
409
|
-
K key = Traits::KeyFromWeakCallbackData(data);
|
410
|
-
Traits::Dispose(data.GetIsolate(),
|
411
|
-
persistentValueMap->Remove(key).Pass(), key);
|
412
|
-
Traits::DisposeCallbackData(data.GetParameter());
|
413
|
-
}
|
414
|
-
}
|
415
|
-
};
|
416
|
-
|
417
|
-
|
418
|
-
template <typename K, typename V, typename Traits>
|
419
|
-
class GlobalValueMap : public PersistentValueMapBase<K, V, Traits> {
|
420
|
-
public:
|
421
|
-
explicit GlobalValueMap(Isolate* isolate)
|
422
|
-
: PersistentValueMapBase<K, V, Traits>(isolate) {}
|
423
|
-
|
424
|
-
typedef
|
425
|
-
typename PersistentValueMapBase<K, V, Traits>::PersistentValueReference
|
426
|
-
PersistentValueReference;
|
427
|
-
|
428
|
-
/**
|
429
|
-
* Put value into map. Depending on Traits::kIsWeak, the value will be held
|
430
|
-
* by the map strongly or weakly.
|
431
|
-
* Returns old value as Global.
|
432
|
-
*/
|
433
|
-
Global<V> Set(const K& key, Local<V> value) {
|
434
|
-
Global<V> persistent(this->isolate(), value);
|
435
|
-
return SetUnique(key, &persistent);
|
436
|
-
}
|
437
|
-
|
438
|
-
/**
|
439
|
-
* Put value into map, like Set(const K&, Local<V>).
|
440
|
-
*/
|
441
|
-
Global<V> Set(const K& key, Global<V> value) {
|
442
|
-
return SetUnique(key, &value);
|
443
|
-
}
|
444
|
-
|
445
|
-
/**
|
446
|
-
* Put the value into the map, and set the 'weak' callback when demanded
|
447
|
-
* by the Traits class.
|
448
|
-
*/
|
449
|
-
Global<V> SetUnique(const K& key, Global<V>* persistent) {
|
450
|
-
if (Traits::kCallbackType != kNotWeak) {
|
451
|
-
WeakCallbackType callback_type =
|
452
|
-
Traits::kCallbackType == kWeakWithInternalFields
|
453
|
-
? WeakCallbackType::kInternalFields
|
454
|
-
: WeakCallbackType::kParameter;
|
455
|
-
Local<V> value(Local<V>::New(this->isolate(), *persistent));
|
456
|
-
persistent->template SetWeak<typename Traits::WeakCallbackDataType>(
|
457
|
-
Traits::WeakCallbackParameter(this, key, value), OnWeakCallback,
|
458
|
-
callback_type);
|
459
|
-
}
|
460
|
-
PersistentContainerValue old_value =
|
461
|
-
Traits::Set(this->impl(), key, this->ClearAndLeak(persistent));
|
462
|
-
return this->Release(old_value).Pass();
|
463
|
-
}
|
464
|
-
|
465
|
-
/**
|
466
|
-
* Put a value into the map and update the reference.
|
467
|
-
* Restrictions of GetReference apply here as well.
|
468
|
-
*/
|
469
|
-
Global<V> Set(const K& key, Global<V> value,
|
470
|
-
PersistentValueReference* reference) {
|
471
|
-
*reference = this->Leak(&value);
|
472
|
-
return SetUnique(key, &value);
|
473
|
-
}
|
474
|
-
|
475
|
-
private:
|
476
|
-
static void OnWeakCallback(
|
477
|
-
const WeakCallbackInfo<typename Traits::WeakCallbackDataType>& data) {
|
478
|
-
if (Traits::kCallbackType != kNotWeak) {
|
479
|
-
auto map = Traits::MapFromWeakCallbackInfo(data);
|
480
|
-
K key = Traits::KeyFromWeakCallbackInfo(data);
|
481
|
-
map->RemoveWeak(key);
|
482
|
-
Traits::OnWeakCallback(data);
|
483
|
-
data.SetSecondPassCallback(SecondWeakCallback);
|
484
|
-
}
|
485
|
-
}
|
486
|
-
|
487
|
-
static void SecondWeakCallback(
|
488
|
-
const WeakCallbackInfo<typename Traits::WeakCallbackDataType>& data) {
|
489
|
-
Traits::DisposeWeak(data);
|
490
|
-
}
|
491
|
-
};
|
492
|
-
|
493
|
-
|
494
|
-
/**
|
495
|
-
* A map that uses Global as value and std::map as the backing
|
496
|
-
* implementation. Persistents are held non-weak.
|
497
|
-
*
|
498
|
-
* C++11 embedders don't need this class, as they can use
|
499
|
-
* Global directly in std containers.
|
500
|
-
*/
|
501
|
-
template<typename K, typename V,
|
502
|
-
typename Traits = DefaultPersistentValueMapTraits<K, V> >
|
503
|
-
class StdPersistentValueMap : public PersistentValueMap<K, V, Traits> {
|
504
|
-
public:
|
505
|
-
explicit StdPersistentValueMap(Isolate* isolate)
|
506
|
-
: PersistentValueMap<K, V, Traits>(isolate) {}
|
507
|
-
};
|
508
|
-
|
509
|
-
|
510
|
-
/**
|
511
|
-
* A map that uses Global as value and std::map as the backing
|
512
|
-
* implementation. Globals are held non-weak.
|
513
|
-
*
|
514
|
-
* C++11 embedders don't need this class, as they can use
|
515
|
-
* Global directly in std containers.
|
516
|
-
*/
|
517
|
-
template <typename K, typename V,
|
518
|
-
typename Traits = DefaultGlobalMapTraits<K, V> >
|
519
|
-
class StdGlobalValueMap : public GlobalValueMap<K, V, Traits> {
|
520
|
-
public:
|
521
|
-
explicit StdGlobalValueMap(Isolate* isolate)
|
522
|
-
: GlobalValueMap<K, V, Traits>(isolate) {}
|
523
|
-
};
|
524
|
-
|
525
|
-
|
526
|
-
class DefaultPersistentValueVectorTraits {
|
527
|
-
public:
|
528
|
-
typedef std::vector<PersistentContainerValue> Impl;
|
529
|
-
|
530
|
-
static void Append(Impl* impl, PersistentContainerValue value) {
|
531
|
-
impl->push_back(value);
|
532
|
-
}
|
533
|
-
static bool IsEmpty(const Impl* impl) {
|
534
|
-
return impl->empty();
|
535
|
-
}
|
536
|
-
static size_t Size(const Impl* impl) {
|
537
|
-
return impl->size();
|
538
|
-
}
|
539
|
-
static PersistentContainerValue Get(const Impl* impl, size_t i) {
|
540
|
-
return (i < impl->size()) ? impl->at(i) : kPersistentContainerNotFound;
|
541
|
-
}
|
542
|
-
static void ReserveCapacity(Impl* impl, size_t capacity) {
|
543
|
-
impl->reserve(capacity);
|
544
|
-
}
|
545
|
-
static void Clear(Impl* impl) {
|
546
|
-
impl->clear();
|
547
|
-
}
|
548
|
-
};
|
549
|
-
|
550
|
-
|
551
|
-
/**
|
552
|
-
* A vector wrapper that safely stores Global values.
|
553
|
-
* C++11 embedders don't need this class, as they can use Global
|
554
|
-
* directly in std containers.
|
555
|
-
*
|
556
|
-
* This class relies on a backing vector implementation, whose type and methods
|
557
|
-
* are described by the Traits class. The backing map will handle values of type
|
558
|
-
* PersistentContainerValue, with all conversion into and out of V8
|
559
|
-
* handles being transparently handled by this class.
|
560
|
-
*/
|
561
|
-
template<typename V, typename Traits = DefaultPersistentValueVectorTraits>
|
562
|
-
class PersistentValueVector {
|
563
|
-
public:
|
564
|
-
explicit PersistentValueVector(Isolate* isolate) : isolate_(isolate) { }
|
565
|
-
|
566
|
-
~PersistentValueVector() {
|
567
|
-
Clear();
|
568
|
-
}
|
569
|
-
|
570
|
-
/**
|
571
|
-
* Append a value to the vector.
|
572
|
-
*/
|
573
|
-
void Append(Local<V> value) {
|
574
|
-
Global<V> persistent(isolate_, value);
|
575
|
-
Traits::Append(&impl_, ClearAndLeak(&persistent));
|
576
|
-
}
|
577
|
-
|
578
|
-
/**
|
579
|
-
* Append a persistent's value to the vector.
|
580
|
-
*/
|
581
|
-
void Append(Global<V> persistent) {
|
582
|
-
Traits::Append(&impl_, ClearAndLeak(&persistent));
|
583
|
-
}
|
584
|
-
|
585
|
-
/**
|
586
|
-
* Are there any values in the vector?
|
587
|
-
*/
|
588
|
-
bool IsEmpty() const {
|
589
|
-
return Traits::IsEmpty(&impl_);
|
590
|
-
}
|
591
|
-
|
592
|
-
/**
|
593
|
-
* How many elements are in the vector?
|
594
|
-
*/
|
595
|
-
size_t Size() const {
|
596
|
-
return Traits::Size(&impl_);
|
597
|
-
}
|
598
|
-
|
599
|
-
/**
|
600
|
-
* Retrieve the i-th value in the vector.
|
601
|
-
*/
|
602
|
-
Local<V> Get(size_t index) const {
|
603
|
-
return Local<V>::New(isolate_, FromVal(Traits::Get(&impl_, index)));
|
604
|
-
}
|
605
|
-
|
606
|
-
/**
|
607
|
-
* Remove all elements from the vector.
|
608
|
-
*/
|
609
|
-
void Clear() {
|
610
|
-
size_t length = Traits::Size(&impl_);
|
611
|
-
for (size_t i = 0; i < length; i++) {
|
612
|
-
Global<V> p;
|
613
|
-
p.val_ = FromVal(Traits::Get(&impl_, i));
|
614
|
-
}
|
615
|
-
Traits::Clear(&impl_);
|
616
|
-
}
|
617
|
-
|
618
|
-
/**
|
619
|
-
* Reserve capacity in the vector.
|
620
|
-
* (Efficiency gains depend on the backing implementation.)
|
621
|
-
*/
|
622
|
-
void ReserveCapacity(size_t capacity) {
|
623
|
-
Traits::ReserveCapacity(&impl_, capacity);
|
624
|
-
}
|
625
|
-
|
626
|
-
private:
|
627
|
-
static PersistentContainerValue ClearAndLeak(Global<V>* persistent) {
|
628
|
-
V* v = persistent->val_;
|
629
|
-
persistent->val_ = 0;
|
630
|
-
return reinterpret_cast<PersistentContainerValue>(v);
|
631
|
-
}
|
632
|
-
|
633
|
-
static V* FromVal(PersistentContainerValue v) {
|
634
|
-
return reinterpret_cast<V*>(v);
|
635
|
-
}
|
636
|
-
|
637
|
-
Isolate* isolate_;
|
638
|
-
typename Traits::Impl impl_;
|
639
|
-
};
|
640
|
-
|
641
|
-
} // namespace v8
|
642
|
-
|
643
|
-
#endif // V8_UTIL_H
|