diff options
| author | 2012-06-26 18:27:13 -0700 | |
|---|---|---|
| committer | 2012-06-26 18:27:13 -0700 | |
| commit | 1fb3bd3559eb6fc34f7ba429adf9bb15c05939b0 (patch) | |
| tree | 641f864e2f970f05459e2aaa66b03593e5627ddf /src/compiler_llvm/stub_compiler.cc | |
| parent | 67054b57d056a2c3892a69efbde28a4189bc17b4 (diff) | |
| parent | 598c513a2737d872e22ea8bcedec61b92deff357 (diff) | |
Merge "Add CompiledCode for method and invoke stub." into ics-mr1-plus-art
Diffstat (limited to 'src/compiler_llvm/stub_compiler.cc')
| -rw-r--r-- | src/compiler_llvm/stub_compiler.cc | 6 |
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); } |