Skip to content

Commit e21c05b

Browse files
author
bors-servo
authored
Auto merge of #172 - servo:smup66, r=asajeffrey
Update to SpiderMonkey 66 <!-- 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/172) <!-- Reviewable:end -->
2 parents 499b892 + f302fe3 commit e21c05b

File tree

39,447 files changed

+2021886
-930808
lines changed

Some content is hidden

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

39,447 files changed

+2021886
-930808
lines changed

.cargo/config

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[target.x86_64-pc-windows-msvc]
2+
linker = "lld-link.exe"
3+
4+
[target.i686-pc-windows-msvc]
5+
linker = "lld-link.exe"

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ addons:
2020
- gcc-6
2121
- g++-6
2222
- clang-5.0
23+
homebrew:
24+
packages:
25+
- python
26+
- python@2
2327

2428
env:
2529
- FEATURES=""
@@ -31,7 +35,7 @@ before_script:
3135

3236
script:
3337
- ccache -z
34-
- CCACHE=$(which ccache) travis_wait cargo build --verbose $FEATURES
38+
- CCACHE=$(which ccache) travis_wait 30 cargo build --verbose $FEATURES
3539
- CCACHE=$(which ccache) RUST_BACKTRACE=1 cargo test --lib --verbose $FEATURES
3640
- ccache -s
3741

Cargo.toml

Lines changed: 4 additions & 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.61.13"
5+
version = "0.66.0"
66
authors = ["Mozilla"]
77
links = "mozjs"
88
build = "build.rs"
@@ -21,6 +21,9 @@ profilemozjs = []
2121

2222
[lib]
2323
name = "mozjs_sys"
24+
# The generated jsapi.rs contains #[doc] strings which look like
25+
# doctests but are definitely not.
26+
doctest = false
2427

2528
[dependencies]
2629
libc = "0.2"

appveyor.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ matrix:
55
fast_finish: true
66

77
environment:
8+
LINKER: "lld-link.exe"
9+
PYTHON3: "C:\\Python37-x64\\python.exe"
810
# The appveyor image we use has a pretty huge set of things installed... we make the
911
# initial PATH something sane so we know what to expect
1012
PATH: "C:\\windows\\system32;\

build.rs

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,6 @@ fn main() {
1919
panic!("Rustc doesn't support MSVC debug runtime.");
2020
}
2121

22-
if target.contains("windows") && host != target {
23-
assert_eq!(host, "x86_64-pc-windows-msvc",
24-
"Only cross-compiling from x64 is supported");
25-
assert_eq!(target, "i686-pc-windows-msvc",
26-
"Only cross-compiling to x86 is supported");
27-
assert!(env::var("VSINSTALLDIR").is_err());
28-
// When cross-compiling on Windows, we need to ensure that the PATH is
29-
// set up appropriately for the target before invoking make.
30-
if env::var("VCVARSALL_PATH").is_err() {
31-
panic!("Need to provide VCVARSALL_PATH value with path to \
32-
vcvarsall.bat from Visual Studio installation");
33-
}
34-
35-
let vcvars = Command::new("vcvars.bat").output().unwrap();
36-
assert!(vcvars.status.success());
37-
let output = str::from_utf8(&vcvars.stdout).unwrap();
38-
for line in output.lines() {
39-
let mut parts = line.splitn(2, '=');
40-
if let Some(name) = parts.next() {
41-
if let Some(value) = parts.next() {
42-
env::set_var(name, value);
43-
}
44-
}
45-
}
46-
}
47-
4822
build_jsapi();
4923
build_jsglue();
5024
build_jsapi_bindings();
@@ -91,6 +65,7 @@ fn cc_flags() -> Vec<&'static str> {
9165
"-fno-sized-deallocation",
9266
"-Wno-unused-parameter",
9367
"-Wno-invalid-offsetof",
68+
"-Wno-unused-private-field",
9469
]);
9570
}
9671

@@ -142,8 +117,6 @@ fn build_jsapi() {
142117
assert!(result.success());
143118
println!("cargo:rustc-link-search=native={}/js/src/build", out_dir);
144119
println!("cargo:rustc-link-lib=static=js_static"); // Must come before c++
145-
println!("cargo:rustc-link-search=native={}/mozglue/build", out_dir);
146-
println!("cargo:rustc-link-lib=static=mozglue");
147120
if target.contains("windows") {
148121
println!("cargo:rustc-link-search=native={}/dist/bin", out_dir);
149122
println!("cargo:rustc-link-lib=winmm");
@@ -161,6 +134,7 @@ fn build_jsapi() {
161134
println!("cargo:rustc-link-lib=stdc++");
162135
}
163136
println!("cargo:outdir={}", out_dir);
137+
println!("cargo:rerun-if-changed=makefile.cargo");
164138
}
165139

166140

@@ -312,7 +286,6 @@ const WHITELIST_VARS: &'static [&'static str] = &[
312286
"JSCLASS_.*",
313287
"JSFUN_.*",
314288
"JSITER_.*",
315-
"JSID_VOID",
316289
"JSPROP_.*",
317290
"JS_.*",
318291
];
@@ -340,13 +313,13 @@ const OPAQUE_TYPES: &'static [&'static str] = &[
340313
"JS::ReadOnlyCompileOptions",
341314
"JS::Rooted<JS::Auto.*Vector.*>",
342315
"JS::detail::CallArgsBase.*",
343-
"js::HashMap.*",
344316
"js::detail::UniqueSelector.*",
345-
"js::detail::HashTable.*",
346317
"mozilla::BufferList",
347318
"mozilla::Maybe.*",
348319
"mozilla::UniquePtr.*",
349320
"mozilla::Variant",
321+
"mozilla::Hash.*",
322+
"mozilla::detail::Hash.*",
350323
"RefPtr_Proxy.*",
351324
];
352325

@@ -372,5 +345,4 @@ const MODULE_RAW_LINES: &'static [(&'static str, &'static str)] = &[
372345
("root", "pub type JSJitInfo = ::jsjit::JSJitInfo;"),
373346
("root::JS", "pub type Heap<T> = ::jsgc::Heap<T>;"),
374347
("root::JS", "pub type Rooted<T> = ::jsgc::Rooted<T>;"),
375-
("root::JS", "pub type AutoGCRooterTag = AutoGCRooter__bindgen_ty_1;"),
376348
];

etc/COMMIT

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

0 commit comments

Comments
 (0)