diff options
Diffstat (limited to 'compiler/jni/quick/jni_compiler.cc')
| -rw-r--r-- | compiler/jni/quick/jni_compiler.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/jni/quick/jni_compiler.cc b/compiler/jni/quick/jni_compiler.cc index 9f439eb991..5a2217076b 100644 --- a/compiler/jni/quick/jni_compiler.cc +++ b/compiler/jni/quick/jni_compiler.cc @@ -52,7 +52,7 @@ static void SetNativeParameter(Assembler* jni_asm, // registers, a reference to the method object is supplied as part of this // convention. // -CompiledMethod* ArtJniCompileMethodInternal(CompilerDriver& compiler, +CompiledMethod* ArtJniCompileMethodInternal(CompilerDriver* driver, uint32_t access_flags, uint32_t method_idx, const DexFile& dex_file) { const bool is_native = (access_flags & kAccNative) != 0; @@ -60,7 +60,7 @@ CompiledMethod* ArtJniCompileMethodInternal(CompilerDriver& compiler, const bool is_static = (access_flags & kAccStatic) != 0; const bool is_synchronized = (access_flags & kAccSynchronized) != 0; const char* shorty = dex_file.GetMethodShorty(dex_file.GetMethodId(method_idx)); - InstructionSet instruction_set = compiler.GetInstructionSet(); + InstructionSet instruction_set = driver->GetInstructionSet(); if (instruction_set == kThumb2) { instruction_set = kArm; } @@ -423,7 +423,7 @@ CompiledMethod* ArtJniCompileMethodInternal(CompilerDriver& compiler, std::vector<uint8_t> managed_code(cs); MemoryRegion code(&managed_code[0], managed_code.size()); __ FinalizeInstructions(code); - return new CompiledMethod(compiler, + return new CompiledMethod(driver, instruction_set, managed_code, frame_size, @@ -536,7 +536,7 @@ static void SetNativeParameter(Assembler* jni_asm, } // namespace art -extern "C" art::CompiledMethod* ArtQuickJniCompileMethod(art::CompilerDriver& compiler, +extern "C" art::CompiledMethod* ArtQuickJniCompileMethod(art::CompilerDriver* compiler, uint32_t access_flags, uint32_t method_idx, const art::DexFile& dex_file) { return ArtJniCompileMethodInternal(compiler, access_flags, method_idx, dex_file); |