]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
fix a typo and add a wrapper for jit_function_reserve_label for jitplus
authorAleksey Demakov <ademakov@gmail.com>
Thu, 8 Nov 2007 17:31:42 +0000 (17:31 +0000)
committerAleksey Demakov <ademakov@gmail.com>
Thu, 8 Nov 2007 17:31:42 +0000 (17:31 +0000)
ChangeLog
include/jit/jit-plus.h
jitplus/jit-plus-function.cpp

index 2c30f58b7d56305a3f41cd668f674eac966a708b..423c4b3d24a77f9f0df28e2263fa6470f12dd0ed 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-11-08  Aleksey Demakov  <ademakov@gmail.com>
+
+       * include/jit/jit-plus.h, jitplus/jit-plus-function.cpp (new_label):
+       add c++ wrapper for jit_function_reserve_label.
+
+       * include/jit/jit-plus.h (clear_recompilable): fix a typo.
+
 2007-10-07  Aleksey Demakov  <ademakov@gmail.com>
 
        * jit/jit-rules-x86.ins (JIT_OP_JUMP_TABLE): fix jump table code
index 90535bf6b929c41ad5e054dc14501bb4ee28e47b..cefd8d038efe52af45c2456f1305e9e828e30af4 100644 (file)
@@ -151,7 +151,7 @@ public:
        int is_recompilable() const { return jit_function_is_recompilable(func); }
 
        void set_recompilable() { jit_function_set_recompilable(func); }
-       void clear_recompilable() { jit_function_set_recompilable(func); }
+       void clear_recompilable() { jit_function_clear_recompilable(func); }
        void set_recompilable(int flag)
                { if(flag) set_recompilable(); else clear_recompilable(); }
 
@@ -206,6 +206,8 @@ public:
        jit_value get_param(unsigned int param);
        jit_value get_struct_pointer();
 
+       jit_label new_label();
+
        void insn_label(jit_label& label);
        void insn_new_block();
        jit_value insn_load(const jit_value& value);
index 716cd7392e3bb749cb8525cf28c38133f385df74..4931fb3ffb210613dc3c303495c9ceabae37b75f 100644 (file)
@@ -557,6 +557,17 @@ jit_value jit_function::get_struct_pointer()
        value_wrap(jit_value_get_struct_pointer(func));
 }
 
+/*@
+ * @deftypemethod jit_function jit_label new_label ()
+ * Create a new label.  This is the C++ counterpart to
+ * @code{jit_function_reserve_label}.
+ * @end deftypemethod
+@*/
+jit_label jit_function::new_label()
+{
+       return jit_label(jit_function_reserve_label(func));
+}
+
 /*@
  * @deftypemethod jit_function void insn_label ({jit_label&} label)
  * @deftypemethodx jit_function void insn_new_block ()