Signed-off-by: Vegard Nossum <[email protected]>
---
jit/load-store-bc.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/jit/load-store-bc.c b/jit/load-store-bc.c
index c6598ef..9ce4dea 100644
--- a/jit/load-store-bc.c
+++ b/jit/load-store-bc.c
@@ -142,6 +142,17 @@ static int __convert_ldc(struct parse_context *ctx,
unsigned long cp_idx)
((uint64_t) cp->double_.high_bytes << 32)
+ (uint64_t) cp->double_.low_bytes);
break;
+ case CAFEBABE_CONSTANT_TAG_CLASS: {
+ /* Added for JDK 1.5 */
+ struct vm_class *ret = vm_class_resolve_class(vmc, cp_idx);
+ if (!ret) {
+ NOT_IMPLEMENTED;
+ break;
+ }
+
+ expr = value_expr(J_REFERENCE, (unsigned long) ret->object);
+ break;
+ }
default:
return warn("unknown tag: %d", cp->tag), -EINVAL;
}
--
1.6.0.4
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Jatovm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jatovm-devel