Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

Commit

Permalink
Merge mozilla-inbound to mozilla-central. a=merge
Browse files Browse the repository at this point in the history
  • Loading branch information
dgluca committed Jul 2, 2019
2 parents f37e488 + cba4962 commit 498db16
Show file tree
Hide file tree
Showing 126 changed files with 4,235 additions and 2,289 deletions.
2 changes: 1 addition & 1 deletion .cargo/config.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ replace-with = "vendored-sources"

[source."https://github.com/CraneStation/Cranelift"]
git = "https://github.com/CraneStation/Cranelift"
rev = "475aa632fea5360c6f8c4cc1f26e3ee0369385ef"
rev = "e455f6ae0f3577ceb210c0ce167181c33c133a69"
replace-with = "vendored-sources"

[source.vendored-sources]
Expand Down
52 changes: 26 additions & 26 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ packed_simd = { git = "https://github.com/hsivonen/packed_simd", branch = "rust_

[patch.crates-io.cranelift-codegen]
git = "https://github.com/CraneStation/Cranelift"
rev = "475aa632fea5360c6f8c4cc1f26e3ee0369385ef"
rev = "e455f6ae0f3577ceb210c0ce167181c33c133a69"

[patch.crates-io.cranelift-wasm]
git = "https://github.com/CraneStation/Cranelift"
rev = "475aa632fea5360c6f8c4cc1f26e3ee0369385ef"
rev = "e455f6ae0f3577ceb210c0ce167181c33c133a69"
1 change: 1 addition & 0 deletions js/src/wasm/cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "baldrdash"
version = "0.1.0"
authors = ["The Spidermonkey and Cranelift developers"]
edition = "2018"

[lib]
crate-type = ["rlib"]
Expand Down
2 changes: 1 addition & 1 deletion js/src/wasm/cranelift/baldrapi.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
//
// This file is input to Rust's bindgen, so as to create primitive APIs for the
// Cranelift pipeline to access compilation metadata. The actual Rust API then
// wraps these primitive APIs. See src/baldrdash.rs.
// wraps these primitive APIs. See src/bindings/mod.rs.
//
// This file can be included in SpiderMonkey's C++ code, where all the prefixes
// must be obeyed. The purpose of the prefixes is to avoid type confusion. See
Expand Down
2 changes: 1 addition & 1 deletion js/src/wasm/cranelift/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
//! Build script for the Baldr <-> Cranelift bindings.
//!
//! This file is executed by cargo when this crate is built. It generates the
//! `$OUT_DIR/bindings.rs` file which is then included by `src/baldrapi.rs`.
//! `$OUT_DIR/bindings.rs` file which is then included by `src/bindings/low_level.rs`.
extern crate bindgen;

Expand Down
107 changes: 0 additions & 107 deletions js/src/wasm/cranelift/src/baldrapi.rs

This file was deleted.

28 changes: 28 additions & 0 deletions js/src/wasm/cranelift/src/bindings/low_level.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/* Copyright 2018 Mozilla Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

//! This module exports the bindings generated by bindgen form the baldrapi.h file.
//!
//! The Baldr API consists of a set of C functions and some associated types.
#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]

// We need to allow dead code because the Rustc compiler complains about variants never being
// constructed in TypeCode, which is true because these values come from C++.
#![allow(dead_code)]

include!(concat!(env!("OUT_DIR"), "/bindings.rs"));
Loading

0 comments on commit 498db16

Please sign in to comment.