Commit Graph

  • eedc7cabf1 Allow peeking at the compiled function bjorn3 2019-01-09 14:48:01 +01:00
  • d7434fe5d2 Have vmctx be the first argument so we (almost) never have to shuffle it around Jef 2019-01-16 09:33:46 +01:00
  • b86d11e4ad Avoid unnecessary work when passing arguments on Jef 2019-01-15 17:24:30 +01:00
  • 62fe065e85 Fix miscompilation for maliciously-crafted use of locals Jef 2019-01-15 14:00:43 +01:00
  • 45b2a5dae2 Merge remote-tracking branch 'forked/master' into loops Jef 2019-01-15 12:59:55 +01:00
  • 1b6952bb99 Implement vmctx as a hidden argument for cranelift compat Jef 2019-01-15 12:27:55 +01:00
  • aeb9161e2c Update no_std support for Rust 2018 Edition. Dan Gohman 2019-01-07 11:04:58 -08:00
  • 50a045363c Add an explicit trap code for wasm unreachable. Dan Gohman 2019-01-06 13:00:08 -08:00
  • 2f0e0dd995 Really fix emit_small_memcpy this time! bjorn3 2019-01-11 13:45:10 +01:00
  • 3809e7252d Remove outdated comment bjorn3 2018-12-29 12:16:13 +01:00
  • 01ed463c7a Change SignalHandlers.h to SignalHandlers.hpp buckle2000 2019-01-12 04:33:14 -06:00
  • 8312730377 Make calling functions safe Jef 2019-01-14 18:45:14 +01:00
  • 1eebc65c9e First baby steps to supporting memory accesses Jef 2019-01-11 15:20:32 +01:00
  • 9fe08c9341 Tidy up pointer casting to avoid casts that change mutability. Dan Gohman 2019-01-08 10:31:58 -08:00
  • ddb4c0fd19 x64 sign-extends imm32 arguments, so don't truncate them in an unsigned way Jef 2019-01-08 11:10:59 +01:00
  • 010f2d8569 Fix comparisons, add more tests for binops Jef 2019-01-08 09:45:39 +01:00
  • a5bd3924e3 Add crate version identifiers. Dan Gohman 2019-01-07 11:51:47 -08:00
  • 9eba81a8d9 Update clippy settings and fix a few clippy warnings. Dan Gohman 2019-01-07 11:21:28 -08:00
  • a7aee246e9 Pass declare_signature's argument by value. Dan Gohman 2019-01-07 12:34:21 -08:00
  • 13138b65f7 Call the new ModuleEnvironment reserve functions. Dan Gohman 2019-01-03 11:43:15 -08:00
  • 6ec0b3c6bf Add a comment. Dan Gohman 2019-01-03 11:43:02 -08:00
  • 7120633363 Change the elems parameter of declare_table_elements to a boxed slice. Dan Gohman 2018-12-18 14:13:46 -08:00
  • 054e6fcf07 Add functions to ModuleEnvironment to support reserving buffers up front. Dan Gohman 2018-12-18 12:55:11 -08:00
  • 7f250e340c Simplify ModuleEnvironment. Dan Gohman 2018-12-18 12:11:32 -08:00
  • fcd18746a7 Add 64-bit operations Jef 2019-01-07 19:17:29 +01:00
  • 0a2b0ee9b0 Mmap API tidying. Dan Gohman 2019-01-07 10:08:40 -08:00
  • 0826e32c9a Tidy up unnecessary return statements. Dan Gohman 2019-01-05 16:18:20 -08:00
  • 3143e22566 Move the creation of linear-memory guard pages into the mmap module. Dan Gohman 2019-01-05 16:19:50 -08:00
  • 3ac4269dc5 Add host_state() accessors to InstanceContents and VMContext too. Dan Gohman 2019-01-04 17:24:14 -08:00
  • 73b2c45313 Add a host_state field to Instance. Dan Gohman 2019-01-04 17:15:22 -08:00
  • 3aef763046 Delete an unneeded comment. Dan Gohman 2019-01-03 15:50:04 -08:00
  • 6661228c86 Tidy up whitespace. Dan Gohman 2019-01-03 14:44:30 -08:00
  • e876f0fb1d Add some Cargo.toml keywords. Dan Gohman 2019-01-03 14:21:24 -08:00
  • 35d7f78a11 Handle errors cleanly in the wast runner. Dan Gohman 2019-01-03 14:16:28 -08:00
  • 40acc1f340 Add crate version identifiers. Dan Gohman 2019-01-03 14:14:47 -08:00
  • 585bdac91e Use vec![0; size] instead of creating an empty Vec and resizing. Dan Gohman 2019-01-03 14:08:31 -08:00
  • a41bc1fe1e Fix unused use warnings. Dan Gohman 2019-01-03 14:04:53 -08:00
  • ca2fdc5ccb Update no_std support. Dan Gohman 2019-01-03 14:00:03 -08:00
  • f6c2fe7d2d Update to Rust 2018 Edition. Dan Gohman 2019-01-03 12:58:11 -08:00
  • 00a84672f7 Use Vec::with_capacity. Dan Gohman 2019-01-03 12:37:14 -08:00
  • 03c22ed67a Remove warnings in tests; Benjamin Bouvier 2019-01-03 18:09:38 +01:00
  • c78a9a4a7c Bump log and file-per-thread-logger; Benjamin Bouvier 2019-01-03 15:55:33 +01:00
  • 813810008b Replace deprecated trim_left_matches by trim_start_matches; Benjamin Bouvier 2019-01-03 15:10:25 +01:00
  • 7e42966c68 Use snake case for magic numbers computation; Benjamin Bouvier 2018-11-15 12:44:14 +01:00
  • fdc66e130f Eliminate unneeded casts. Dan Gohman 2019-01-03 12:05:32 -08:00
  • 39770ec72c Minor code tidying. Dan Gohman 2019-01-03 12:05:26 -08:00
  • 701b1998e9 Avoid creating slices with null pointers. Dan Gohman 2019-01-03 12:04:19 -08:00
  • 57e183f5f8 Use TablePlan::for_table and MemoryPlan::for_memory instead of manual code. Dan Gohman 2019-01-03 12:01:28 -08:00
  • 8a5429ce74 Factor out functions for working with table and memory initializers. Dan Gohman 2019-01-03 11:57:09 -08:00
  • 747dbb23e7 Add fuzz targets for module instantiation. Dan Gohman 2019-01-03 11:48:05 -08:00
  • df7724ce2b Update Cargo.toml authors fields. Dan Gohman 2019-01-03 11:38:41 -08:00
  • 2f04b78ecf Use cast::usize rather than as usize to avoid silent overflow. Dan Gohman 2019-01-03 11:32:39 -08:00
  • 529de7ca60 Tidy up unneeded '&'s. Dan Gohman 2019-01-03 11:31:36 -08:00
  • c66a3c23f3 Tidy up some documentation comments. Dan Gohman 2019-01-03 11:29:01 -08:00
  • 3ce2127bfa Eliminate the intermediate "base" global variables. Dan Gohman 2019-01-03 11:19:38 -08:00
  • 3431122440 Update to bindgen 0.46. Dan Gohman 2019-01-03 11:19:17 -08:00
  • 1ae5c13b8c Signature ID loads are readonly. Dan Gohman 2019-01-03 11:14:13 -08:00
  • 8939d1252a Document that wasmtime-runtime is meant to be compiled for the target. Dan Gohman 2019-01-03 11:09:11 -08:00
  • 3270369a69 Restructure VMContext to eliminate a level of indirection. Dan Gohman 2019-01-03 11:02:37 -08:00
  • ff6776fe10 Refactor instance accessor routines. Dan Gohman 2019-01-03 09:46:35 -08:00
  • 482a054c75 Move the signature_ids field first. Dan Gohman 2019-01-03 09:44:21 -08:00
  • e8e8f453a4 Refactor out the code for creating the signature_ids base global value. Dan Gohman 2019-01-03 09:35:16 -08:00
  • 087b5b4dff Implement cross-instance indirect calls. Dan Gohman 2019-01-03 08:31:03 -08:00
  • b646f9b4e0 Clarify a comment. Dan Gohman 2019-01-03 08:25:02 -08:00
  • 9d73123e3e Reformat a comment to fit within 100 columns. Dan Gohman 2019-01-03 08:16:47 -08:00
  • bec724b501 Whitespace tidying. Dan Gohman 2019-01-03 08:13:37 -08:00
  • b704f5ad30 Update to wasmparser 0.23.0. Dan Gohman 2019-01-03 07:04:53 -08:00
  • 63c9143e87 Update to bindgen 0.45. Dan Gohman 2019-01-03 07:03:07 -08:00
  • 7592c99f3b Refactor the compilation and instantiation pipeline. Dan Gohman 2019-01-03 06:59:46 -08:00
  • 450a279e18 Rename wasmtime's logfile names. Dan Gohman 2019-01-03 06:45:20 -08:00
  • e9cb50313d Fix emit_small_mem{cpy,set} when size == 0 or access_size > 8 bjorn3 2018-12-24 15:31:31 +01:00
  • c8e47177fc Add an assert to append_ebb_params_for_function_params. Dan Gohman 2019-01-02 12:05:32 -08:00
  • 831d033471 Add a shrink_to_fit function to PrimaryMap. Dan Gohman 2019-01-02 12:01:36 -08:00
  • cd4f96c066 Use Vec::with_capacity when we know the eventual size of the Vec. Dan Gohman 2019-01-02 11:59:57 -08:00
  • 29edc3fe50 Make ListPool's alloc fill new memory with reserved values. Dan Gohman 2019-01-02 11:59:22 -08:00
  • 8a11bd6af7 Remove BoxedSlice's next_key() function, which is unneeded. Dan Gohman 2019-01-02 11:58:44 -08:00
  • b096d0606b Move ifcmp, icmp_imm, and ffcmp into the CPU flags doc section. Dan Gohman 2019-01-02 11:46:15 -08:00
  • ab72eeadf9 Bump faerie to 0.7.0 bjorn3 2019-01-01 14:00:18 +01:00
  • effe6c04e4 Update to Rust 2018 edition (#632) Muhammad Mominul Huque 2018-12-26 23:49:05 +06:00
  • e3db942b0c Put default implementations of FuncWriter methods in a seperate method bjorn3 2018-12-26 11:35:55 +01:00
  • f997cde2db Don't create Static memories larger than the Tunables' static bound size. Dan Gohman 2018-12-24 21:57:43 -08:00
  • 57a1618742 Catch EXCEPTION_INT_OVERFLOW exceptions too. Dan Gohman 2018-12-24 21:56:41 -08:00
  • a5a23d8c4a Factor WasmNamespace out of lib/wast and into lib/execute as Namespace. Dan Gohman 2018-12-24 21:40:26 -08:00
  • 71c0142cd4 Rename the address field of Table/Memory/Global exports to definition. Dan Gohman 2018-12-24 18:20:15 -08:00
  • 8f74c7f3d5 Add derive(Debug) to Export. Dan Gohman 2018-12-24 18:14:00 -08:00
  • 4f8753fa11 Fix typos. Bruce Mitchener 2018-12-24 10:20:32 -05:00
  • 4224a95f0d Update wasmparser to 0.23. Bruce Mitchener 2018-12-24 10:41:08 -05:00
  • 887451a2eb Fix formatting. Dan Gohman 2018-12-24 09:32:50 -08:00
  • 998a7d2b6d Mention Wasmtime as a complete implementation of the Environment traits. Dan Gohman 2018-12-20 15:02:10 -08:00
  • 95118e7244 Nicer panic when trying to insert instruction before calling switch_to_block bjorn3 2018-12-24 15:02:38 +01:00
  • c4e10227de Tidy up trap-handling code. Dan Gohman 2018-12-19 15:12:56 -08:00
  • 5eee15ab02 Remove outdated comment Jef 2018-12-19 20:27:16 +00:00
  • 522818e7d8 Fix compiler bomb Jef 2018-12-19 17:52:26 +00:00
  • 9decdca525 Add Return Jef 2018-12-19 16:39:20 +00:00
  • c52cf1493a Reformat a comment Jef 2018-12-19 14:46:32 +01:00
  • f91b9072de Fix some issues with the use of stack depth Jef 2018-12-19 14:42:00 +01:00
  • 3b5c11a92a Test comparison operators Jef 2018-12-19 12:58:08 +01:00
  • 2173f4bcca Add other comparison operators, fix materialising locals, add more TODO comments (v. important) Jef 2018-12-19 12:42:35 +01:00
  • cbf34a455b Add factorial tests from spec (after fixing them slightly) Jef 2018-12-19 10:40:31 +01:00
  • 72855e48c7 Improve behaviour when adding literal to non-literal, materialise local if its value will be changed Jef 2018-12-18 19:15:29 +01:00