author | Rhys Weatherley <rweather@southern-storm.com.au> | 2004年10月04日 00:51:45 +0000 |
---|---|---|
committer | Rhys Weatherley <rweather@southern-storm.com.au> | 2004年10月04日 00:51:45 +0000 |
commit | 5952bf08262d3e776aff52b833daf70cae897e16 (patch) | |
tree | aedc9c1219e10d1cf4c197b706fb7744c018f815 /jitplus/jit-plus-function.cpp | |
parent | 60dabef87c5e442c5a136d244ed8d557b2e9becd (diff) | |
download | libjit-5952bf08262d3e776aff52b833daf70cae897e16.tar.gz |
-rw-r--r-- | jitplus/jit-plus-function.cpp | 18 |
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); |