+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
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(); }
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);
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 ()