Compilation_unit experiment. Fix because of no long_call.

Change-Id: Id8ab9c50317ade34f80be6e72784db00c0b23f6b
diff --git a/src/compiler_llvm/jni_compiler.cc b/src/compiler_llvm/jni_compiler.cc
index 7855be0..198cd1a 100644
--- a/src/compiler_llvm/jni_compiler.cc
+++ b/src/compiler_llvm/jni_compiler.cc
@@ -296,6 +296,12 @@
   // Verify the generated bitcode
   llvm::verifyFunction(*func_, llvm::PrintMessageAction);
 
+  // Add the memory usage approximation of the compilation unit
+  cunit_->AddMemUsageApproximation((sirt_size * 4 + 50) * 50);
+  // NOTE: We will emit 4 LLVM instructions per object argument,
+  // And about 50 instructions for other operations. (Some runtime support will be inlined.)
+  // Beside, we guess that we have to use 50 bytes to represent one LLVM instruction.
+
   CompiledMethod* compiled_method =
       new CompiledMethod(cunit_->GetInstructionSet(),
                          cunit_->GetElfIndex(),