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/src/compiler_test.cc b/src/compiler_test.cc
index eca5b2a..305b0d8 100644
--- a/src/compiler_test.cc
+++ b/src/compiler_test.cc
@@ -165,6 +165,20 @@
                         10);
 }
 
+TEST_F(CompilerTest, ConstStringTest) {
+  AssertStaticIntMethod(LoadDex("IntMath"), "IntMath", "constStringTest",
+                                "(I)I", 2468, 1234);
+}
+
+TEST_F(CompilerTest, DISABLED_CatchTest) {
+  CompileDirectMethod(NULL, "java.lang.Object", "<init>", "()V");
+  CompileDirectMethod(NULL, "java.lang.NullPointerException", "<init>", "()V");
+  const ClassLoader* class_loader = LoadDex("IntMath");
+  CompileDirectMethod(class_loader, "IntMath", "throwNullPointerException", "()V");
+  AssertStaticIntMethod(class_loader, "IntMath", "catchBlock", "(I)I", 1579,
+                        1000);
+}
+
 TEST_F(CompilerTest, StaticFieldTest) {
   AssertStaticIntMethod(LoadDex("IntMath"), "IntMath", "staticFieldTest", "(I)I", 1404,
                         404);