Commit Graph

10 Commits

Author SHA1 Message Date
Dan Gohman
d2d8b56ddb Fix test-no_std.sh to handle the case where topdir is ".".
Instead of using "cd $topdir" to get back to the top, use popd.
2018-07-02 15:17:14 -07:00
Dan Gohman
967da59181 Fix shellcheck warnings in shell scripts. 2018-06-12 05:02:25 -07:00
Dan Gohman
99f6055c55 Fix warnings reported by bashate.
See https://pypi.org/project/bashate/ for more info.
2018-05-24 16:53:34 -07:00
Pat Hickey
ee9dcb8367 Improvements to Modules API (#307)
* test-no_std: use cargo +nightly

assume folks have rustup set to use stable by default

* cretonne-module, -faerie, -simplejit: use new ModuleError enum

CtonError is not really appropriate for use in the module system.
Instead, create a new enum ModuleError, which implements failure::Fail
(works with no_std). Translate existing panics and unimplemented
error cases to return ModuleErrors.

* cretonne-faerie: export FaerieProduct

* cretonne-module: expose FuncOrDataId, and Module::get_name to lookup

This is helpful for looking up a name that has already been declared.
Also, implement FuncOrDataId -> ExternalName conversion.

* cretonne-faerie: depend on faerie 0.3.0

which has bugfix for data relocations

* cretonne-module: change InvalidDefinition to InvalidImportDefinition

per dan's code review. plus another typo fix

* cretonne-faerie: add optional manifest of all traps from codegen

* cretonne-module: provide more context in panics

* cretonne-faerie: updates to docs

* cretonne-faerie: return an Err instead of debug_assert when isa not pic
2018-04-26 22:02:35 -07:00
Dan Gohman
653c11d580 Use "set -euo pipefail" in test-no_std.sh.
This makes it consistent with other shell scripts in the repo.
2018-04-20 11:11:38 -07:00
Dan Gohman
830ee60d28 Add no_std support in module, simplejit, and umbrella. 2018-04-19 12:39:56 -07:00
morenzg
a10a6a0df0 Merge branch 'master' into no_std 2018-04-17 16:56:33 -04:00
Dan Gohman
fc7b0a7e51 Rename the no_std feature to core.
See
https://github.com/yurydelendik/wasmparser.rs/pull/49#issuecomment-375436225
for more details.
2018-03-22 13:43:06 -07:00
Dan Gohman
e37f45667f Add an explicit std feature so that features are purely additive. 2018-02-23 21:49:55 -08:00
Dan Gohman
61db54c447 Add support for running tests in no_std mode. 2018-02-23 21:35:22 -08:00