diff options
| author | 2012-08-15 00:02:05 -0700 | |
|---|---|---|
| committer | 2012-08-15 04:01:15 -0700 | |
| commit | cd05a6274782c50a2b990c18b5f8d5ae5e44d509 (patch) | |
| tree | 1a202f979454f8b6a1e4294776d52d20c526efc0 /src/compiler_llvm/jni_compiler.cc | |
| parent | ef0a2ca1f719f64af59db08861edb73739bf5220 (diff) | |
Global lock levels for the LLVM side.
Change-Id: Id2807c8775686bc38f79e13c097fadda2d96d042
Diffstat (limited to 'src/compiler_llvm/jni_compiler.cc')
| -rw-r--r-- | src/compiler_llvm/jni_compiler.cc | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/compiler_llvm/jni_compiler.cc b/src/compiler_llvm/jni_compiler.cc index b96e0be5c4..1f687f6f20 100644 --- a/src/compiler_llvm/jni_compiler.cc +++ b/src/compiler_llvm/jni_compiler.cc @@ -47,14 +47,7 @@ JniCompiler::JniCompiler(CompilationUnit* cunit, oat_compilation_unit_(oat_compilation_unit), access_flags_(oat_compilation_unit->access_flags_), method_idx_(oat_compilation_unit->method_idx_), - class_linker_(oat_compilation_unit->class_linker_), - class_loader_(oat_compilation_unit->class_loader_), - dex_cache_(oat_compilation_unit->dex_cache_), - dex_file_(oat_compilation_unit->dex_file_), - method_(dex_cache_->GetResolvedMethod(method_idx_)) { - - // Check: Ensure that the method is resolved - CHECK_NE(method_, static_cast<art::Method*>(NULL)); + dex_file_(oat_compilation_unit->dex_file_) { // Check: Ensure that JNI compiler will only get "native" method CHECK((access_flags_ & kAccNative) != 0); @@ -272,9 +265,11 @@ void JniCompiler::CreateFunction() { // LLVM function name std::string func_name(ElfFuncName(cunit_->GetIndex())); + const bool is_static = (access_flags_ & kAccStatic) != 0; + // Get function type llvm::FunctionType* func_type = - GetFunctionType(method_idx_, method_->IsStatic(), false); + GetFunctionType(method_idx_, is_static, false); // Create function func_ = llvm::Function::Create(func_type, llvm::Function::ExternalLinkage, |