diff options
| author | 2012-04-16 19:11:28 +0800 | |
|---|---|---|
| committer | 2012-04-16 04:56:13 -0700 | |
| commit | 110bcbafbbc4c27bf31d32732aab06f900c02653 (patch) | |
| tree | c7467d4871b658c06f5ba7c527cb2847ae28913a /src/compiler_llvm/method_compiler.cc | |
| parent | fd8ea97f64fb6d32cbfe35729b816a22dfa18224 (diff) | |
Update frame size after the bitcode is translated into machine code.
Change-Id: I59923a6cb1a1079d9cfe6d995fe0067ee1c49e80
Diffstat (limited to 'src/compiler_llvm/method_compiler.cc')
| -rw-r--r-- | src/compiler_llvm/method_compiler.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/compiler_llvm/method_compiler.cc b/src/compiler_llvm/method_compiler.cc index fc9c4d8c4f..153d99a93b 100644 --- a/src/compiler_llvm/method_compiler.cc +++ b/src/compiler_llvm/method_compiler.cc @@ -3681,9 +3681,14 @@ CompiledMethod *MethodCompiler::Compile() { // Dex file. Besides, we have to convert the code unit into bytes. // Thus, we got our magic number 9. - return new CompiledMethod(cunit_->GetInstructionSet(), - cunit_->GetElfIndex(), - elf_func_idx_); + CompiledMethod* compiled_method = + new CompiledMethod(cunit_->GetInstructionSet(), + cunit_->GetElfIndex(), + elf_func_idx_); + + cunit_->RegisterCompiledMethod(func_, compiled_method); + + return compiled_method; } |