* jit/jit-rules-x86.c, jit/jit-rules-x86.sel, tools/gen-sel-parser.y,
tools/gen-sel-scanner.l: inline and optimize divisions for x86.
+ * jit/jit-rules-x86.sel: throw exceptions correctly for "check_null".
+
2004-05-30 Rhys Weatherley <rweather@southern-storm.com.au>
* doc/libjit.texi: clarify the text that describes LLVM, at the
JIT_OP_CHECK_NULL: unary_note
[reg] -> {
- /* TODO: won't work in a function with a "try" block */
unsigned char *patch;
- TODO();
x86_alu_reg_reg(inst, X86_OR, $1, $1);
patch = inst;
x86_branch8(inst, X86_CC_NE, 0, 0);
- x86_push_imm(inst, JIT_RESULT_NULL_REFERENCE);
- x86_call_code(inst, (void *)jit_exception_builtin);
+ inst = throw_builtin(inst, func, JIT_RESULT_NULL_REFERENCE);
x86_patch(patch, inst);
}