summaryrefslogtreecommitdiff
path: root/compiler/common_compiler_test.h
diff options
context:
space:
mode:
author Andreas Gampe <agampe@google.com> 2014-05-17 00:24:16 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-05-17 00:24:16 +0000
commit8969a34a46e8b97476c7cd58a3ab28be18d3f7eb (patch)
treef1688adff9a7c79872d32cbd913bbdc5f27cfe28 /compiler/common_compiler_test.h
parent229dd50d041917970045595e022ed98862b7d464 (diff)
parentf0972a410a0665dbe32bd96df09a572d69f9f3a3 (diff)
Merge "Fix generic jni issue in ArtMethod::GetQuickFrameInfo"
Diffstat (limited to 'compiler/common_compiler_test.h')
-rw-r--r--compiler/common_compiler_test.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/common_compiler_test.h b/compiler/common_compiler_test.h
index 586c442227..7a91e47fb1 100644
--- a/compiler/common_compiler_test.h
+++ b/compiler/common_compiler_test.h
@@ -130,6 +130,9 @@ static inline InstructionSetFeatures ParseFeatureList(std::string str) {
return result;
}
+// Normally the ClassLinker supplies this.
+extern "C" void art_quick_generic_jni_trampoline(mirror::ArtMethod*);
+
class CommonCompilerTest : public CommonRuntimeTest {
public:
// Create an OatMethod based on pointers (for unit tests).
@@ -217,7 +220,7 @@ class CommonCompilerTest : public CommonRuntimeTest {
oat_method.LinkMethod(method);
method->SetEntryPointFromInterpreter(interpreter::artInterpreterToInterpreterBridge);
} else {
- const void* method_code = GetQuickGenericJniTrampoline();
+ const void* method_code = reinterpret_cast<void*>(art_quick_generic_jni_trampoline);
OatFile::OatMethod oat_method = CreateOatMethod(method_code, nullptr);
oat_method.LinkMethod(method);