Bruce Mitchener
fbd637e142
Update to raw-cpuid 4.0. ( #369 )
2018-06-22 12:13:00 -07:00
Dan Gohman
979162522e
Keep a comment in sync with the code.
2018-06-21 16:24:33 -07:00
Dan Gohman
593e2bae6c
Add timers for branch relaxation and instruction shrinking.
2018-06-21 16:18:34 -07:00
Dan Gohman
d209137149
Rename TargetIsa's emit_function to emit_function_to_memory.
...
This reflects the fact that it takes a concrete `MemoryCodeSink` rather than
a `CodeSink` trait object.
2018-06-21 15:50:29 -07:00
Dan Gohman
603bb4ac02
Remove an obsolete comment.
2018-06-21 15:45:24 -07:00
Dan Gohman
2b04099604
Fix a typo in a comment.
2018-06-19 14:16:42 -07:00
Dan Gohman
47a96641f9
Rename the memflags operand name from Flags to MemFlags.
...
This reduces confusion with other kinds of flags.
2018-06-19 14:12:52 -07:00
Dan Gohman
0349270b58
Bump version to 0.12.0
2018-06-16 07:50:27 -07:00
Lachlan Sneff
b3c3ca331b
Removed implicit indirection when computing heap base. ( #363 )
...
Fix expected legalized heap_addr
2018-06-16 07:31:52 -07:00
Lachlan Sneff
f97ad59991
Fix breaking change
2018-06-15 18:33:30 -07:00
Lachlan Sneff
38ab82bcc0
Made changes for review
2018-06-15 18:33:30 -07:00
Lachlan Sneff
3686fc2fc7
Fix typos caused by find-and-replace
2018-06-15 18:33:30 -07:00
Lachlan Sneff
5c320a0d30
Change GlobalVar to GlobalValue
2018-06-15 18:33:30 -07:00
Dan Gohman
49cc693d64
Update to hashmap_core 0.1.7.
2018-06-15 10:35:13 -07:00
Dan Gohman
dfc7065252
Bump version to 0.11.0
2018-06-15 08:46:25 -07:00
Dan Gohman
c506f4cf6b
Use WasmError::Unsupported rather than panic for unsupported extensions.
2018-06-15 08:38:40 -07:00
Dan Gohman
1cab2f2d73
Remove an unneeded comment.
2018-06-13 07:41:39 -07:00
Dan Gohman
9542cab5ed
Bump version to 0.10.0
2018-06-12 12:29:59 -07:00
Sergey Pepyakin
a8923e2185
Add 64-bit versions.
2018-06-12 11:54:23 -07:00
Sergey Pepyakin
399860e2aa
Encode bnot on x86.
2018-06-12 11:54:23 -07:00
Dan Gohman
a7813c4448
Update to target-lexicon 0.0.2.
...
This fixes compilation on rust 1.22.1.
2018-06-12 06:36:07 -07:00
Dan Gohman
1b55a2d005
Rename more Error and Result types.
2018-06-12 05:02:25 -07:00
Dan Gohman
43bd3cb2a3
Introduce a ModuleResult alias for Result<T, ModuleError>.
...
This follows the pattern used by cretonne-codegen, cretonne-wasm, and
others.
2018-06-12 05:02:25 -07:00
Dan Gohman
6971ae1c26
Export CodegenError and CodegenResult at the top level.
...
Make cretonne-codegen's `result` module private, and instead just export
`CodegenError` and `CodegenResult` at the top level of the
cretonne-codegen crate. This makes them more consistent with Result and
Error types in other cretonne crates.
2018-06-12 05:02:25 -07:00
Dan Gohman
8a26a50475
Rename CtonError and CtonResult to CodegenError and CodegenResult.
2018-06-12 05:02:25 -07:00
Dan Gohman
02e34d1bf7
Make CtonError parameterized on the result type.
...
This makes it more consistent with other custom `Result` types.
2018-06-12 05:02:25 -07:00
Dan Gohman
13f22065a2
Rename verifier's Result and Error.
...
This provides consistency with similar types in other parts of
Cretonne, and avoids shadowing `Result` from the standard prelude.
2018-06-12 05:02:25 -07:00
Dan Gohman
683880bd02
Avoid uninteresting renaming of imports.
2018-06-12 05:02:25 -07:00
Dan Gohman
ffe57d9051
Fix a typo in a comment.
2018-06-12 05:02:25 -07:00
Dan Gohman
3027579cbe
Add a test for instruction shrinking.
2018-06-12 05:02:25 -07:00
Dan Gohman
de2a2fe418
Minor code cleanup.
2018-06-12 05:02:25 -07:00
Dan Gohman
967da59181
Fix shellcheck warnings in shell scripts.
2018-06-12 05:02:25 -07:00
Dan Gohman
c03d67a4ff
Update for wasm memory instruction renaming.
...
The wasm spec renamed `grow_memory` and `current_memory` to
`memory.grow` and `memory.size`, respectively. Update cretonne's names
to follow.
Also, update to wasmparser 0.17.0, which also renames its corresponding
operators.
2018-06-12 05:02:25 -07:00
Dan Gohman
0daa560368
Accept redundant alias definitions.
...
In the text format, allow aliases to be defined multiple times, as long
as they're always aliasing the same value.
write.rs is already emitting redundant aliases, because it emits them at
their uses, so this change allows the parser to be able to parse such
code.
2018-06-12 05:02:25 -07:00
Dan Gohman
00d7d3a774
Implement IntoIterator for PrimaryMap.
...
This makes iterating through a `PrimaryMap` more consistent with
iterating through a `Vec`.
2018-06-12 05:02:17 -07:00
Dan Gohman
fdf89edbfe
Fail loudly if a build.rs dependency path can't be printed.
2018-06-09 13:22:44 -07:00
Sergey Pepyakin
e4fe1db3b8
Assert that stack_limit is none.
2018-06-09 13:18:12 -07:00
Sergey Pepyakin
f10682c246
Add documentation.
2018-06-09 13:18:12 -07:00
Sergey Pepyakin
ddc8c91419
Displaying stack_limit
2018-06-09 13:18:12 -07:00
Sergey Pepyakin
73b6468d25
Parsing stack_limit
2018-06-09 13:18:12 -07:00
Sergey Pepyakin
effe770c5f
Add stack_limit global_var in Function
2018-06-09 13:18:12 -07:00
Sergey Pepyakin
e9111d1de2
Ditch stack_check instruction
2018-06-09 13:18:12 -07:00
Dan Gohman
944251260b
Bump version to 0.9.0
2018-06-07 11:46:36 -07:00
Dan Gohman
f37ebaa4ba
Bump version to 0.9.0
2018-06-07 11:42:52 -07:00
Dan Gohman
f5c1273fcf
Use cfg_attr to tidy up an extern crate declaration.
2018-06-07 11:34:55 -07:00
Dan Gohman
b2b20a95a1
Fix missing no_std support in cretonne-module.
...
And, tidy up the extern crate declarations in the std replacement modules.
2018-06-07 11:34:55 -07:00
Dan Gohman
750483b9ac
Update to hashmap_core 0.1.6.
2018-06-07 10:45:30 -07:00
Dan Gohman
6ec3a3f7a1
Pass the "std" feature through to target-lexicon.
2018-06-07 09:56:45 -07:00
Bruce Mitchener
e49e1e20c6
Update to region 0.3.
2018-06-06 10:15:09 -07:00
Bruce Mitchener
36d4e0a13c
Update to goblin 0.0.15.
2018-06-06 10:15:09 -07:00