From 598c513a2737d872e22ea8bcedec61b92deff357 Mon Sep 17 00:00:00 2001 From: Logan Chien Date: Sat, 28 Apr 2012 22:00:44 +0800 Subject: 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 --- src/compiler_llvm/stub_compiler.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/compiler_llvm/stub_compiler.cc') 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); } -- cgit v1.2.3-59-g8ed1b