mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 21:58:20 +00:00
Added attributions in all attributed files
This commit is contained in:
@@ -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::{
|
use crate::translator::{
|
||||||
type_to_irtype, FuncEnvironment as BaseFuncEnvironment, GlobalVariable, TargetEnvironment,
|
type_to_irtype, FuncEnvironment as BaseFuncEnvironment, GlobalVariable, TargetEnvironment,
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -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.
|
//! A trampoline generator for calling dynamic host functions from Wasm.
|
||||||
|
|
||||||
use super::binemit::TrampolineRelocSink;
|
use super::binemit::TrampolineRelocSink;
|
||||||
|
|||||||
@@ -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.
|
//! A trampoline generator for calling Wasm functions easily.
|
||||||
//!
|
//!
|
||||||
//! That way, you can start calling Wasm functions doing things like:
|
//! That way, you can start calling Wasm functions doing things like:
|
||||||
|
|||||||
@@ -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
|
//! This module contains the bulk of the interesting code performing the translation between
|
||||||
//! WebAssembly bytecode and Cranelift IR.
|
//! WebAssembly bytecode and Cranelift IR.
|
||||||
//!
|
//!
|
||||||
|
|||||||
@@ -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
|
//! All the runtime support necessary for the wasm to cranelift translation is formalized by the
|
||||||
//! traits `FunctionEnvironment`.
|
//! traits `FunctionEnvironment`.
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
//! WebAssembly module and function translation state.
|
||||||
//!
|
//!
|
||||||
//! The `ModuleTranslationState` struct defined in this module is used to keep track of data about
|
//! The `ModuleTranslationState` struct defined in this module is used to keep track of data about
|
||||||
|
|||||||
@@ -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
|
//! 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
|
//! function to Cranelift IR guided by a `FuncEnvironment` which provides information about the
|
||||||
|
|||||||
@@ -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
|
//! A `Compilation` contains the compiled function bodies for a WebAssembly
|
||||||
//! module (`CompiledFunction`).
|
//! module (`CompiledFunction`).
|
||||||
//!
|
//!
|
||||||
|
|||||||
@@ -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.
|
//! Source locations.
|
||||||
//!
|
//!
|
||||||
//! A [`SourceLoc`] determines the position of a certain instruction
|
//! A [`SourceLoc`] determines the position of a certain instruction
|
||||||
|
|||||||
@@ -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::module::translate_module;
|
||||||
use super::state::ModuleTranslationState;
|
use super::state::ModuleTranslationState;
|
||||||
use crate::lib::std::borrow::ToOwned;
|
use crate::lib::std::borrow::ToOwned;
|
||||||
|
|||||||
@@ -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
|
//! Translation skeleton that traverses the whole WebAssembly module and call helper functions
|
||||||
//! to deal with each part of it.
|
//! to deal with each part of it.
|
||||||
use super::environ::ModuleEnvironment;
|
use super::environ::ModuleEnvironment;
|
||||||
|
|||||||
@@ -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
|
//! Helper functions to gather information for each of the non-function sections of a
|
||||||
//! WebAssembly module.
|
//! WebAssembly module.
|
||||||
//!
|
//!
|
||||||
|
|||||||
@@ -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 crate::{wasm_unsupported, WasmResult};
|
||||||
use std::boxed::Box;
|
use std::boxed::Box;
|
||||||
use wasm_common::entity::PrimaryMap;
|
use wasm_common::entity::PrimaryMap;
|
||||||
|
|||||||
@@ -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.
|
//! Memory management for executable code.
|
||||||
use crate::unwind::UnwindRegistry;
|
use crate::unwind::UnwindRegistry;
|
||||||
use region;
|
use region;
|
||||||
|
|||||||
@@ -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.
|
//! Module for System V ABI unwind registry.
|
||||||
use wasmer_compiler::CompiledFunctionUnwindInfo;
|
use wasmer_compiler::CompiledFunctionUnwindInfo;
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
//! Module for Windows x64 ABI unwind registry.
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use wasmer_compiler::CompiledFunctionUnwindInfo;
|
use wasmer_compiler::CompiledFunctionUnwindInfo;
|
||||||
|
|||||||
@@ -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::memory::{LinearMemory, MemoryPlan};
|
||||||
use crate::table::{Table, TablePlan};
|
use crate::table::{Table, TablePlan};
|
||||||
use crate::vmcontext::{
|
use crate::vmcontext::{
|
||||||
|
|||||||
@@ -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 crate::vmcontext::{VMFunctionImport, VMGlobalImport, VMMemoryImport, VMTableImport};
|
||||||
use wasm_common::entity::{BoxedSlice, PrimaryMap};
|
use wasm_common::entity::{BoxedSlice, PrimaryMap};
|
||||||
use wasm_common::{FunctionIndex, GlobalIndex, MemoryIndex, TableIndex};
|
use wasm_common::{FunctionIndex, GlobalIndex, MemoryIndex, TableIndex};
|
||||||
|
|||||||
@@ -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
|
//! An `Instance` contains all the runtime state used by execution of a
|
||||||
//! wasm module (except its callstack and register state). An
|
//! wasm module (except its callstack and register state). An
|
||||||
//! `InstanceHandle` is a reference-counting handle for an `Instance`.
|
//! `InstanceHandle` is a reference-counting handle for an `Instance`.
|
||||||
|
|||||||
@@ -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.
|
//! Runtime library calls.
|
||||||
//!
|
//!
|
||||||
//! Note that Wasm compilers may sometimes perform these inline rather than
|
//! Note that Wasm compilers may sometimes perform these inline rather than
|
||||||
|
|||||||
@@ -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.
|
//! Memory management for linear memories.
|
||||||
//!
|
//!
|
||||||
//! `LinearMemory` is to WebAssembly linear memories what `Table` is to WebAssembly tables.
|
//! `LinearMemory` is to WebAssembly linear memories what `Table` is to WebAssembly tables.
|
||||||
|
|||||||
@@ -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
|
//! Low-level abstraction for allocating and managing zero-filled pages
|
||||||
//! of memory.
|
//! of memory.
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
//! Data structure for representing WebAssembly modules
|
||||||
//! in a [`Module`].
|
//! in a [`Module`].
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
//! This section defines the `PROBESTACK` intrinsic which is used in the
|
||||||
//! implementation of "stack probes" on certain platforms.
|
//! implementation of "stack probes" on certain platforms.
|
||||||
//!
|
//!
|
||||||
|
|||||||
@@ -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
|
//! Implement a registry of function signatures, for fast indirect call
|
||||||
//! signature checking.
|
//! signature checking.
|
||||||
|
|
||||||
|
|||||||
@@ -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.
|
//! Memory management for tables.
|
||||||
//!
|
//!
|
||||||
//! `Table` is to WebAssembly tables what `LinearMemory` is to WebAssembly linear memories.
|
//! `Table` is to WebAssembly tables what `LinearMemory` is to WebAssembly linear memories.
|
||||||
|
|||||||
@@ -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>
|
#include <setjmp.h>
|
||||||
|
|
||||||
int RegisterSetjmp(
|
int RegisterSetjmp(
|
||||||
|
|||||||
@@ -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
|
//! This is the module that facilitates the usage of Traps
|
||||||
//! in Wasmer Runtime
|
//! in Wasmer Runtime
|
||||||
mod trapcode;
|
mod trapcode;
|
||||||
|
|||||||
@@ -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.
|
//! Trap codes describing the reason for a trap.
|
||||||
|
|
||||||
use core::fmt::{self, Display, Formatter};
|
use core::fmt::{self, Display, Formatter};
|
||||||
|
|||||||
@@ -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
|
//! WebAssembly trap handling, which is built on top of the lower-level
|
||||||
//! signalhandling mechanisms.
|
//! signalhandling mechanisms.
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
//! This file declares `VMContext` and several related structs which contain
|
||||||
//! fields that compiled wasm code accesses directly.
|
//! fields that compiled wasm code accesses directly.
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
//! Offsets and sizes of various structs in wasmer-runtime's vmcontext
|
||||||
//! module.
|
//! module.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user