Files
wasmtime/cranelift
Dan Gohman d7e13284b2 Mark emit_to_memory as unsafe, and introduce a safe emit. (#281)
* Mark emit_to_memory as unsafe, and provide a safe compile_and_emit.

Mark `Context::emit_to_memory` and `MemoryCodeSink::new` as unsafe, as
`MemoryCodeSink` does not perform bounds checking when writing to
memory.

Add a `Context::compile_and_emit` function which provides a convenient
interface for doing `compile` and `emit_to_memory` in one step, and
which can also provide a safe interface, since it allocates memory of
the needed size itself.

* Mention that `MemoryCodeSink` can't guarantee that the pointer is valid.
2018-04-18 06:35:47 -07:00
..
2018-03-30 17:09:21 -07:00
2018-02-21 15:14:03 -08:00
2018-04-17 22:18:30 -07:00
2018-03-22 13:10:41 -07:00
2016-01-12 16:51:35 -08:00
2018-04-17 22:18:30 -07:00