Commit Graph

377 Commits

Author SHA1 Message Date
ptitSeb
6b51a64fae Forgot to add back a failsafe in memory_init 2022-10-06 11:04:42 +02:00
ptitSeb
50eed71ab0 Last changes to enforce size check on ther caller of memory_data_init and not the function itself 2022-10-06 09:51:54 +02:00
ptitSeb
d12897d647 Added public initialize_memory_with_data function 2022-10-05 15:14:43 +02:00
ptitSeb
57652b0585 Fixed initialize_with_data not always called, and made the default memory data initializer available outside of the crate 2022-10-05 14:35:40 +02:00
ptitSeb
c27547e41e Removed Instance::new_no_memory_init, use custom LinearMemory with custom memory_init method to get the same result 2022-10-04 14:48:51 +02:00
ptitSeb
d581152641 Added an option to create a new instance without automatically initialize the memory 2022-10-03 11:38:14 +02:00
Felix Schütt
fef756412f Update 3.0.0-beta -> 3.0.0-beta.2 2022-09-26 12:20:35 +02:00
Felix Schütt
6988025cd0 Fix make lint 2022-08-23 15:24:13 +02:00
ptitSeb
2953093fb1 Some more cleanup 2022-08-23 11:28:43 +02:00
ptitSeb
73844bb7d2 Move LinearMemory test from vm::Memory to Tunables 2022-08-22 15:01:28 +02:00
ptitSeb
12eea42187 Added some test for LinearMemory trait 2022-08-22 13:43:10 +02:00
ptitSeb
553745cd3d Move LinearMemory trait and VMMemoryDefinition to wasmer_vm (from wasmer_types) 2022-08-19 16:00:38 +02:00
ptitSeb
7db6d3de78 Made clippy happy 2022-08-18 17:40:32 +02:00
ptitSeb
f599df0240 Fix linter 2022-08-18 16:58:04 +02:00
John Sharratt's Shared Account
c7c1507b8b Implemented LinearMemory trait 2022-08-18 16:53:37 +02:00
Manos Pitsidianakis
c570b1471a Bump version to 3.0.0-beta in Cargo manifests 2022-08-08 19:56:35 +03:00
Felix Schütt
520314bbf0 Fix errors from "make lint" 2022-08-05 15:40:32 +02:00
Manos Pitsidianakis
430a7e2e19 Make serde optional everywhere with enable-serde feature flag 2022-08-02 15:45:28 +03:00
Felix Schütt
011d36829a Bump 3.0.0-alpha.3 to 3.0.0-alpha.4 2022-07-30 11:31:08 +03:00
Felix Schütt
1c3ffffe46 Bump 3.0.0-alpha.2 to 3.0.0-alpha.3 2022-07-30 11:30:45 +03:00
Felix Schütt
02ee80cf10 Bump version to 3.0.0-alpha.2 2022-07-30 11:30:07 +03:00
Felix Schütt
6c045bff10 Bump version to 3.0.0-alpha.1 to fix botched compiler crate 2022-07-30 11:29:41 +03:00
Felix Schütt
8959008403 Update version to 3.0.0-alpha 2022-07-30 11:29:05 +03:00
Syrus Akbary
eb9e73d3aa Improvedf hashing/ids of function envs 2022-07-25 14:38:42 -07:00
Manos Pitsidianakis
924d2dcf4e Remove Universal mentions from cargo features 2022-07-25 14:45:27 +03:00
Manos Pitsidianakis
37773f29d7 Store/create Arc<ModuleInfo> in Module on Instantiation
Instead of accessing Arc<ModuleInfo> from the artifact a module was
instantiated from, create a copy from it in each instantiated module.
2022-07-25 13:13:52 +03:00
Manos Pitsidianakis
4b7671cabd Leave rkyv dependency only in wasmer-types
rkyv is only needed in wasmer-types crate after moving all serializable
types there.
2022-07-25 13:13:52 +03:00
Syrus Akbary
a419ccdf52 Move Webassembly objects to Store and remove Context
Co-authored-by: ptitSeb <sebastien.chev@gmail.com>
Co-authored-by: Manos Pitsidianakis <manos@wasmer.io>
2022-07-19 15:31:51 +03:00
Manos Pitsidianakis
62f07efb08 c-api: Add wasm_*_same functions to global,memory,table 2022-07-19 15:31:51 +03:00
Amanieu d'Antras
9e53e70767 Rework the way the Context is passed into function using it 2022-07-19 15:31:51 +03:00
Amanieu d'Antras
738a66f719 Implement the new Context API for the core API
Co-authored-by: ptitSeb <sebastien.chev@gmail.com>
2022-07-19 15:31:51 +03:00
Amanieu d'Antras
f16bd35d3c Remove old ref-counted extern support from compiler-cranelift
It was never fully implemented and we're moving to a different way of
tracking ExternRef lifetimes.
2022-07-19 15:31:51 +03:00
ptitSeb
2b8aa5174e Allow debugging of EXC_BAD_INSTRUCTION on macOS 2022-07-01 16:03:10 +02:00
Manos Pitsidianakis
a6173f9746 Remove wasmer-{artifact,engine} and merge it into wasmer-compiler and wasmer-vm 2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
699bd3f8ca Update rkyv dependency to 0.7.38 2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
4a80830566 lib/types: remove ArchivableIndexMap struct
rkyv supports IndexMap via a feature flag, so having our own IndexMap
type is unnecessary.
2022-06-16 16:57:45 +03:00
Manos Pitsidianakis
065734bb05 Make rkyv dependency required 2022-06-16 16:57:45 +03:00
Johnathan Sharratt
b0709e4153 Implemented multithreading and fixed a number of bugs with WASIX 2022-06-15 19:26:57 +03:00
Wolfgang Silbermayr
5339f7cdae Fix clippy lints
Fixes: #2926
2022-06-09 16:05:53 +02:00
Manos Pitsidianakis
00f9a3c8d7 Remove loupe dependency
Closes #2731
Closes #2744
2022-06-08 14:12:49 +03:00
Manos Pitsidianakis
33654c1a1d Release version 2.3.0 2022-06-06 22:27:57 +03:00
ptitSeb
7aeb55a64e Avoid code duplication with a local function to process the Illegal Opcode 2022-05-11 15:41:35 +02:00
ptitSeb
1ef6811c0f Cleanup and a bit of refactoring to use more of rust syntax 2022-05-04 18:01:44 +02:00
ptitSeb
1dba3cb900 Merge branch 'master' into feat/TrapInformation_improvments 2022-05-03 16:15:57 +02:00
ptitSeb
28d23396ac Merge branch 'master' into feat/TrapInformation_improvments 2022-05-03 15:36:49 +02:00
ptitSeb
0c7ea79bfc Cleanup:
Removed conditionnal toml on wasm for VM as it's not builded in that configuration
Added unwind to wasm build
Moved Trap back to vm (from types) as it's used only on Runtime
Move MemoryError back to vm (from types) as it's used on Runtime only scenario
Some cleanup and lint fixes
Removed wasm build case from vfs/host_fs as it's not used
2022-05-03 09:34:13 +02:00
ptitSeb
1f3613c881 Split Artifact to have ArtifactCreate that handles only the creation part, not the run part 2022-05-03 09:32:34 +02:00
ptitSeb
1783aa50f1 Also moved enum Trap out of vm 2022-05-03 09:32:34 +02:00
ptitSeb
3d7ae9e21f Moved LibCall enum to wasmer_types, and compiler is no longer dependant of wasmer_vm 2022-05-03 09:32:34 +02:00
ptitSeb
e745ceab7a Moved TableStyle and MemoryStyle to wasmer-types (and compiler-single pass do not depend from vm anymore) 2022-05-03 09:32:34 +02:00