libv8 6.3.292.48.1 → 6.7.288.46.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (195) hide show
  1. checksums.yaml +5 -5
  2. data/.travis.yml +10 -34
  3. data/CHANGELOG.md +16 -0
  4. data/README.md +9 -63
  5. data/Rakefile +2 -2
  6. data/ext/libv8/builder.rb +22 -87
  7. data/ext/libv8/extconf.rb +1 -1
  8. data/ext/libv8/paths.rb +5 -18
  9. data/lib/libv8/version.rb +1 -1
  10. data/spec/location_spec.rb +1 -2
  11. data/spec/spec_helper.rb +0 -1
  12. data/vendor/depot_tools/.gitattributes +1 -2
  13. data/vendor/depot_tools/OWNERS +0 -1
  14. data/vendor/depot_tools/PRESUBMIT.py +11 -6
  15. data/vendor/depot_tools/README.md +0 -1
  16. data/vendor/depot_tools/WATCHLISTS +0 -6
  17. data/vendor/depot_tools/auth.py +129 -87
  18. data/vendor/depot_tools/autoninja +11 -1
  19. data/vendor/depot_tools/autoninja.bat +7 -1
  20. data/vendor/depot_tools/autoninja.py +14 -6
  21. data/vendor/depot_tools/bootstrap/win/manifest.txt +1 -1
  22. data/vendor/depot_tools/bootstrap/win/manifest_bleeding_edge.txt +1 -1
  23. data/vendor/depot_tools/cipd +23 -2
  24. data/vendor/depot_tools/cipd.bat +2 -2
  25. data/vendor/depot_tools/cipd_client_version +1 -1
  26. data/vendor/depot_tools/cipd_manifest.txt +17 -7
  27. data/vendor/depot_tools/cit.py +7 -6
  28. data/vendor/depot_tools/cpplint.py +195 -35
  29. data/vendor/depot_tools/detect_host_arch.py +51 -0
  30. data/vendor/depot_tools/download_from_google_storage.py +85 -26
  31. data/vendor/depot_tools/fetch.py +11 -6
  32. data/vendor/depot_tools/fetch_configs/chromium.py +0 -1
  33. data/vendor/depot_tools/fetch_configs/goma_client.py +41 -0
  34. data/vendor/depot_tools/fetch_configs/infra.py +0 -1
  35. data/vendor/depot_tools/fetch_configs/infra_internal.py +0 -1
  36. data/vendor/depot_tools/gclient-new-workdir.py +4 -0
  37. data/vendor/depot_tools/gclient.py +732 -476
  38. data/vendor/depot_tools/gclient_eval.py +569 -58
  39. data/vendor/depot_tools/gclient_scm.py +258 -46
  40. data/vendor/depot_tools/gclient_utils.py +17 -1
  41. data/vendor/depot_tools/gerrit_util.py +46 -13
  42. data/vendor/depot_tools/git_cache.py +0 -2
  43. data/vendor/depot_tools/git_cl.py +176 -335
  44. data/vendor/depot_tools/git_common.py +19 -16
  45. data/vendor/depot_tools/git_footers.py +19 -5
  46. data/vendor/depot_tools/git_hyper_blame.py +9 -3
  47. data/vendor/depot_tools/git_new_branch.py +15 -3
  48. data/vendor/depot_tools/git_upstream_diff.py +7 -2
  49. data/vendor/depot_tools/gsutil.py +1 -1
  50. data/vendor/depot_tools/infra/config/cq.cfg +1 -2
  51. data/vendor/depot_tools/infra/config/recipes.cfg +1 -1
  52. data/vendor/depot_tools/luci-auth +13 -0
  53. data/vendor/depot_tools/luci-auth.bat +8 -0
  54. data/vendor/depot_tools/man/html/depot_tools.html +0 -8
  55. data/vendor/depot_tools/man/html/git-upstream-diff.html +20 -3
  56. data/vendor/depot_tools/man/man1/git-upstream-diff.1 +27 -6
  57. data/vendor/depot_tools/man/man7/depot_tools.7 +0 -5
  58. data/vendor/depot_tools/man/man7/depot_tools_tutorial.7 +2 -2
  59. data/vendor/depot_tools/man/src/git-upstream-diff.txt +21 -3
  60. data/vendor/depot_tools/man/src/make_docs.sh +6 -0
  61. data/vendor/depot_tools/my_activity.py +283 -93
  62. data/vendor/depot_tools/owners.py +9 -4
  63. data/vendor/depot_tools/owners_finder.py +7 -3
  64. data/vendor/depot_tools/post_build_ninja_summary.py +322 -0
  65. data/vendor/depot_tools/presubmit_canned_checks.py +91 -106
  66. data/vendor/depot_tools/presubmit_support.py +219 -157
  67. data/vendor/depot_tools/prpc +13 -0
  68. data/vendor/depot_tools/prpc.bat +8 -0
  69. data/vendor/depot_tools/recipes/OWNERS +3 -1
  70. data/vendor/depot_tools/recipes/README.recipes.md +70 -111
  71. data/vendor/depot_tools/recipes/recipe_modules/bot_update/__init__.py +12 -5
  72. data/vendor/depot_tools/recipes/recipe_modules/bot_update/api.py +36 -68
  73. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json +0 -8
  74. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/{trychange_oauth2_json.json → no_apply_patch_on_gclient.json} +64 -10
  75. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/{no_shallow.json → shallow.json} +1 -1
  76. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob.json +0 -8
  77. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_empty_revision.json +0 -8
  78. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json +0 -6
  79. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch.json +0 -7
  80. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json +0 -6
  81. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle_deprecated.json +44 -0
  82. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/{trychange_oauth2_buildbot.json → tryjob_gerrit_branch_heads.json} +51 -5
  83. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8.json +0 -8
  84. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_v8_head_by_default.json +48 -8
  85. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.py +19 -26
  86. data/vendor/depot_tools/recipes/recipe_modules/bot_update/resources/bot_update.py +193 -155
  87. data/vendor/depot_tools/recipes/recipe_modules/bot_update/test_api.py +9 -0
  88. data/vendor/depot_tools/recipes/recipe_modules/gclient/api.py +2 -7
  89. data/vendor/depot_tools/recipes/recipe_modules/gclient/config.py +31 -5
  90. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/basic.json +37 -19
  91. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/buildbot.json +37 -19
  92. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/revision.json +37 -19
  93. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.expected/tryserver.json +37 -23
  94. data/vendor/depot_tools/recipes/recipe_modules/gclient/examples/full.py +4 -0
  95. data/vendor/depot_tools/recipes/recipe_modules/gerrit/api.py +40 -8
  96. data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.expected/basic.json +3 -3
  97. data/vendor/depot_tools/recipes/recipe_modules/gerrit/examples/full.py +6 -3
  98. data/vendor/depot_tools/recipes/recipe_modules/gitiles/OWNERS +0 -1
  99. data/vendor/depot_tools/recipes/recipe_modules/tryserver/__init__.py +0 -1
  100. data/vendor/depot_tools/recipes/recipe_modules/tryserver/api.py +7 -56
  101. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch.json +0 -1
  102. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.py +15 -16
  103. data/vendor/depot_tools/recipes/recipes.py +4 -2
  104. data/vendor/depot_tools/recipes/trigger_recipe_roller.txt +12 -0
  105. data/vendor/depot_tools/roll_dep.py +35 -37
  106. data/vendor/depot_tools/support/chromite_wrapper +1 -1
  107. data/vendor/depot_tools/third_party/logilab/astroid/README.chromium +3 -3
  108. data/vendor/depot_tools/third_party/logilab/astroid/__pkginfo__.py +2 -2
  109. data/vendor/depot_tools/third_party/logilab/astroid/astpeephole.py +86 -0
  110. data/vendor/depot_tools/third_party/logilab/astroid/bases.py +53 -66
  111. data/vendor/depot_tools/third_party/logilab/astroid/brain/py2pytest.py +31 -31
  112. data/vendor/depot_tools/third_party/logilab/astroid/brain/pynose.py +39 -16
  113. data/vendor/depot_tools/third_party/logilab/astroid/brain/pysix_moves.py +225 -189
  114. data/vendor/depot_tools/third_party/logilab/astroid/inference.py +45 -41
  115. data/vendor/depot_tools/third_party/logilab/astroid/manager.py +1 -0
  116. data/vendor/depot_tools/third_party/logilab/astroid/modutils.py +2 -2
  117. data/vendor/depot_tools/third_party/logilab/astroid/node_classes.py +3 -2
  118. data/vendor/depot_tools/third_party/logilab/astroid/nodes.py +1 -0
  119. data/vendor/depot_tools/third_party/logilab/astroid/protocols.py +57 -3
  120. data/vendor/depot_tools/third_party/logilab/astroid/raw_building.py +1 -1
  121. data/vendor/depot_tools/third_party/logilab/astroid/rebuilder.py +21 -1
  122. data/vendor/depot_tools/third_party/logilab/astroid/scoped_nodes.py +58 -33
  123. data/vendor/depot_tools/third_party/pylint/README.chromium +2 -2
  124. data/vendor/depot_tools/third_party/pylint/__pkginfo__.py +3 -3
  125. data/vendor/depot_tools/third_party/pylint/checkers/base.py +6 -18
  126. data/vendor/depot_tools/third_party/pylint/checkers/classes.py +64 -63
  127. data/vendor/depot_tools/third_party/pylint/checkers/design_analysis.py +25 -57
  128. data/vendor/depot_tools/third_party/pylint/checkers/format.py +14 -10
  129. data/vendor/depot_tools/third_party/pylint/checkers/python3.py +142 -37
  130. data/vendor/depot_tools/third_party/pylint/checkers/spelling.py +10 -1
  131. data/vendor/depot_tools/third_party/pylint/checkers/stdlib.py +50 -7
  132. data/vendor/depot_tools/third_party/pylint/checkers/strings.py +1 -1
  133. data/vendor/depot_tools/third_party/pylint/epylint.py +2 -1
  134. data/vendor/depot_tools/third_party/pylint/gui.py +1 -1
  135. data/vendor/depot_tools/third_party/pylint/lint.py +88 -23
  136. data/vendor/depot_tools/third_party/pylint/reporters/html.py +37 -5
  137. data/vendor/depot_tools/third_party/pylint/testutils.py +1 -1
  138. data/vendor/depot_tools/third_party/pylint/utils.py +5 -0
  139. data/vendor/depot_tools/vpython +31 -1
  140. data/vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py +35 -2
  141. data/vendor/depot_tools/win_toolchain/package_from_installed.py +0 -15
  142. data/vendor/depot_tools/yapf +17 -0
  143. data/vendor/depot_tools/{apply_issue.bat → yapf.bat} +2 -2
  144. metadata +16 -58
  145. data/ext/libv8/compiler.rb +0 -39
  146. data/ext/libv8/compiler/apple_llvm.rb +0 -22
  147. data/ext/libv8/compiler/clang.rb +0 -22
  148. data/ext/libv8/compiler/gcc.rb +0 -22
  149. data/ext/libv8/compiler/generic_compiler.rb +0 -66
  150. data/ext/libv8/make.rb +0 -13
  151. data/ext/libv8/patcher.rb +0 -21
  152. data/patches/0001-Build-a-standalone-static-library.patch +0 -26
  153. data/patches/0002-Don-t-compile-unnecessary-stuff.patch +0 -85
  154. data/patches/0003-Use-the-fPIC-flag-for-the-static-library.patch +0 -25
  155. data/patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch +0 -25
  156. data/patches/0005-Remove-TryInstallOptimizedCode.patch +0 -321
  157. data/patches/mingw-generate-makefiles.sh +0 -97
  158. data/spec/compiler/apple_llvm_spec.rb +0 -37
  159. data/spec/compiler/clang_spec.rb +0 -37
  160. data/spec/compiler/gcc_spec.rb +0 -37
  161. data/spec/compiler/generic_compiler_spec.rb +0 -50
  162. data/spec/compiler_spec.rb +0 -45
  163. data/spec/support/compiler_helpers.rb +0 -47
  164. data/vendor/depot_tools/apply_issue +0 -8
  165. data/vendor/depot_tools/apply_issue.py +0 -315
  166. data/vendor/depot_tools/man/html/git-cherry-pick-upload.html +0 -815
  167. data/vendor/depot_tools/man/man1/git-cherry-pick-upload.1 +0 -80
  168. data/vendor/depot_tools/man/src/_git-cherry-pick-upload_desc.helper.txt +0 -1
  169. data/vendor/depot_tools/man/src/git-cherry-pick-upload.demo.1.sh +0 -17
  170. data/vendor/depot_tools/man/src/git-cherry-pick-upload.txt +0 -35
  171. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2.json +0 -8
  172. data/vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json_win.json +0 -196
  173. data/vendor/depot_tools/recipes/recipe_modules/rietveld/__init__.py +0 -6
  174. data/vendor/depot_tools/recipes/recipe_modules/rietveld/api.py +0 -97
  175. data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/basic.json +0 -8
  176. data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/buildbot.json +0 -30
  177. data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/no_auth.json +0 -27
  178. data/vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.py +0 -38
  179. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_rietveld_patch.json +0 -69
  180. data/vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_rietveld_patch_new.json +0 -69
  181. data/vendor/depot_tools/third_party/cq_client/OWNERS +0 -2
  182. data/vendor/depot_tools/third_party/cq_client/README.depot_tools.md +0 -2
  183. data/vendor/depot_tools/third_party/cq_client/README.md +0 -59
  184. data/vendor/depot_tools/third_party/cq_client/__init__.py +0 -3
  185. data/vendor/depot_tools/third_party/cq_client/v1/__init__.py +0 -3
  186. data/vendor/depot_tools/third_party/cq_client/v1/cq.pb.go +0 -810
  187. data/vendor/depot_tools/third_party/cq_client/v1/cq.proto +0 -281
  188. data/vendor/depot_tools/third_party/cq_client/v1/cq_pb2.py +0 -794
  189. data/vendor/depot_tools/third_party/cq_client/v1/testdata/cq_both.cfg +0 -71
  190. data/vendor/depot_tools/third_party/cq_client/v1/testdata/cq_gerrit.cfg +0 -58
  191. data/vendor/depot_tools/third_party/cq_client/v1/testdata/cq_rietveld.cfg +0 -60
  192. data/vendor/depot_tools/third_party/cq_client/v2/__init__.py +0 -3
  193. data/vendor/depot_tools/third_party/cq_client/v2/cq.pb.go +0 -792
  194. data/vendor/depot_tools/third_party/cq_client/v2/cq.proto +0 -270
  195. data/vendor/depot_tools/third_party/cq_client/v2/cq_pb2.py +0 -841
@@ -13,8 +13,9 @@
13
13
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14
14
  """HTML reporter"""
15
15
 
16
+ import itertools
17
+ import string
16
18
  import sys
17
- from cgi import escape
18
19
 
19
20
  from logilab.common.ureports import HTMLWriter, Section, Table
20
21
 
@@ -32,11 +33,41 @@ class HTMLReporter(BaseReporter):
32
33
  def __init__(self, output=sys.stdout):
33
34
  BaseReporter.__init__(self, output)
34
35
  self.msgs = []
36
+ # Add placeholders for title and parsed messages
37
+ self.header = None
38
+ self.msgargs = []
39
+
40
+ @staticmethod
41
+ def _parse_msg_template(msg_template):
42
+ formatter = string.Formatter()
43
+ parsed = formatter.parse(msg_template)
44
+ for item in parsed:
45
+ if item[1]:
46
+ yield item[1]
47
+
48
+ def _parse_template(self):
49
+ """Helper function to parse the message template"""
50
+ self.header = []
51
+ if self.linter.config.msg_template:
52
+ msg_template = self.linter.config.msg_template
53
+ else:
54
+ msg_template = '{category}{module}{obj}{line}{column}{msg}'
55
+
56
+ _header, _msgs = itertools.tee(self._parse_msg_template(msg_template))
57
+ self.header = list(_header)
58
+ self.msgargs = list(_msgs)
35
59
 
36
60
  def handle_message(self, msg):
37
61
  """manage message of different type and in the context of path"""
38
- self.msgs += (msg.category, msg.module, msg.obj,
39
- str(msg.line), str(msg.column), escape(msg.msg))
62
+
63
+ # It would be better to do this in init, but currently we do not
64
+ # have access to the linter (as it is setup in lint.set_reporter()
65
+ # Therefore we try to parse just the once.
66
+ if self.header is None:
67
+ self._parse_template()
68
+
69
+ # We want to add the lines given by the template
70
+ self.msgs += [str(getattr(msg, field)) for field in self.msgargs]
40
71
 
41
72
  def set_output(self, output=None):
42
73
  """set output stream
@@ -55,11 +86,12 @@ class HTMLReporter(BaseReporter):
55
86
  """
56
87
  if self.msgs:
57
88
  # add stored messages to the layout
58
- msgs = ['type', 'module', 'object', 'line', 'col_offset', 'message']
89
+ msgs = self.header
90
+ cols = len(self.header)
59
91
  msgs += self.msgs
60
92
  sect = Section('Messages')
61
93
  layout.append(sect)
62
- sect.append(Table(cols=6, children=msgs, rheaders=1))
94
+ sect.append(Table(cols=cols, children=msgs, rheaders=1))
63
95
  self.msgs = []
64
96
  HTMLWriter().format(layout, self.out)
65
97
 
@@ -93,7 +93,7 @@ def get_tests_info(input_dir, msg_dir, prefix, suffix):
93
93
  class TestReporter(BaseReporter):
94
94
  """reporter storing plain text messages"""
95
95
 
96
- __implements____ = IReporter
96
+ __implements__ = IReporter
97
97
 
98
98
  def __init__(self): # pylint: disable=super-init-not-called
99
99
 
@@ -225,6 +225,11 @@ class MessagesHandlerMixIn(object):
225
225
  self._msgs_state = {}
226
226
  self.msg_status = 0
227
227
 
228
+ def _checker_messages(self, checker):
229
+ for checker in self._checkers[checker.lower()]:
230
+ for msgid in checker.msgs:
231
+ yield msgid
232
+
228
233
  def disable(self, msgid, scope='package', line=None, ignore_unknown=False):
229
234
  """don't output message of the given id"""
230
235
  assert scope in ('package', 'module')
@@ -1,9 +1,39 @@
1
1
  #!/bin/bash
2
2
 
3
- # Copyright 2017 The Chromium Authors. All rights reserved.
3
+ # Copyright 2018 The Chromium Authors. All rights reserved.
4
4
  # Use of this source code is governed by a BSD-style license that can be
5
5
  # found in the LICENSE file.
6
6
 
7
+ if [[ $VPYTHON_BYPASS == "manually managed python not supported by chrome operations" ]]
8
+ then
9
+ NEWARGS=()
10
+ while [[ $# -gt 0 ]]
11
+ do
12
+ case "$1" in
13
+ -vpython-tool*) # these tools all do something vpython related and quit
14
+ exit 0
15
+ ;;
16
+ -vpython*=*) # delete any vpython-specific flag (w/ attached argument)
17
+ shift
18
+ ;;
19
+ -vpython*) # delete any vpython-specific flag (w/ separate argument)
20
+ shift
21
+ shift
22
+ ;;
23
+ --) # stop parsing
24
+ NEWARGS+=( "$@" )
25
+ break
26
+ ;;
27
+ *) # regular arg
28
+ NEWARGS+=( "$1" )
29
+ shift
30
+ ;;
31
+ esac
32
+ done
33
+ exec "python" "${NEWARGS[@]}"
34
+ fi
35
+
36
+
7
37
  MYPATH=$(dirname "${BASH_SOURCE[0]}")
8
38
 
9
39
  source "$MYPATH/cipd_bin_setup.sh"
@@ -238,6 +238,10 @@ def CanAccessToolchainBucket():
238
238
  return code == 0
239
239
 
240
240
 
241
+ def UsesToolchainFromHttp():
242
+ return os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN_HTTP_BASE_URL') != None
243
+
244
+
241
245
  def RequestGsAuthentication():
242
246
  """Requests that the user authenticate to be able to access gs:// as a
243
247
  Googler. This allows much faster downloads, and pulling (old) toolchains
@@ -276,6 +280,30 @@ def DelayBeforeRemoving(target_dir):
276
280
  print
277
281
 
278
282
 
283
+ def DownloadUsingHttp(filename):
284
+ """Downloads the given file from a url defined in
285
+ DEPOT_TOOLS_WIN_TOOLCHAIN_HTTP_BASE_URL environment variable."""
286
+ import urlparse
287
+ import urllib2
288
+ from contextlib import closing
289
+ temp_dir = tempfile.mkdtemp()
290
+ assert os.path.basename(filename) == filename
291
+ target_path = os.path.join(temp_dir, filename)
292
+ base_url = os.environ.get('DEPOT_TOOLS_WIN_TOOLCHAIN_HTTP_BASE_URL')
293
+ if base_url == None:
294
+ sys.exit('Missing DEPOT_TOOLS_WIN_TOOLCHAIN_HTTP_BASE_URL environment '
295
+ 'variable')
296
+ src_url = urlparse.urljoin(base_url, filename)
297
+ try:
298
+ with closing(urllib2.urlopen(src_url)) as fsrc, \
299
+ open(target_path, 'wb') as fdst:
300
+ shutil.copyfileobj(fsrc, fdst)
301
+ except urllib2.URLError as e:
302
+ RmDir(temp_dir)
303
+ sys.exit('Failed to retrieve file: %s' % e)
304
+ return temp_dir, target_path
305
+
306
+
279
307
  def DownloadUsingGsutil(filename):
280
308
  """Downloads the given file from Google Storage chrome-wintoolchain bucket."""
281
309
  temp_dir = tempfile.mkdtemp()
@@ -306,6 +334,8 @@ def DoTreeMirror(target_dir, tree_sha1):
306
334
  if use_local_zip:
307
335
  temp_dir = None
308
336
  local_zip = tree_sha1 + '.zip'
337
+ elif UsesToolchainFromHttp():
338
+ temp_dir, local_zip = DownloadUsingHttp(tree_sha1 + '.zip')
309
339
  else:
310
340
  temp_dir, local_zip = DownloadUsingGsutil(tree_sha1 + '.zip')
311
341
  sys.stdout.write('Extracting %s...\n' % local_zip)
@@ -452,14 +482,17 @@ def main():
452
482
  # based on timestamps to make that case fast.
453
483
  current_hashes = CalculateToolchainHashes(target_dir, True)
454
484
  if desired_hash not in current_hashes:
485
+ should_use_http = False
455
486
  should_use_gs = False
456
- if (HaveSrcInternalAccess() or
487
+ if UsesToolchainFromHttp():
488
+ should_use_http = True
489
+ elif (HaveSrcInternalAccess() or
457
490
  LooksLikeGoogler() or
458
491
  CanAccessToolchainBucket()):
459
492
  should_use_gs = True
460
493
  if not CanAccessToolchainBucket():
461
494
  RequestGsAuthentication()
462
- if not should_use_gs:
495
+ if not should_use_gs and not should_use_http:
463
496
  print('\n\n\nPlease follow the instructions at '
464
497
  'https://www.chromium.org/developers/how-tos/'
465
498
  'build-instructions-windows\n\n')
@@ -190,21 +190,6 @@ def BuildFileList(override_dir):
190
190
  if tail.count(WIN_VERSION) == 0:
191
191
  continue
192
192
  to = os.path.join('win_sdk', tail)
193
- # The versions of dbghelp.dll that ship with the latest 10.0.14393.0 SDK
194
- # (yes, there are multiple versions) as of the VS 2017 launch cannot
195
- # handle /debug:fastlink binaries created by VS 2017. This leads to hangs
196
- # during symbol lookup, as reported here:
197
- # https://developercommunity.visualstudio.com/content/problem/36255/chromes-base-unittests-fails-with-vs-2017-due-to-s.html
198
- # The recommended fix is to copy dbghelp.dll from the VS install instead,
199
- # as done here:
200
- if VS_VERSION == '2017' and combined.endswith('dbghelp.dll'):
201
- good_dbghelp_path = os.path.join(vs_path, 'Common7', 'IDE',
202
- 'CommonExtensions', 'Microsoft', 'TestWindow',
203
- 'Extensions', 'CppUnitFramework')
204
- if combined.count('\\x64\\') > 0:
205
- combined = os.path.join(good_dbghelp_path, 'x64', 'dbghelp.dll')
206
- else:
207
- combined = os.path.join(good_dbghelp_path, 'dbghelp.dll')
208
193
  result.append((combined, to))
209
194
 
210
195
  # Copy the x86 ucrt DLLs to all directories with 32-bit binaries that are
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env vpython
2
+
3
+ # [VPYTHON:BEGIN]
4
+ # wheel: <
5
+ # name: "infra/python/wheels/yapf-py2_py3"
6
+ # version: "version:0.22.0"
7
+ # >
8
+ # [VPYTHON:END]
9
+
10
+ # -*- coding: utf-8 -*-
11
+ import re
12
+ import sys
13
+
14
+ from yapf import run_main
15
+
16
+ if __name__ == '__main__':
17
+ sys.exit(run_main())
@@ -1,5 +1,5 @@
1
1
  @echo off
2
- :: Copyright (c) 2012 The Chromium Authors. All rights reserved.
2
+ :: Copyright (c) 2015 The Chromium Authors. All rights reserved.
3
3
  :: Use of this source code is governed by a BSD-style license that can be
4
4
  :: found in the LICENSE file.
5
5
  setlocal
@@ -9,4 +9,4 @@ setlocal
9
9
  set PATH=%PATH%;%~dp0
10
10
 
11
11
  :: Defer control.
12
- python "%~dp0\apply_issue.py" %*
12
+ python "%~dp0\yapf" %*
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libv8
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.292.48.1
4
+ version: 6.7.288.46.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Lowell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-20 00:00:00.000000000 Z
11
+ date: 2018-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -72,34 +72,15 @@ files:
72
72
  - appveyor.yml.disabled
73
73
  - ext/libv8/arch.rb
74
74
  - ext/libv8/builder.rb
75
- - ext/libv8/compiler.rb
76
- - ext/libv8/compiler/apple_llvm.rb
77
- - ext/libv8/compiler/clang.rb
78
- - ext/libv8/compiler/gcc.rb
79
- - ext/libv8/compiler/generic_compiler.rb
80
75
  - ext/libv8/extconf.rb
81
76
  - ext/libv8/location.rb
82
- - ext/libv8/make.rb
83
- - ext/libv8/patcher.rb
84
77
  - ext/libv8/paths.rb
85
78
  - lib/libv8.rb
86
79
  - lib/libv8/version.rb
87
80
  - libv8.gemspec
88
- - patches/0001-Build-a-standalone-static-library.patch
89
- - patches/0002-Don-t-compile-unnecessary-stuff.patch
90
- - patches/0003-Use-the-fPIC-flag-for-the-static-library.patch
91
- - patches/0004-Do-not-embed-debug-symbols-in-macOS-libraries.patch
92
- - patches/0005-Remove-TryInstallOptimizedCode.patch
93
- - patches/mingw-generate-makefiles.sh
94
81
  - scaleway.png
95
- - spec/compiler/apple_llvm_spec.rb
96
- - spec/compiler/clang_spec.rb
97
- - spec/compiler/gcc_spec.rb
98
- - spec/compiler/generic_compiler_spec.rb
99
- - spec/compiler_spec.rb
100
82
  - spec/location_spec.rb
101
83
  - spec/spec_helper.rb
102
- - spec/support/compiler_helpers.rb
103
84
  - thefrontside.png
104
85
  - vendor/depot_tools/.gitattributes
105
86
  - vendor/depot_tools/.gitignore
@@ -114,9 +95,6 @@ files:
114
95
  - vendor/depot_tools/WATCHLISTS
115
96
  - vendor/depot_tools/annotated_gclient.py
116
97
  - vendor/depot_tools/appengine_mapper.py
117
- - vendor/depot_tools/apply_issue
118
- - vendor/depot_tools/apply_issue.bat
119
- - vendor/depot_tools/apply_issue.py
120
98
  - vendor/depot_tools/auth.py
121
99
  - vendor/depot_tools/autoninja
122
100
  - vendor/depot_tools/autoninja.bat
@@ -166,6 +144,7 @@ files:
166
144
  - vendor/depot_tools/depot-tools-auth
167
145
  - vendor/depot_tools/depot-tools-auth.bat
168
146
  - vendor/depot_tools/depot-tools-auth.py
147
+ - vendor/depot_tools/detect_host_arch.py
169
148
  - vendor/depot_tools/download_from_google_storage
170
149
  - vendor/depot_tools/download_from_google_storage.bat
171
150
  - vendor/depot_tools/download_from_google_storage.py
@@ -180,6 +159,7 @@ files:
180
159
  - vendor/depot_tools/fetch_configs/crashpad.py
181
160
  - vendor/depot_tools/fetch_configs/dart.py
182
161
  - vendor/depot_tools/fetch_configs/depot_tools.py
162
+ - vendor/depot_tools/fetch_configs/goma_client.py
183
163
  - vendor/depot_tools/fetch_configs/gyp.py
184
164
  - vendor/depot_tools/fetch_configs/infra.py
185
165
  - vendor/depot_tools/fetch_configs/infra_internal.py
@@ -278,10 +258,11 @@ files:
278
258
  - vendor/depot_tools/infra/config/recipes.cfg
279
259
  - vendor/depot_tools/led
280
260
  - vendor/depot_tools/led.bat
261
+ - vendor/depot_tools/luci-auth
262
+ - vendor/depot_tools/luci-auth.bat
281
263
  - vendor/depot_tools/mac_toolchain
282
264
  - vendor/depot_tools/man/html/depot_tools.html
283
265
  - vendor/depot_tools/man/html/depot_tools_tutorial.html
284
- - vendor/depot_tools/man/html/git-cherry-pick-upload.html
285
266
  - vendor/depot_tools/man/html/git-cl.html
286
267
  - vendor/depot_tools/man/html/git-drover.html
287
268
  - vendor/depot_tools/man/html/git-footers.html
@@ -300,7 +281,6 @@ files:
300
281
  - vendor/depot_tools/man/html/git-squash-branch.html
301
282
  - vendor/depot_tools/man/html/git-thaw.html
302
283
  - vendor/depot_tools/man/html/git-upstream-diff.html
303
- - vendor/depot_tools/man/man1/git-cherry-pick-upload.1
304
284
  - vendor/depot_tools/man/man1/git-cl.1
305
285
  - vendor/depot_tools/man/man1/git-drover.1
306
286
  - vendor/depot_tools/man/man1/git-footers.1
@@ -325,7 +305,6 @@ files:
325
305
  - vendor/depot_tools/man/src/.gitignore
326
306
  - vendor/depot_tools/man/src/_aliases.txt
327
307
  - vendor/depot_tools/man/src/_footer.txt
328
- - vendor/depot_tools/man/src/_git-cherry-pick-upload_desc.helper.txt
329
308
  - vendor/depot_tools/man/src/_git-cl_desc.helper.txt
330
309
  - vendor/depot_tools/man/src/_git-drover_desc.helper.txt
331
310
  - vendor/depot_tools/man/src/_git-footers_desc.helper.txt
@@ -352,8 +331,6 @@ files:
352
331
  - vendor/depot_tools/man/src/depot_tools_tutorial.demo.walkthrough.sh
353
332
  - vendor/depot_tools/man/src/depot_tools_tutorial.txt
354
333
  - vendor/depot_tools/man/src/filter_demo_output.py
355
- - vendor/depot_tools/man/src/git-cherry-pick-upload.demo.1.sh
356
- - vendor/depot_tools/man/src/git-cherry-pick-upload.txt
357
334
  - vendor/depot_tools/man/src/git-cl.txt
358
335
  - vendor/depot_tools/man/src/git-drover.demo.1.sh
359
336
  - vendor/depot_tools/man/src/git-drover.demo.2.sh
@@ -400,9 +377,12 @@ files:
400
377
  - vendor/depot_tools/owners.py
401
378
  - vendor/depot_tools/owners_finder.py
402
379
  - vendor/depot_tools/patch.py
380
+ - vendor/depot_tools/post_build_ninja_summary.py
403
381
  - vendor/depot_tools/presubmit_canned_checks.py
404
382
  - vendor/depot_tools/presubmit_support.py
405
383
  - vendor/depot_tools/profile.xml
384
+ - vendor/depot_tools/prpc
385
+ - vendor/depot_tools/prpc.bat
406
386
  - vendor/depot_tools/pylint
407
387
  - vendor/depot_tools/pylint.py
408
388
  - vendor/depot_tools/pylintrc
@@ -422,13 +402,10 @@ files:
422
402
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/deprecated_got_revision_mapping.json
423
403
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_rebase_patch_ref.json
424
404
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/gerrit_no_reset.json
425
- - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_shallow.json
405
+ - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/no_apply_patch_on_gclient.json
426
406
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/reset_root_solution_revision.json
407
+ - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/shallow.json
427
408
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange.json
428
- - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2.json
429
- - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_buildbot.json
430
- - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json.json
431
- - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/trychange_oauth2_json_win.json
432
409
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob.json
433
410
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_empty_revision.json
434
411
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail.json
@@ -436,6 +413,7 @@ files:
436
413
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_fail_patch_download.json
437
414
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle.json
438
415
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_angle_deprecated.json
416
+ - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_branch_heads.json
439
417
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_feature_branch.json
440
418
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8.json
441
419
  - vendor/depot_tools/recipes/recipe_modules/bot_update/examples/full.expected/tryjob_gerrit_v8_feature_branch.json
@@ -556,12 +534,6 @@ files:
556
534
  - vendor/depot_tools/recipes/recipe_modules/presubmit/api.py
557
535
  - vendor/depot_tools/recipes/recipe_modules/presubmit/examples/full.expected/basic.json
558
536
  - vendor/depot_tools/recipes/recipe_modules/presubmit/examples/full.py
559
- - vendor/depot_tools/recipes/recipe_modules/rietveld/__init__.py
560
- - vendor/depot_tools/recipes/recipe_modules/rietveld/api.py
561
- - vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/basic.json
562
- - vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/buildbot.json
563
- - vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.expected/no_auth.json
564
- - vendor/depot_tools/recipes/recipe_modules/rietveld/examples/full.py
565
537
  - vendor/depot_tools/recipes/recipe_modules/tryserver/__init__.py
566
538
  - vendor/depot_tools/recipes/recipe_modules/tryserver/api.py
567
539
  - vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/basic_tags.json
@@ -569,8 +541,6 @@ files:
569
541
  - vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_gerrit_patch.json
570
542
  - vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_git_patch.json
571
543
  - vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_git_patch_luci.json
572
- - vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_rietveld_patch.json
573
- - vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_rietveld_patch_new.json
574
544
  - vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch.json
575
545
  - vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.expected/with_wrong_patch_new.json
576
546
  - vendor/depot_tools/recipes/recipe_modules/tryserver/examples/full.py
@@ -751,21 +721,6 @@ files:
751
721
  - vendor/depot_tools/third_party/coverage/templite.py
752
722
  - vendor/depot_tools/third_party/coverage/version.py
753
723
  - vendor/depot_tools/third_party/coverage/xmlreport.py
754
- - vendor/depot_tools/third_party/cq_client/OWNERS
755
- - vendor/depot_tools/third_party/cq_client/README.depot_tools.md
756
- - vendor/depot_tools/third_party/cq_client/README.md
757
- - vendor/depot_tools/third_party/cq_client/__init__.py
758
- - vendor/depot_tools/third_party/cq_client/v1/__init__.py
759
- - vendor/depot_tools/third_party/cq_client/v1/cq.pb.go
760
- - vendor/depot_tools/third_party/cq_client/v1/cq.proto
761
- - vendor/depot_tools/third_party/cq_client/v1/cq_pb2.py
762
- - vendor/depot_tools/third_party/cq_client/v1/testdata/cq_both.cfg
763
- - vendor/depot_tools/third_party/cq_client/v1/testdata/cq_gerrit.cfg
764
- - vendor/depot_tools/third_party/cq_client/v1/testdata/cq_rietveld.cfg
765
- - vendor/depot_tools/third_party/cq_client/v2/__init__.py
766
- - vendor/depot_tools/third_party/cq_client/v2/cq.pb.go
767
- - vendor/depot_tools/third_party/cq_client/v2/cq.proto
768
- - vendor/depot_tools/third_party/cq_client/v2/cq_pb2.py
769
724
  - vendor/depot_tools/third_party/fancy_urllib/README
770
725
  - vendor/depot_tools/third_party/fancy_urllib/__init__.py
771
726
  - vendor/depot_tools/third_party/httplib2/LICENSE
@@ -781,6 +736,7 @@ files:
781
736
  - vendor/depot_tools/third_party/logilab/astroid/__init__.py
782
737
  - vendor/depot_tools/third_party/logilab/astroid/__pkginfo__.py
783
738
  - vendor/depot_tools/third_party/logilab/astroid/as_string.py
739
+ - vendor/depot_tools/third_party/logilab/astroid/astpeephole.py
784
740
  - vendor/depot_tools/third_party/logilab/astroid/bases.py
785
741
  - vendor/depot_tools/third_party/logilab/astroid/brain/builtin_inference.py
786
742
  - vendor/depot_tools/third_party/logilab/astroid/brain/py2gi.py
@@ -1001,6 +957,8 @@ files:
1001
957
  - vendor/depot_tools/win_toolchain/get_toolchain_if_necessary.py
1002
958
  - vendor/depot_tools/win_toolchain/package_from_installed.py
1003
959
  - vendor/depot_tools/wtf
960
+ - vendor/depot_tools/yapf
961
+ - vendor/depot_tools/yapf.bat
1004
962
  - vendor/depot_tools/zsh-goodies/README
1005
963
  - vendor/depot_tools/zsh-goodies/_gclient
1006
964
  homepage: http://github.com/cowboyd/libv8
@@ -1024,7 +982,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1024
982
  version: '0'
1025
983
  requirements: []
1026
984
  rubyforge_project: libv8
1027
- rubygems_version: 2.6.13
985
+ rubygems_version: 2.7.7
1028
986
  signing_key:
1029
987
  specification_version: 4
1030
988
  summary: Distribution of the V8 JavaScript engine