Complete OP_CONST_STRING, OP_CONST_CLASS

Added dummy ThrowException & ResolveTypeFromCode routines.  Fix
OP_CONST_STRING and OP_CONST_CLASS to be position independent.  Misc.
bug fixes.

Created a dummy ThrowException compiler run-time helper function.  It
should be replaced with the real version.

Change-Id: Iba6a11cf110d3da4fa36ca434fe1b2675b68434d
diff --git a/test/IntMath/IntMath.java b/test/IntMath/IntMath.java
index c13a79a..0d52ffc 100644
--- a/test/IntMath/IntMath.java
+++ b/test/IntMath/IntMath.java
@@ -23,6 +23,26 @@
         foo_ = 123;
     }
 
+    static int constStringTest(int x) {
+        /* TODO: flesh this test out when we can call string library */
+        String str = "Hello World!";
+        return x * 2;
+    }
+
+    static void throwNullPointerException() {
+        throw new NullPointerException();
+    }
+
+    static int catchBlock(int x) {
+        try {
+            x += 123;
+            throwNullPointerException();
+        } catch (NullPointerException npe) {
+            x += 456;
+        }
+        return x;
+    }
+
     static int staticFieldTest(int x) {
         mBoolean1 = true;
         mBoolean2 = false;
@@ -801,5 +821,12 @@
         } else {
             System.out.printf("staticFieldTest FAILED: %d\n", res);
         }
+
+        res = catchBlock(1000);
+        if (res == 1579) {
+            System.out.printf("catchBlock PASSED\n");
+        } else {
+            System.out.printf("catchBlock FAILED: %d\n", res);
+        }
     }
 }