mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-07 13:18: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::{
|
||||
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.
|
||||
|
||||
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.
|
||||
//!
|
||||
//! 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
|
||||
//! 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
|
||||
//! 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.
|
||||
//!
|
||||
//! 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
|
||||
//! 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
|
||||
//! 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.
|
||||
//!
|
||||
//! 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::state::ModuleTranslationState;
|
||||
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
|
||||
//! to deal with each part of it.
|
||||
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
|
||||
//! 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 std::boxed::Box;
|
||||
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.
|
||||
use crate::unwind::UnwindRegistry;
|
||||
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.
|
||||
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.
|
||||
use std::collections::HashMap;
|
||||
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::table::{Table, TablePlan};
|
||||
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 wasm_common::entity::{BoxedSlice, PrimaryMap};
|
||||
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
|
||||
//! wasm module (except its callstack and register state). An
|
||||
//! `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.
|
||||
//!
|
||||
//! 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.
|
||||
//!
|
||||
//! `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
|
||||
//! 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
|
||||
//! 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
|
||||
//! 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
|
||||
//! 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.
|
||||
//!
|
||||
//! `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>
|
||||
|
||||
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
|
||||
//! in Wasmer Runtime
|
||||
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.
|
||||
|
||||
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
|
||||
//! 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
|
||||
//! 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
|
||||
//! module.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user