summaryrefslogtreecommitdiff
path: root/src/compiler_llvm/stub_compiler.cc
diff options
context:
space:
mode:
author Logan Chien <loganchien@google.com> 2012-04-28 22:00:44 +0800
committer Shih-wei Liao <sliao@google.com> 2012-06-26 18:25:40 -0700
commit598c513a2737d872e22ea8bcedec61b92deff357 (patch)
treefdc1a975c3aeb2451a6081fe71b008e0ab49ea54 /src/compiler_llvm/stub_compiler.cc
parent271769a39b900a5f9f752cea318980e96367b55b (diff)
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
Diffstat (limited to 'src/compiler_llvm/stub_compiler.cc')
-rw-r--r--src/compiler_llvm/stub_compiler.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/compiler_llvm/stub_compiler.cc b/src/compiler_llvm/stub_compiler.cc
index 991dbe6f5d..0d64f0defa 100644
--- a/src/compiler_llvm/stub_compiler.cc
+++ b/src/compiler_llvm/stub_compiler.cc
@@ -193,7 +193,8 @@ CompiledInvokeStub* StubCompiler::CreateInvokeStub(bool is_static,
// 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 @@ CompiledInvokeStub* StubCompiler::CreateProxyStub(char const* shorty) {
// 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);
}