From b5935c796ab0b2c478b4480a0dfdacb8e0dfe40e Mon Sep 17 00:00:00 2001 From: johannst Date: Thu, 19 Dec 2024 18:47:57 +0000 Subject: deploy: 8ca27aeeb99a0da43e92e39918aa07c0b1443c07 --- juicebox_asm/struct.Runtime.html | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'juicebox_asm/struct.Runtime.html') diff --git a/juicebox_asm/struct.Runtime.html b/juicebox_asm/struct.Runtime.html index 908c529..5734451 100644 --- a/juicebox_asm/struct.Runtime.html +++ b/juicebox_asm/struct.Runtime.html @@ -1,5 +1,5 @@ -Runtime in juicebox_asm - Rust
juicebox_asm

Struct Runtime

source
pub struct Runtime { /* private fields */ }
Expand description

A simple mmaped runtime with executable pages.

-

Implementations§

source§

impl Runtime

source

pub fn new() -> Runtime

Create a new Runtime.

+Runtime in juicebox_asm - Rust
juicebox_asm

Struct Runtime

source
pub struct Runtime { /* private fields */ }
Expand description

A simple mmaped runtime with executable pages.

+

Implementations§

source§

impl Runtime

source

pub fn new() -> Runtime

Create a new Runtime.

§Panics

Panics if the mmap call fails.

source

pub fn with_profile() -> Runtime

Create a new Runtime which also generates static perf metat data.

@@ -21,13 +21,14 @@ pointer is only valid until the let nop = unsafe { rt.add_code::<extern "C" fn()>(&code) }; nop();
-
source

pub fn dump(&self)

Dump the code added so far to the runtime into a file called jit.asm in the processes -current working directory.

-

The code can be inspected with a disassembler as for example ndiasm from -nasm.us.

-
ndisasm -b 64 jit.asm
§Panics
-

Panics if writing the file failed.

-

Trait Implementations§

source§

impl Drop for Runtime

source§

fn drop(&mut self)

Unmaps the code page. This invalidates all the function pointer returned by +

source

pub fn disasm(&self)

Disassemble the code currently added to the runtime, using +ndisasm and print it to stdout. If +ndisasm is not available on the system this prints a warning and +becomes a nop.

+
§Panics
+

Panics if anything goes wrong with spawning, writing to or reading from +the ndisasm child process.

+

Trait Implementations§

source§

impl Drop for Runtime

source§

fn drop(&mut self)

Unmaps the code page. This invalidates all the function pointer returned by Runtime::add_code.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where -- cgit v1.2.3