Skip to content

Commit b2f8393

Browse files
author
bors-servo
authored
Auto merge of #186 - jdm:smup67, r=asajeffrey
Upgrade to SpiderMonkey 67 <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/mozjs/186) <!-- Reviewable:end -->
2 parents 4e2062a + 220ffbe commit b2f8393

File tree

13,898 files changed

+184643
-187527
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

13,898 files changed

+184643
-187527
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "mozjs_sys"
33
description = "System crate for the Mozilla SpiderMonkey JavaScript engine."
44
repository = "https://github.com/servo/mozjs/"
5-
version = "0.66.1"
5+
version = "0.67.0"
66
authors = ["Mozilla"]
77
links = "mozjs"
88
build = "build.rs"

etc/COMMIT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9c35dcbaa8999f989f14f1e98a4a40a43f234131
1+
455c1065dcbe14b73771df2db56aae43a44dfcf8

etc/patches/broken-sdk.patch

Lines changed: 0 additions & 15 deletions
This file was deleted.

etc/patches/configure-override-android-ndk-paths.patch

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,6 @@ index 66cf3e16ad..8f0b0582b3 100644
8282
+ if value:
8383
+ return value[0]
8484
+
85-
llvm_path = '%s/toolchains/llvm/prebuilt/%s-%s/bin' % (ndk,
86-
host.kernel.lower(),
87-
host.cpu)
85+
llvm_format = '%s/toolchains/llvm/prebuilt/%s-%s/bin'
86+
llvm_path = llvm_format % (ndk, host.kernel.lower(), host.cpu)
87+
if not isdir(llvm_path) and host.cpu == 'x86_64':
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/mozjs/build/moz.configure/bindgen.configure b/mozjs/build/moz.configure/bindgen.configure
2+
index 1658c8f93e..f7082ea6d4 100644
3+
--- a/mozjs/build/moz.configure/bindgen.configure
4+
+++ b/mozjs/build/moz.configure/bindgen.configure
5+
@@ -246,6 +246,9 @@ set_config('MOZ_CLANG_PATH', bindgen_config_paths.clang_path)
6+
@depends(target, target_is_unix, cxx_compiler, bindgen_cflags_android,
7+
bindgen_config_paths.clang_path)
8+
def basic_bindgen_cflags(target, is_unix, compiler_info, android_cflags, clang_path):
9+
+ if not clang_path:
10+
+ return []
11+
+
12+
args = [
13+
'-x', 'c++', '-fno-sized-deallocation',
14+
'-DTRACING=1', '-DIMPL_LIBXUL', '-DMOZILLA_INTERNAL_API',

etc/update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def remove_cargo_tomls():
4242
os.path.join("mozjs", "testing"),
4343
]
4444
exclude = [
45-
os.path.join("mozjs", "js", "src", "frontend", "binsource"),
45+
os.path.join("mozjs", "js", "src", "frontend", "binast"),
4646
]
4747
for dir in problem_dirs:
4848
for root, dirs, files in os.walk(dir):

mozjs/.cargo/config.in

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ git = "https://github.com/froydnj/winapi-rs"
1717
branch = "aarch64"
1818
replace-with = "vendored-sources"
1919

20+
[source."https://github.com/alexcrichton/cc-rs"]
21+
git = "https://github.com/glandium/cc-rs"
22+
branch = "1.0.23-clang-cl-aarch64"
23+
replace-with = "vendored-sources"
24+
2025
[source.vendored-sources]
2126
directory = '@top_srcdir@/third_party/rust'
2227

mozjs/Makefile.in

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,19 @@ binaries::
163163
@$(MAKE) install-manifests install_manifests=dist/include
164164
endif
165165

166+
# Host binaries are not produced for macOS consumers: that is, there's
167+
# no macOS-hosted job to produce them at this time. Therefore we
168+
# enable --host-bins only for automation builds, which only require Linux and
169+
# Windows host binaries.
166170
recurse_artifact:
167-
$(topsrcdir)/mach --log-no-times artifact install
171+
$(topsrcdir)/mach --log-no-times artifact install$(if $(MOZ_ARTIFACT_BUILD_SYMBOLS), --symbols$(addprefix =,$(filter full,$(MOZ_ARTIFACT_BUILD_SYMBOLS))))$(if $(MOZ_AUTOMATION), --host-bins)
172+
173+
ifdef MOZ_EME_WIN32_ARTIFACT
174+
recurse_win32-artifact:
175+
rm -rf $(DIST)/i686
176+
$(topsrcdir)/mach --log-no-times artifact install --job $(if $(MOZ_PGO),win32-pgo,win32-opt) --no-tests --distdir $(DIST)/i686
177+
mv $(DIST)/i686/bin/* $(DIST)/i686
178+
endif
168179

169180
ifdef MOZ_WIDGET_TOOLKIT
170181
ifdef ENABLE_TESTS
@@ -180,7 +191,7 @@ default all::
180191
profiledbuild::
181192
$(call BUILDSTATUS,TIERS pgo_profile_generate pgo_package pgo_profile pgo_clobber pgo_profile_use)
182193
$(call BUILDSTATUS,TIER_START pgo_profile_generate)
183-
$(MAKE) default MOZ_PROFILE_GENERATE=1
194+
$(MAKE) default MOZ_PROFILE_GENERATE=1 MOZ_LTO=
184195
$(call BUILDSTATUS,TIER_FINISH pgo_profile_generate)
185196
$(call BUILDSTATUS,TIER_START pgo_package)
186197
$(MAKE) package MOZ_INTERNAL_SIGNING_FORMAT= MOZ_EXTERNAL_SIGNING_FORMAT=
@@ -272,22 +283,15 @@ update-packaging:
272283
package-generated-sources:
273284
$(call py_action,package_generated_sources,'$(DIST)/$(PKG_PATH)$(GENERATED_SOURCE_FILE_PACKAGE)')
274285

275-
#XXX: this is a hack, since we don't want to clobber for MSVC
276286
# PGO support, but we can't do this test in client.mk
277287
# No point in clobbering if PGO has been explicitly disabled.
278288
ifdef NO_PROFILE_GUIDED_OPTIMIZE
279289
maybe_clobber_profiledbuild:
280290
else
281-
ifneq ($(CC_TYPE),msvc)
282291
maybe_clobber_profiledbuild: clean
283292
ifneq (,$(findstring clang,$(CC_TYPE)))
284293
$(LLVM_PROFDATA) merge -o $(DEPTH)/merged.profdata $(DEPTH)/*.profraw
285294
endif
286-
else
287-
maybe_clobber_profiledbuild:
288-
$(RM) $(DIST)/bin/*.pgc
289-
find $(DIST)/$(MOZ_APP_NAME) -name '*.pgc' -exec mv {} $(DIST)/bin \;
290-
endif # msvc
291295
endif # NO_PROFILE_GUIDED_OPTIMIZE
292296

293297
.PHONY: maybe_clobber_profiledbuild

mozjs/README

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
This directory contains SpiderMonkey 66.
1+
This directory contains SpiderMonkey 67.
22

3-
This release is based on a revision of Mozilla 66:
3+
This release is based on a revision of Mozilla 67:
44
https://hg.mozilla.org/releases/
55
The changes in the patches/ directory were applied.
66

7-
MDN hosts the latest SpiderMonkey 66 release notes:
8-
https://developer.mozilla.org/en-US/docs/SpiderMonkey/66
7+
MDN hosts the latest SpiderMonkey 67 release notes:
8+
https://developer.mozilla.org/en-US/docs/SpiderMonkey/67

mozjs/build/autoconf/alloc.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,11 @@ AC_EGREP_HEADER(valloc, unistd.h,
4747
AC_MSG_RESULT([yes]),
4848
AC_MSG_RESULT([no]))
4949
50+
AC_MSG_CHECKING([for _aligned_malloc in malloc.h])
51+
AC_EGREP_HEADER(_aligned_malloc, malloc.h,
52+
AC_DEFINE(HAVE_ALIGNED_MALLOC)
53+
AC_MSG_RESULT([yes]),
54+
AC_MSG_RESULT([no]))
55+
5056
5157
])

0 commit comments

Comments
 (0)