libv8 5.7.492.65.1 → 5.9.211.38.0beta0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +8 -2
- data/CHANGELOG.md +4 -0
- data/README.md +4 -3
- data/Rakefile +27 -10
- data/ext/libv8/builder.rb +4 -0
- data/lib/libv8/version.rb +1 -1
- data/libv8.gemspec +1 -1
- data/patches/0001-Build-a-standalone-static-library.patch +5 -5
- data/patches/0002-Don-t-compile-unnecessary-stuff.patch +20 -24
- data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +5 -5
- data/patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch +5 -5
- data/patches/0005-Fix-GCC-7-build-errors.patch +147 -0
- data/scaleway.png +0 -0
- data/vendor/depot_tools/.gitattributes +52 -0
- data/vendor/depot_tools/.gitignore +10 -0
- data/vendor/depot_tools/README.md +7 -3
- data/vendor/depot_tools/apply_issue.bat +4 -3
- data/vendor/depot_tools/apply_issue.py +0 -10
- data/vendor/depot_tools/autoninja +12 -0
- data/vendor/depot_tools/autoninja.bat +9 -0
- data/vendor/depot_tools/autoninja.py +70 -0
- data/vendor/depot_tools/bootstrap/win/README.md +108 -26
- data/vendor/depot_tools/bootstrap/win/git-bash.template.sh +3 -3
- data/vendor/depot_tools/bootstrap/win/git.template.bat +2 -2
- data/vendor/depot_tools/bootstrap/win/manifest.txt +18 -0
- data/vendor/depot_tools/bootstrap/win/manifest_bleeding_edge.txt +18 -0
- data/vendor/depot_tools/bootstrap/win/python27.new.bat +49 -0
- data/vendor/depot_tools/bootstrap/win/win_tools.bat +55 -59
- data/vendor/depot_tools/bootstrap/win/win_tools.py +335 -0
- data/vendor/depot_tools/cipd +16 -2
- data/vendor/depot_tools/cipd.bat +20 -2
- data/vendor/depot_tools/cipd.ps1 +36 -22
- data/vendor/depot_tools/cipd_bin_setup.bat +6 -0
- data/vendor/depot_tools/cipd_bin_setup.sh +10 -0
- data/vendor/depot_tools/cipd_client_version +1 -1
- data/vendor/depot_tools/cipd_manifest.txt +9 -0
- data/vendor/depot_tools/cit.bat +12 -11
- data/vendor/depot_tools/clang-format.bat +4 -3
- data/vendor/depot_tools/clang_format_merge_driver.bat +12 -11
- data/vendor/depot_tools/commit_queue.bat +4 -3
- data/vendor/depot_tools/cpplint.bat +9 -3
- data/vendor/depot_tools/cpplint.py +3 -3
- data/vendor/depot_tools/depot-tools-auth.bat +4 -3
- data/vendor/depot_tools/download_from_google_storage.bat +5 -3
- data/vendor/depot_tools/download_from_google_storage.py +6 -1
- data/vendor/depot_tools/fetch.bat +5 -4
- data/vendor/depot_tools/fetch.py +4 -5
- data/vendor/depot_tools/gclient-new-workdir.py +82 -46
- data/vendor/depot_tools/gclient.bat +5 -4
- data/vendor/depot_tools/gclient.py +713 -319
- data/vendor/depot_tools/gclient_eval.py +284 -0
- data/vendor/depot_tools/gclient_utils.py +70 -4
- data/vendor/depot_tools/gerrit_client.py +26 -1
- data/vendor/depot_tools/gerrit_util.py +120 -127
- data/vendor/depot_tools/git-crrev-parse +1 -0
- data/vendor/depot_tools/git-gs +1 -1
- data/vendor/depot_tools/git_cl.py +731 -415
- data/vendor/depot_tools/git_common.py +23 -3
- data/vendor/depot_tools/git_drover.py +10 -1
- data/vendor/depot_tools/git_footers.py +62 -22
- data/vendor/depot_tools/git_hyper_blame.py +3 -2
- data/vendor/depot_tools/git_map.py +30 -3
- data/vendor/depot_tools/git_map_branches.py +18 -4
- data/vendor/depot_tools/git_number.py +8 -2
- data/vendor/depot_tools/git_retry.py +21 -0
- data/vendor/depot_tools/gn.bat +4 -3
- data/vendor/depot_tools/infra/config/cq.cfg +1 -5
- data/vendor/depot_tools/infra/config/recipes.cfg +18 -16
- data/vendor/depot_tools/led +12 -0
- data/vendor/depot_tools/led.bat +7 -0
- data/vendor/depot_tools/man/html/git-cl.html +9 -1
- data/vendor/depot_tools/man/html/git-drover.html +22 -18
- data/vendor/depot_tools/man/man1/git-cl.1 +8 -3
- data/vendor/depot_tools/man/man1/git-drover.1 +22 -20
- data/vendor/depot_tools/man/src/git-cl.txt +3 -0
- data/vendor/depot_tools/man/src/git-drover.txt +8 -0
- data/vendor/depot_tools/my_activity.py +8 -5
- data/vendor/depot_tools/owners.py +103 -11
- data/vendor/depot_tools/owners_finder.py +14 -2
- data/vendor/depot_tools/presubmit_canned_checks.py +25 -67
- data/vendor/depot_tools/presubmit_support.py +87 -35
- data/vendor/depot_tools/recipes/OWNERS +2 -0
- data/vendor/depot_tools/recipes/README.recipes.md +842 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/__init__.py +5 -3
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/api.py +181 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.expected → examples/full.expected}/apply_gerrit_ref.json +4 -2
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic.json +82 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/basic_with_branch_heads.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/buildbot.json +82 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/clobber.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json +122 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_shallow.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json +148 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange.json +150 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.expected → examples/full.expected}/trychange_oauth2.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_buildbot.json +152 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json.json +150 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json_win.json +150 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob.json +156 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +91 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +118 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +118 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json +202 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle_deprecated.json +158 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json +196 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8.json +202 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json +202 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json +162 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json +162 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/with_tags.json +149 -0
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/{example.py → examples/full.py} +46 -8
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py +139 -133
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/test_api.py +25 -13
- data/vendor/depot_tools/recipes/recipe_modules/cipd/api.py +40 -9
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/basic_pkg.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/describe-failed.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/describe-many-instances.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/mac64.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_file.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_mode.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/pkg_bad_verfile.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.expected → examples/full.expected}/win64.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/{example.py → examples/full.py} +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk arch.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/junk bits.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_32.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_arm_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_32.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_intel_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/linux_mips_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/mac_intel_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_32.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.expected/win_intel_64.json +14 -0
- data/vendor/depot_tools/recipes/recipe_modules/cipd/examples/platform_suffix.py +59 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/api.py +5 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.expected → examples/full.expected}/basic.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.expected → examples/full.expected}/win.json +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/depot_tools/{example.py → examples/full.py} +2 -0
- data/vendor/depot_tools/recipes/recipe_modules/gclient/__init__.py +1 -4
- data/vendor/depot_tools/recipes/recipe_modules/gclient/api.py +28 -14
- data/vendor/depot_tools/recipes/recipe_modules/gclient/config.py +10 -235
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/basic.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/buildbot.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/revision.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.expected → examples/full.expected}/tryserver.json +9 -9
- data/vendor/depot_tools/recipes/recipe_modules/gclient/{example.py → examples/full.py} +5 -21
- data/vendor/depot_tools/recipes/recipe_modules/gclient/tests/patch_project.py +45 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/__init__.py +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/api.py +97 -2
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.expected/basic.json +283 -0
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/{example.py → examples/full.py} +31 -2
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/test_api.py +30 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/__init__.py +1 -4
- data/vendor/depot_tools/recipes/recipe_modules/git/api.py +7 -35
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_branch.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_file_name.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_hash.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_ref.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/basic_submodule_update_force.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/can_fail_build.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/cannot_fail_build.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/cat-file_test.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_delta.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_failed.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_with_bad_output.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/count-objects_with_bad_output_fails_build.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/curl_trace_file.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/git-cache-checkout.json +6 -6
- data/vendor/depot_tools/recipes/recipe_modules/git/examples/full.expected/platform_win.json +223 -0
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/rebase_failed.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/remote_not_origin.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.expected → examples/full.expected}/set_got_revision.json +3 -3
- data/vendor/depot_tools/recipes/recipe_modules/git/{example.py → examples/full.py} +2 -1
- data/vendor/depot_tools/recipes/recipe_modules/git/resources/git_setup.py +12 -21
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/__init__.py +1 -4
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/api.py +13 -11
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/git_cl/{example.py → examples/full.py} +4 -2
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/OWNERS +3 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/__init__.py +7 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/api.py +135 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.expected/basic.json +537 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/examples/full.py +61 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/resources/gerrit_client.py +192 -0
- data/vendor/depot_tools/recipes/recipe_modules/gitiles/test_api.py +95 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/gsutil/{example.py → examples/full.py} +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/__init__.py +0 -3
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/basic.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_linux.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_mac.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_buildbot_win.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_generic_linux.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.expected → examples/full.expected}/paths_generic_mac.json +3 -2
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_generic_win.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_linux.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_mac.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/examples/full.expected/paths_kitchen_win.json +16 -0
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/{example.py → examples/full.py} +2 -1
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/path_config.py +12 -3
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/__init__.py +1 -0
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/api.py +2 -2
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/{example.expected → examples/full.expected}/basic.json +1 -1
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/{example.py → examples/full.py} +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/__init__.py +0 -4
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.expected → examples/full.expected}/basic.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.expected → examples/full.expected}/buildbot.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/no_auth.json +27 -0
- data/vendor/depot_tools/recipes/recipe_modules/rietveld/{example.py → examples/full.py} +9 -1
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/__init__.py +3 -5
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/api.py +21 -96
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/basic_tags.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/set_failure_hash_with_no_steps.json +0 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch.json +56 -0
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected/with_gerrit_patch_deprecated.json → examples/full.expected/with_git_patch.json} +2 -2
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected/with_gerrit_patch.json → examples/full.expected/with_git_patch_luci.json} +2 -2
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_rietveld_patch.json +0 -20
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_rietveld_patch_new.json +0 -20
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_wrong_patch.json +1 -13
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.expected → examples/full.expected}/with_wrong_patch_new.json +1 -13
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/{example.py → examples/full.py} +3 -17
- data/vendor/depot_tools/recipes/recipes.py +141 -96
- data/vendor/depot_tools/rietveld.py +8 -1
- data/vendor/depot_tools/roll-dep-svn.bat +12 -10
- data/vendor/depot_tools/roll-dep.bat +5 -3
- data/vendor/depot_tools/scm.py +8 -1
- data/vendor/depot_tools/setup_color.py +0 -0
- data/vendor/depot_tools/split_cl.py +193 -0
- data/vendor/depot_tools/third_party/schema/.editorconfig +15 -0
- data/vendor/depot_tools/third_party/schema/.gitignore +174 -0
- data/vendor/depot_tools/third_party/schema/.travis.yml +37 -0
- data/vendor/depot_tools/third_party/schema/LICENSE-MIT +19 -0
- data/vendor/depot_tools/third_party/schema/MANIFEST.in +1 -0
- data/vendor/depot_tools/third_party/schema/README.chromium +12 -0
- data/vendor/depot_tools/third_party/schema/README.rst +382 -0
- data/vendor/depot_tools/third_party/schema/__init__.py +1 -0
- data/vendor/depot_tools/third_party/schema/schema.py +338 -0
- data/vendor/depot_tools/third_party/schema/setup.cfg +5 -0
- data/vendor/depot_tools/third_party/schema/setup.py +30 -0
- data/vendor/depot_tools/third_party/schema/test_schema.py +556 -0
- data/vendor/depot_tools/third_party/schema/tox.ini +33 -0
- data/vendor/depot_tools/third_party/upload.py +4 -0
- data/vendor/depot_tools/update_depot_tools +4 -16
- data/vendor/depot_tools/update_depot_tools.bat +4 -17
- data/vendor/depot_tools/update_depot_tools_toggle.py +38 -0
- data/vendor/depot_tools/vpython +12 -0
- data/vendor/depot_tools/vpython.bat +7 -0
- data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +17 -5
- data/vendor/depot_tools/win_toolchain/package_from_installed.py +63 -33
- metadata +161 -113
- data/vendor/depot_tools/bootstrap/gclient.bat +0 -22
- data/vendor/depot_tools/bootstrap/win/get_file.js +0 -119
- data/vendor/depot_tools/bootstrap/win/git_bootstrap.py +0 -193
- data/vendor/depot_tools/bootstrap/win/git_version.txt +0 -1
- data/vendor/depot_tools/bootstrap/win/git_version_bleeding_edge.txt +0 -1
- data/vendor/depot_tools/bootstrap/win/python276.new.bat +0 -8
- data/vendor/depot_tools/bootstrap/win/svn.new.bat +0 -4
- data/vendor/depot_tools/bootstrap/win/svnversion.new.bat +0 -4
- data/vendor/depot_tools/bootstrap/win/unzip.js +0 -91
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic.json +0 -53
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic_output_manifest.json +0 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/basic_with_branch_heads.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/buildbot.json +0 -53
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/clobber.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/gerrit_no_rebase_patch_ref.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/gerrit_no_reset.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/no_shallow.json +0 -54
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/reset_root_solution_revision.json +0 -53
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange.json +0 -55
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_buildbot.json +0 -57
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_json.json +0 -55
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/trychange_oauth2_json_win.json +0 -55
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob.json +0 -59
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail.json +0 -62
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail_patch.json +0 -83
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_fail_patch_download.json +0 -84
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle.json +0 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_gerrit_angle_deprecated.json +0 -60
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_v8.json +0 -62
- data/vendor/depot_tools/recipes/recipe_modules/bot_update/example.expected/tryjob_v8_head_by_default.json +0 -62
- data/vendor/depot_tools/recipes/recipe_modules/gclient/bundle_extra_paths.txt +0 -4
- data/vendor/depot_tools/recipes/recipe_modules/gerrit/example.expected/basic.json +0 -66
- data/vendor/depot_tools/recipes/recipe_modules/git/bundle_extra_paths.txt +0 -28
- data/vendor/depot_tools/recipes/recipe_modules/git/example.expected/platform_win.json +0 -237
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_generic_win.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_linux.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_mac.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/infra_paths/example.expected/paths_kitchen_win.json +0 -15
- data/vendor/depot_tools/recipes/recipe_modules/presubmit/bundle_extra_paths.txt +0 -30
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/example.expected/with_git_patch.json +0 -109
- data/vendor/depot_tools/recipes/recipe_modules/tryserver/example.expected/with_git_patch_luci.json +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2c96c8350042505f72dfbcb5e0e397129f226449
|
4
|
+
data.tar.gz: fb7abdad6c16f0a3eda627614931fa2cd4244524
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd8a128213837f85f2a0245e7754d00c863fbbde5e38cfd5c3cd8192c0a57f53f3820098268abeec979fe402e2faa9897187f1d6701d0c7c3c7540f07a9b959c
|
7
|
+
data.tar.gz: '080d5c8b6b9d978dc8a11998c21c6b9bdb45ab571f26d618413d067288df360c29b19285f2f5bee661c228f088e8784f89237fa539a744f1bf8b964fbe27d519'
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
language: ruby
|
2
2
|
rvm:
|
3
|
-
- 2.4.
|
4
|
-
- 2.3.
|
3
|
+
- 2.4.1
|
4
|
+
- 2.3.4
|
5
5
|
- 2.2
|
6
6
|
- rbx
|
7
7
|
matrix:
|
@@ -15,6 +15,9 @@ matrix:
|
|
15
15
|
- rvm: 2.4.0
|
16
16
|
os: osx
|
17
17
|
osx_image: xcode6.4
|
18
|
+
- rvm: 2.4.0
|
19
|
+
os: osx
|
20
|
+
osx_image: xcode9
|
18
21
|
- rvm: system
|
19
22
|
os: osx
|
20
23
|
osx_image: xcode8.2
|
@@ -24,6 +27,9 @@ matrix:
|
|
24
27
|
- rvm: system
|
25
28
|
os: osx
|
26
29
|
osx_image: xcode6.4
|
30
|
+
- rvm: system
|
31
|
+
os: osx
|
32
|
+
osx_image: xcode9
|
27
33
|
- rvm: ruby-2.3.1-clang
|
28
34
|
env: CXX=clang++
|
29
35
|
- rvm: 1.9.3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# libv8
|
2
|
-
[![Gem Version](https://badge.fury.io/rb/libv8.svg)](
|
3
|
-
[![Number of downloads](
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/libv8.svg)](https://badge.fury.io/rb/libv8)
|
3
|
+
[![Number of downloads](https://ruby-gem-downloads-badge.herokuapp.com/libv8?type=total)](https://rubygems.org/gems/libv8)
|
4
4
|
[![Build Status](https://travis-ci.org/cowboyd/libv8.svg?branch=master)](https://travis-ci.org/cowboyd/libv8)
|
5
5
|
[![Join the chat at https://gitter.im/cowboyd/therubyracer](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/cowboyd/therubyracer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
6
6
|
[![Code Triagers Badge](https://www.codetriage.com/cowboyd/libv8/badges/users.svg)](https://www.codetriage.com/cowboyd/libv8)
|
@@ -172,7 +172,8 @@ installed that gem.
|
|
172
172
|
|
173
173
|
### Sponsored by
|
174
174
|
|
175
|
-
<a href="http://
|
175
|
+
<a href="http://frontside.io">![The Frontside](/thefrontside.png)</a>
|
176
|
+
<a href="https://www.scaleway.com">![Scaleway](/scaleway.png)</a>
|
176
177
|
|
177
178
|
### License
|
178
179
|
|
data/Rakefile
CHANGED
@@ -4,6 +4,18 @@ require 'rspec/core/rake_task'
|
|
4
4
|
Bundler::GemHelper.install_tasks
|
5
5
|
RSpec::Core::RakeTask.new :spec
|
6
6
|
|
7
|
+
DISTRIBUTIONS = [
|
8
|
+
'x86_64-linux',
|
9
|
+
'x86-linux',
|
10
|
+
'x86_64-freebsd-10',
|
11
|
+
'x86_64-freebsd-11',
|
12
|
+
'amd64-freebsd-10',
|
13
|
+
'amd64-freebsd-11',
|
14
|
+
'arm-linux',
|
15
|
+
# 'aarch64-linux', # Enable for V8 6
|
16
|
+
# 'x86_64-linux-musl'
|
17
|
+
]
|
18
|
+
|
7
19
|
module Helpers
|
8
20
|
module_function
|
9
21
|
def binary_gemspec(platform = Gem::Platform.local)
|
@@ -51,14 +63,7 @@ task :binary => :compile do
|
|
51
63
|
end
|
52
64
|
|
53
65
|
namespace :build do
|
54
|
-
|
55
|
-
'x86_64-linux',
|
56
|
-
'x86-linux',
|
57
|
-
'armhf-linux',
|
58
|
-
'x86_64-freebsd-10',
|
59
|
-
'x86_64-freebsd-11',
|
60
|
-
'x86_64-linux-musl'
|
61
|
-
].each do |arch|
|
66
|
+
DISTRIBUTIONS.each do |arch|
|
62
67
|
desc "build binary gem for #{arch}"
|
63
68
|
task arch do
|
64
69
|
arch_dir = Pathname(__FILE__).dirname.join("release/#{arch}")
|
@@ -68,14 +73,26 @@ namespace :build do
|
|
68
73
|
sh "vagrant ssh -c 'rm -rf ~/libv8'"
|
69
74
|
sh "vagrant ssh -c 'git clone /libv8/.git ~/libv8 --recursive'"
|
70
75
|
sh "vagrant ssh -c 'cd ~/libv8 && bundle install --path vendor/bundle'"
|
71
|
-
sh "vagrant ssh -c 'cd ~/libv8 && env MAKEFLAGS
|
72
|
-
sh "vagrant
|
76
|
+
sh "vagrant ssh -c 'cd ~/libv8 && env MAKEFLAGS=-j4 bundle exec rake binary'"
|
77
|
+
sh "vagrant status | grep scaleway" do |ok, res|
|
78
|
+
if ok
|
79
|
+
sh "vagrant ssh --no-tty -c 'cd ~/libv8/pkg && tar -cf - *.gem' 2>/dev/null | tar -xv"
|
80
|
+
else
|
81
|
+
sh "vagrant ssh -c 'cp ~/libv8/pkg/*.gem /vagrant'"
|
82
|
+
end
|
83
|
+
end
|
73
84
|
sh "vagrant destroy -f"
|
74
85
|
end
|
75
86
|
end
|
76
87
|
end
|
77
88
|
end
|
78
89
|
|
90
|
+
desc "Build binary gems for all supported distributions"
|
91
|
+
task :binary_release => [:build] + DISTRIBUTIONS.map {|distribution| "build:#{distribution}"} do
|
92
|
+
sh "cd #{File.dirname(__FILE__)} && mkdir -p pkg"
|
93
|
+
sh "cd #{File.dirname(__FILE__)} && mv release/**/*.gem pkg/"
|
94
|
+
end
|
95
|
+
|
79
96
|
task :clean_submodules do
|
80
97
|
sh "git submodule --quiet foreach git reset --hard"
|
81
98
|
sh "git submodule --quiet foreach git clean -dxf"
|
data/ext/libv8/builder.rb
CHANGED
data/lib/libv8/version.rb
CHANGED
data/libv8.gemspec
CHANGED
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.extensions = ["ext/libv8/extconf.rb"]
|
27
27
|
s.require_paths = ["lib", "ext"]
|
28
28
|
|
29
|
-
s.add_development_dependency 'rake', '~>
|
29
|
+
s.add_development_dependency 'rake', '~> 12'
|
30
30
|
s.add_development_dependency 'rake-compiler', '~> 0'
|
31
31
|
s.add_development_dependency 'rspec', '~> 3'
|
32
32
|
end
|
@@ -1,17 +1,17 @@
|
|
1
|
-
From
|
1
|
+
From 0bf02c0c573c22962065c5eb1a86e48f64a8ef24 Mon Sep 17 00:00:00 2001
|
2
2
|
From: Petko Bordjukov <bordjukov@gmail.com>
|
3
3
|
Date: Mon, 25 Jul 2016 00:00:19 +0300
|
4
|
-
Subject: [PATCH 1/
|
4
|
+
Subject: [PATCH 1/5] Build a standalone static library
|
5
5
|
|
6
6
|
---
|
7
7
|
gypfiles/standalone.gypi | 3 +++
|
8
8
|
1 file changed, 3 insertions(+)
|
9
9
|
|
10
10
|
diff --git a/gypfiles/standalone.gypi b/gypfiles/standalone.gypi
|
11
|
-
index
|
11
|
+
index 986aaaaebb..9006c2c2f5 100644
|
12
12
|
--- a/gypfiles/standalone.gypi
|
13
13
|
+++ b/gypfiles/standalone.gypi
|
14
|
-
@@ -
|
14
|
+
@@ -522,6 +522,9 @@
|
15
15
|
}], # fastbuild!=0
|
16
16
|
],
|
17
17
|
'target_conditions': [
|
@@ -22,5 +22,5 @@ index d438a5aeab..f28c9bfa9f 100644
|
|
22
22
|
'defines!': [
|
23
23
|
'DEBUG',
|
24
24
|
--
|
25
|
-
2.
|
25
|
+
2.13.3
|
26
26
|
|
@@ -1,18 +1,18 @@
|
|
1
|
-
From
|
1
|
+
From 3332a98da84d9ad9ec918feedb0aefc0bfceed52 Mon Sep 17 00:00:00 2001
|
2
2
|
From: Petko Bordjukov <bordjukov@gmail.com>
|
3
3
|
Date: Tue, 28 Feb 2017 00:04:26 +0200
|
4
|
-
Subject: [PATCH 2/
|
4
|
+
Subject: [PATCH 2/5] Don't compile unnecessary stuff
|
5
5
|
|
6
6
|
---
|
7
7
|
Makefile | 7 +------
|
8
|
-
gypfiles/all.gyp |
|
9
|
-
2 files changed,
|
8
|
+
gypfiles/all.gyp | 32 --------------------------------
|
9
|
+
2 files changed, 1 insertion(+), 38 deletions(-)
|
10
10
|
|
11
11
|
diff --git a/Makefile b/Makefile
|
12
|
-
index
|
12
|
+
index 299d4aa09c..16d8d2dd11 100644
|
13
13
|
--- a/Makefile
|
14
14
|
+++ b/Makefile
|
15
|
-
@@ -
|
15
|
+
@@ -270,12 +270,7 @@ GYPFILES = third_party/icu/icu.gypi third_party/icu/icu.gyp \
|
16
16
|
gypfiles/shim_headers.gypi gypfiles/features.gypi \
|
17
17
|
gypfiles/standalone.gypi \
|
18
18
|
gypfiles/toolchain.gypi gypfiles/all.gyp gypfiles/mac/asan.gyp \
|
@@ -22,19 +22,26 @@ index 6eeac09a14..a2807ffafe 100644
|
|
22
22
|
- buildtools/third_party/libc++abi/libc++abi.gyp \
|
23
23
|
- buildtools/third_party/libc++/libc++.gyp samples/samples.gyp \
|
24
24
|
- src/third_party/vtune/v8vtune.gyp src/d8.gyp
|
25
|
-
+
|
25
|
+
+ src/v8.gyp tools/parser-shell.gyp src/d8.gyp
|
26
26
|
|
27
27
|
# If vtunejit=on, the v8vtune.gyp will be appended.
|
28
28
|
ifeq ($(vtunejit), on)
|
29
29
|
diff --git a/gypfiles/all.gyp b/gypfiles/all.gyp
|
30
|
-
index
|
30
|
+
index bbad66741c..96820a0ecc 100644
|
31
31
|
--- a/gypfiles/all.gyp
|
32
32
|
+++ b/gypfiles/all.gyp
|
33
|
-
@@ -
|
34
|
-
|
33
|
+
@@ -9,7 +9,6 @@
|
34
|
+
'type': 'none',
|
35
|
+
'dependencies': [
|
36
|
+
'../src/d8.gyp:d8',
|
37
|
+
- '../test/inspector/inspector.gyp:*',
|
38
|
+
],
|
39
|
+
'conditions': [
|
40
|
+
['component!="shared_library"', {
|
41
|
+
@@ -17,37 +16,6 @@
|
35
42
|
'../tools/parser-shell.gyp:parser-shell',
|
36
43
|
],
|
37
|
-
|
44
|
+
}],
|
38
45
|
- # These items don't compile for Android on Mac.
|
39
46
|
- ['host_os!="mac" or OS!="android"', {
|
40
47
|
- 'dependencies': [
|
@@ -44,20 +51,11 @@ index 12e1fdadb7..9b02b4d305 100644
|
|
44
51
|
- '../test/unittests/unittests.gyp:*',
|
45
52
|
- ],
|
46
53
|
- }],
|
47
|
-
- ['v8_enable_inspector==1', {
|
48
|
-
- 'dependencies': [
|
49
|
-
- '../test/inspector/inspector.gyp:*',
|
50
|
-
- ],
|
51
|
-
- }],
|
52
|
-
- ['v8_enable_inspector==1 and test_isolation_mode != "noop"', {
|
53
|
-
- 'dependencies': [
|
54
|
-
- '../test/debugger/debugger.gyp:*',
|
55
|
-
- ],
|
56
|
-
- }],
|
57
54
|
- ['test_isolation_mode != "noop"', {
|
58
55
|
- 'dependencies': [
|
59
56
|
- '../test/bot_default.gyp:*',
|
60
57
|
- '../test/benchmarks/benchmarks.gyp:*',
|
58
|
+
- '../test/debugger/debugger.gyp:*',
|
61
59
|
- '../test/default.gyp:*',
|
62
60
|
- '../test/intl/intl.gyp:*',
|
63
61
|
- '../test/message/message.gyp:*',
|
@@ -66,7 +64,6 @@ index 12e1fdadb7..9b02b4d305 100644
|
|
66
64
|
- '../test/optimize_for_size.gyp:*',
|
67
65
|
- '../test/perf.gyp:*',
|
68
66
|
- '../test/preparser/preparser.gyp:*',
|
69
|
-
- '../test/simdjs/simdjs.gyp:*',
|
70
67
|
- '../test/test262/test262.gyp:*',
|
71
68
|
- '../test/webkit/webkit.gyp:*',
|
72
69
|
- '../tools/check-static-initializers.gyp:*',
|
@@ -76,10 +73,9 @@ index 12e1fdadb7..9b02b4d305 100644
|
|
76
73
|
- '../tools/run-valgrind.gyp:*',
|
77
74
|
- ],
|
78
75
|
- }],
|
79
|
-
+ }]
|
80
76
|
]
|
81
77
|
}
|
82
78
|
]
|
83
79
|
--
|
84
|
-
2.
|
80
|
+
2.13.3
|
85
81
|
|
@@ -1,17 +1,17 @@
|
|
1
|
-
From
|
1
|
+
From b2ba4c09507d83ccd7ff9e95abf5087b30445430 Mon Sep 17 00:00:00 2001
|
2
2
|
From: Petko Bordjukov <bordjukov@gmail.com>
|
3
3
|
Date: Mon, 25 Jul 2016 00:05:47 +0300
|
4
|
-
Subject: [PATCH 3/
|
4
|
+
Subject: [PATCH 3/5] Use the -fPIC flag for the static library
|
5
5
|
|
6
6
|
---
|
7
7
|
gypfiles/standalone.gypi | 2 +-
|
8
8
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
9
9
|
|
10
10
|
diff --git a/gypfiles/standalone.gypi b/gypfiles/standalone.gypi
|
11
|
-
index
|
11
|
+
index 9006c2c2f5..08eb0761c9 100644
|
12
12
|
--- a/gypfiles/standalone.gypi
|
13
13
|
+++ b/gypfiles/standalone.gypi
|
14
|
-
@@ -
|
14
|
+
@@ -794,7 +794,7 @@
|
15
15
|
[ 'visibility=="hidden" and v8_enable_backtrace==0', {
|
16
16
|
'cflags': [ '-fvisibility=hidden' ],
|
17
17
|
}],
|
@@ -21,5 +21,5 @@ index f28c9bfa9f..01e4dc9336 100644
|
|
21
21
|
}],
|
22
22
|
[ 'clang==0 and coverage==1', {
|
23
23
|
--
|
24
|
-
2.
|
24
|
+
2.13.3
|
25
25
|
|
@@ -1,7 +1,7 @@
|
|
1
|
-
From
|
1
|
+
From b5adedd20f6868d229ac524b170fcabc8c44c2db Mon Sep 17 00:00:00 2001
|
2
2
|
From: Jb Aviat <jb@sqreen.io>
|
3
3
|
Date: Mon, 27 Feb 2017 11:14:42 +0200
|
4
|
-
Subject: [PATCH 4/
|
4
|
+
Subject: [PATCH 4/5] Do not embed debug symbols in macOS libraries
|
5
5
|
|
6
6
|
This lowers dramatically the produced binary size
|
7
7
|
---
|
@@ -9,10 +9,10 @@ This lowers dramatically the produced binary size
|
|
9
9
|
1 file changed, 1 insertion(+)
|
10
10
|
|
11
11
|
diff --git a/gypfiles/standalone.gypi b/gypfiles/standalone.gypi
|
12
|
-
index
|
12
|
+
index 08eb0761c9..453e9efed9 100644
|
13
13
|
--- a/gypfiles/standalone.gypi
|
14
14
|
+++ b/gypfiles/standalone.gypi
|
15
|
-
@@ -
|
15
|
+
@@ -1054,6 +1054,7 @@
|
16
16
|
'GCC_ENABLE_CPP_EXCEPTIONS': 'NO', # -fno-exceptions
|
17
17
|
'GCC_ENABLE_CPP_RTTI': 'NO', # -fno-rtti
|
18
18
|
'GCC_ENABLE_PASCAL_STRINGS': 'NO', # No -mpascal-strings
|
@@ -21,5 +21,5 @@ index 01e4dc9336..027eaff718 100644
|
|
21
21
|
'GCC_INLINES_ARE_PRIVATE_EXTERN': 'YES',
|
22
22
|
'GCC_SYMBOLS_PRIVATE_EXTERN': 'YES', # -fvisibility=hidden
|
23
23
|
--
|
24
|
-
2.
|
24
|
+
2.13.3
|
25
25
|
|
@@ -0,0 +1,147 @@
|
|
1
|
+
From 116d78a457473837092190b2a9187b660813258d Mon Sep 17 00:00:00 2001
|
2
|
+
From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= <mic.besace@gmail.com>
|
3
|
+
Date: Tue, 20 Jun 2017 13:14:38 +0200
|
4
|
+
Subject: [PATCH 5/5] Fix GCC 7 build errors
|
5
|
+
|
6
|
+
BUG=chromium:691681
|
7
|
+
R=franzih@chromium.org
|
8
|
+
|
9
|
+
Change-Id: Id7e5698487f16dc217a804f6d3f24da7213c72b9
|
10
|
+
Reviewed-on: https://chromium-review.googlesource.com/530227
|
11
|
+
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
|
12
|
+
Reviewed-by: Toon Verwaest <verwaest@chromium.org>
|
13
|
+
Cr-Commit-Position: refs/heads/master@{#46045}
|
14
|
+
---
|
15
|
+
BUILD.gn | 1 +
|
16
|
+
src/objects-body-descriptors.h | 2 +-
|
17
|
+
src/objects-inl.h | 2 ++
|
18
|
+
src/objects/hash-table-inl.h | 34 ++++++++++++++++++++++++++++++++++
|
19
|
+
src/objects/hash-table.h | 20 ++++----------------
|
20
|
+
src/v8.gyp | 1 +
|
21
|
+
6 files changed, 43 insertions(+), 17 deletions(-)
|
22
|
+
create mode 100644 src/objects/hash-table-inl.h
|
23
|
+
|
24
|
+
diff --git a/BUILD.gn b/BUILD.gn
|
25
|
+
index 80ff7340b1..becf4177c1 100644
|
26
|
+
--- a/BUILD.gn
|
27
|
+
+++ b/BUILD.gn
|
28
|
+
@@ -1717,6 +1717,7 @@ v8_source_set("v8_base") {
|
29
|
+
"src/objects/dictionary.h",
|
30
|
+
"src/objects/frame-array-inl.h",
|
31
|
+
"src/objects/frame-array.h",
|
32
|
+
+ "src/objects/hash-table-inl.h",
|
33
|
+
"src/objects/hash-table.h",
|
34
|
+
"src/objects/literal-objects.cc",
|
35
|
+
"src/objects/literal-objects.h",
|
36
|
+
diff --git a/src/objects-body-descriptors.h b/src/objects-body-descriptors.h
|
37
|
+
index 9f080eb755..b201c20fbb 100644
|
38
|
+
--- a/src/objects-body-descriptors.h
|
39
|
+
+++ b/src/objects-body-descriptors.h
|
40
|
+
@@ -99,7 +99,7 @@ class FixedBodyDescriptor final : public BodyDescriptorBase {
|
41
|
+
|
42
|
+
template <typename StaticVisitor>
|
43
|
+
static inline void IterateBody(HeapObject* obj, int object_size) {
|
44
|
+
- IterateBody(obj);
|
45
|
+
+ IterateBody<StaticVisitor>(obj);
|
46
|
+
}
|
47
|
+
};
|
48
|
+
|
49
|
+
diff --git a/src/objects-inl.h b/src/objects-inl.h
|
50
|
+
index 4b819d43f4..07b62cc140 100644
|
51
|
+
--- a/src/objects-inl.h
|
52
|
+
+++ b/src/objects-inl.h
|
53
|
+
@@ -31,6 +31,8 @@
|
54
|
+
#include "src/lookup-cache-inl.h"
|
55
|
+
#include "src/lookup.h"
|
56
|
+
#include "src/objects.h"
|
57
|
+
+#include "src/objects/hash-table-inl.h"
|
58
|
+
+#include "src/objects/hash-table.h"
|
59
|
+
#include "src/objects/literal-objects.h"
|
60
|
+
#include "src/objects/module-info.h"
|
61
|
+
#include "src/objects/regexp-match-info.h"
|
62
|
+
diff --git a/src/objects/hash-table-inl.h b/src/objects/hash-table-inl.h
|
63
|
+
new file mode 100644
|
64
|
+
index 0000000000..7b2db38495
|
65
|
+
--- /dev/null
|
66
|
+
+++ b/src/objects/hash-table-inl.h
|
67
|
+
@@ -0,0 +1,34 @@
|
68
|
+
+// Copyright 2017 the V8 project authors. All rights reserved.
|
69
|
+
+// Use of this source code is governed by a BSD-style license that can be
|
70
|
+
+// found in the LICENSE file.
|
71
|
+
+
|
72
|
+
+#ifndef V8_OBJECTS_HASH_TABLE_INL_H_
|
73
|
+
+#define V8_OBJECTS_HASH_TABLE_INL_H_
|
74
|
+
+
|
75
|
+
+#include "src/objects/hash-table.h"
|
76
|
+
+
|
77
|
+
+namespace v8 {
|
78
|
+
+namespace internal {
|
79
|
+
+
|
80
|
+
+template <typename Derived, typename Shape, typename Key>
|
81
|
+
+uint32_t HashTable<Derived, Shape, Key>::Hash(Key key) {
|
82
|
+
+ if (Shape::UsesSeed) {
|
83
|
+
+ return Shape::SeededHash(key, GetHeap()->HashSeed());
|
84
|
+
+ } else {
|
85
|
+
+ return Shape::Hash(key);
|
86
|
+
+ }
|
87
|
+
+}
|
88
|
+
+
|
89
|
+
+template <typename Derived, typename Shape, typename Key>
|
90
|
+
+uint32_t HashTable<Derived, Shape, Key>::HashForObject(Key key, Object* object) {
|
91
|
+
+ if (Shape::UsesSeed) {
|
92
|
+
+ return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object);
|
93
|
+
+ } else {
|
94
|
+
+ return Shape::HashForObject(key, object);
|
95
|
+
+ }
|
96
|
+
+}
|
97
|
+
+
|
98
|
+
+} // namespace internal
|
99
|
+
+} // namespace v8
|
100
|
+
+
|
101
|
+
+#endif // V8_OBJECTS_HASH_TABLE_INL_H_
|
102
|
+
diff --git a/src/objects/hash-table.h b/src/objects/hash-table.h
|
103
|
+
index 221598b711..3a351e3e16 100644
|
104
|
+
--- a/src/objects/hash-table.h
|
105
|
+
+++ b/src/objects/hash-table.h
|
106
|
+
@@ -135,22 +135,10 @@ class HashTable : public HashTableBase {
|
107
|
+
public:
|
108
|
+
typedef Shape ShapeT;
|
109
|
+
|
110
|
+
- // Wrapper methods
|
111
|
+
- inline uint32_t Hash(Key key) {
|
112
|
+
- if (Shape::UsesSeed) {
|
113
|
+
- return Shape::SeededHash(key, GetHeap()->HashSeed());
|
114
|
+
- } else {
|
115
|
+
- return Shape::Hash(key);
|
116
|
+
- }
|
117
|
+
- }
|
118
|
+
-
|
119
|
+
- inline uint32_t HashForObject(Key key, Object* object) {
|
120
|
+
- if (Shape::UsesSeed) {
|
121
|
+
- return Shape::SeededHashForObject(key, GetHeap()->HashSeed(), object);
|
122
|
+
- } else {
|
123
|
+
- return Shape::HashForObject(key, object);
|
124
|
+
- }
|
125
|
+
- }
|
126
|
+
+ // Wrapper methods. Defined in src/objects/hash-table-inl.h
|
127
|
+
+ // to break a cycle with src/heap/heap.h.
|
128
|
+
+ inline uint32_t Hash(Key key);
|
129
|
+
+ inline uint32_t HashForObject(Key key, Object* object);
|
130
|
+
|
131
|
+
// Returns a new HashTable object.
|
132
|
+
MUST_USE_RESULT static Handle<Derived> New(
|
133
|
+
diff --git a/src/v8.gyp b/src/v8.gyp
|
134
|
+
index 1f94a0680a..a8efcdcf3f 100644
|
135
|
+
--- a/src/v8.gyp
|
136
|
+
+++ b/src/v8.gyp
|
137
|
+
@@ -1118,6 +1118,7 @@
|
138
|
+
'objects/dictionary.h',
|
139
|
+
'objects/frame-array.h',
|
140
|
+
'objects/frame-array-inl.h',
|
141
|
+
+ 'objects/hash-table-inl.h',
|
142
|
+
'objects/hash-table.h',
|
143
|
+
'objects/literal-objects.cc',
|
144
|
+
'objects/literal-objects.h',
|
145
|
+
--
|
146
|
+
2.13.3
|
147
|
+
|