Add instructions and function API's for supporting debug line - libjit.git - libjit

index : libjit.git
libjit
summary refs log tree commit diff
path: root/jitplus/jit-plus-function.cpp
diff options
context:
space:
mode:
authorRhys Weatherley <rweather@southern-storm.com.au>2004年10月04日 00:51:45 +0000
committerRhys Weatherley <rweather@southern-storm.com.au>2004年10月04日 00:51:45 +0000
commit5952bf08262d3e776aff52b833daf70cae897e16 (patch)
treeaedc9c1219e10d1cf4c197b706fb7744c018f815 /jitplus/jit-plus-function.cpp
parent60dabef87c5e442c5a136d244ed8d557b2e9becd (diff)
downloadlibjit-5952bf08262d3e776aff52b833daf70cae897e16.tar.gz
Add instructions and function API's for supporting debug line
numbers and breakpoints.
Diffstat (limited to 'jitplus/jit-plus-function.cpp')
-rw-r--r--jitplus/jit-plus-function.cpp 18
1 files changed, 18 insertions, 0 deletions
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);
generated by cgit v1.2.3 (git 2.39.1) at 2025年09月13日 11:33:11 +0000

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