We should really care which vm_type we assign to registers. Not only
it matters because FPU operations can be only done on SSE registers,
but also in some situations the only way to get the result type is to
query reg->vm_type (see OP_CMPG and OP_CMPL instruction selectors).

Signed-off-by: Tomek Grabiec <tgrab...@gmail.com>
---
 jit/object-bc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/jit/object-bc.c b/jit/object-bc.c
index 4a36330..f74868e 100644
--- a/jit/object-bc.c
+++ b/jit/object-bc.c
@@ -196,7 +196,7 @@ static int convert_array_load(struct parse_context *ctx, 
enum vm_type type)
        index_pure = get_pure_expr(ctx, index);
        src_expr = array_deref_expr(type, arrayref_pure, index_pure);
 
-       temporary = get_var(ctx->cu, J_INT);
+       temporary = get_var(ctx->cu, type);
        dest_expr = temporary_expr(type, NULL, temporary);
 
        store_stmt->store_src = &src_expr->node;
-- 
1.6.0.6


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jatovm-devel mailing list
Jatovm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jatovm-devel

Reply via email to