It's easier to use a fixed caller saved register for this purpose than
native stack.

Signed-off-by: Tomek Grabiec <[email protected]>
---
 arch/x86/insn-selector_32.brg |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/arch/x86/insn-selector_32.brg b/arch/x86/insn-selector_32.brg
index fe37565..68a8251 100644
--- a/arch/x86/insn-selector_32.brg
+++ b/arch/x86/insn-selector_32.brg
@@ -859,12 +859,7 @@ arg:       EXPR_ARGS_LIST(arg, arg)
 
 reg:   EXPR_EXCEPTION_REF
 {
-       struct var_info *result;
-
-       result = get_var(s->b_parent);
-       state->reg1 = result;
-
-       select_insn(s, tree, reg_insn(INSN_POP_REG, result));
+       state->reg1 = get_fixed_var(s->b_parent, REG_ECX);
 }
 
 stmt:  STMT_RETURN(reg)
-- 
1.6.0.6


------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to