From 5952bf08262d3e776aff52b833daf70cae897e16 Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Mon, 4 Oct 2004 00:51:45 +0000 Subject: Add instructions and function API's for supporting debug line numbers and breakpoints. --- jitplus/jit-plus-function.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'jitplus/jit-plus-function.cpp') diff --git a/jitplus/jit-plus-function.cpp b/jitplus/jit-plus-function.cpp index 1723771..df486a7 100644 --- a/jitplus/jit-plus-function.cpp +++ b/jitplus/jit-plus-function.cpp @@ -672,6 +672,8 @@ jit_value jit_function::get_struct_pointer() * @deftypemethodx jit_function jit_value jit_insn_alloca ({const jit_value&} size) * @deftypemethodx jit_function void insn_move_blocks_to_end ({const jit_label&} from_label, {const jit_label&} to_label) * @deftypemethodx jit_function void insn_move_blocks_to_start ({const jit_label&} from_label, {const jit_label&} to_label) + * @deftypemethodx jit_function void insn_mark_offset (jit_int offset) + * @deftypemethodx jit_function void insn_mark_debug (jit_nint data1, jit_nint data2) * Create instructions of various kinds. @xref{Instructions}, for more * information on the individual instructions and their arguments. * @end deftypemethod @@ -1426,6 +1428,22 @@ void jit_function::insn_move_blocks_to_start } } +void jit_function::insn_mark_offset(jit_int offset) +{ + if(!jit_insn_mark_offset(func, offset)) + { + out_of_memory(); + } +} + +void jit_function::insn_mark_debug(jit_nint data1, jit_nint data2) +{ + if(!jit_insn_mark_debug(func, data1, data2)) + { + out_of_memory(); + } +} + void jit_function::register_on_demand() { jit_function_set_on_demand_compiler(func, on_demand_compiler); -- cgit v1.2.3

AltStyle によって変換されたページ (->オリジナル) /