Added attributions in all attributed files

This commit is contained in:
Syrus
2020-06-15 19:30:05 -07:00
parent b00f899913
commit f2f795cd1f
32 changed files with 97 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
use crate::translator::{
type_to_irtype, FuncEnvironment as BaseFuncEnvironment, GlobalVariable, TargetEnvironment,
};

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! A trampoline generator for calling dynamic host functions from Wasm.
use super::binemit::TrampolineRelocSink;

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! A trampoline generator for calling Wasm functions easily.
//!
//! That way, you can start calling Wasm functions doing things like:

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! This module contains the bulk of the interesting code performing the translation between
//! WebAssembly bytecode and Cranelift IR.
//!

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! All the runtime support necessary for the wasm to cranelift translation is formalized by the
//! traits `FunctionEnvironment`.

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! WebAssembly module and function translation state.
//!
//! The `ModuleTranslationState` struct defined in this module is used to keep track of data about

View File

@@ -1,4 +1,7 @@
//! Stand-alone WebAssembly to Cranelift IR translator.
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Standalone WebAssembly to Cranelift IR translator.
//!
//! This module defines the `FuncTranslator` type which can translate a single WebAssembly
//! function to Cranelift IR guided by a `FuncEnvironment` which provides information about the

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! A `Compilation` contains the compiled function bodies for a WebAssembly
//! module (`CompiledFunction`).
//!

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Source locations.
//!
//! A [`SourceLoc`] determines the position of a certain instruction

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
use super::module::translate_module;
use super::state::ModuleTranslationState;
use crate::lib::std::borrow::ToOwned;

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Translation skeleton that traverses the whole WebAssembly module and call helper functions
//! to deal with each part of it.
use super::environ::ModuleEnvironment;

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Helper functions to gather information for each of the non-function sections of a
//! WebAssembly module.
//!

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
use crate::{wasm_unsupported, WasmResult};
use std::boxed::Box;
use wasm_common::entity::PrimaryMap;

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Memory management for executable code.
use crate::unwind::UnwindRegistry;
use region;

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Module for System V ABI unwind registry.
use wasmer_compiler::CompiledFunctionUnwindInfo;

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Module for Windows x64 ABI unwind registry.
use std::collections::HashMap;
use wasmer_compiler::CompiledFunctionUnwindInfo;

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
use crate::memory::{LinearMemory, MemoryPlan};
use crate::table::{Table, TablePlan};
use crate::vmcontext::{

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
use crate::vmcontext::{VMFunctionImport, VMGlobalImport, VMMemoryImport, VMTableImport};
use wasm_common::entity::{BoxedSlice, PrimaryMap};
use wasm_common::{FunctionIndex, GlobalIndex, MemoryIndex, TableIndex};

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! An `Instance` contains all the runtime state used by execution of a
//! wasm module (except its callstack and register state). An
//! `InstanceHandle` is a reference-counting handle for an `Instance`.

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Runtime library calls.
//!
//! Note that Wasm compilers may sometimes perform these inline rather than

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Memory management for linear memories.
//!
//! `LinearMemory` is to WebAssembly linear memories what `Table` is to WebAssembly tables.

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Low-level abstraction for allocating and managing zero-filled pages
//! of memory.

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Data structure for representing WebAssembly modules
//! in a [`Module`].

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! This section defines the `PROBESTACK` intrinsic which is used in the
//! implementation of "stack probes" on certain platforms.
//!

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Implement a registry of function signatures, for fast indirect call
//! signature checking.

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Memory management for tables.
//!
//! `Table` is to WebAssembly tables what `LinearMemory` is to WebAssembly linear memories.

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
#include <setjmp.h>
int RegisterSetjmp(

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! This is the module that facilitates the usage of Traps
//! in Wasmer Runtime
mod trapcode;

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Trap codes describing the reason for a trap.
use core::fmt::{self, Display, Formatter};

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! WebAssembly trap handling, which is built on top of the lower-level
//! signalhandling mechanisms.

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! This file declares `VMContext` and several related structs which contain
//! fields that compiled wasm code accesses directly.

View File

@@ -1,3 +1,6 @@
// This file contains partial code from other sources.
// Attributions: https://github.com/wasmerio/wasmer-reborn/blob/master/ATTRIBUTIONS.md
//! Offsets and sizes of various structs in wasmer-runtime's vmcontext
//! module.