Add CompiledCode for method and invoke stub.
CompiledCode is the base class of CompiledMethod and
CompiledInvokeStub with a code array and an
instruction set field.
Change-Id: I4eca9b9b682b14732c8fa80d44587a7e621ab54d
diff --git a/src/compiler_llvm/stub_compiler.cc b/src/compiler_llvm/stub_compiler.cc
index 991dbe6..0d64f0d 100644
--- a/src/compiler_llvm/stub_compiler.cc
+++ b/src/compiler_llvm/stub_compiler.cc
@@ -193,7 +193,8 @@
// store ret_addr, and ret_void. Beside, we guess that we have to use
// 50 bytes to represent one LLVM instruction.
- return new CompiledInvokeStub(cunit_->GetElfIndex(), elf_func_idx);
+ return new CompiledInvokeStub(cunit_->GetInstructionSet(),
+ cunit_->GetElfIndex(), elf_func_idx);
}
@@ -268,7 +269,8 @@
// Add the memory usage approximation of the compilation unit
cunit_->AddMemUsageApproximation((shorty_size + 2) * 50);
- return new CompiledInvokeStub(cunit_->GetElfIndex(), elf_func_idx);
+ return new CompiledInvokeStub(cunit_->GetInstructionSet(),
+ cunit_->GetElfIndex(), elf_func_idx);
}