summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
author TDYa127 <tdy@google.com> 2012-04-01 15:11:43 -0700
committer Shih-wei Liao <sliao@google.com> 2012-04-01 21:35:39 -0700
commit3db5285b363553ea81bd8dd88ec448b66cf33d71 (patch)
treea077922e6fe93d197dffc5ef196446e12e9fe1e4 /src
parent2d7d319eb9161a6520709e33eaaa4fbb038d3019 (diff)
Don't check gcmap while using LLVM compiler.
Change-Id: If7b7113e3dd20b42b34cde1267cfe80e9122845b
Diffstat (limited to 'src')
-rw-r--r--src/class_linker.cc2
-rw-r--r--src/oatdump.cc9
-rw-r--r--src/thread.cc2
3 files changed, 11 insertions, 2 deletions
diff --git a/src/class_linker.cc b/src/class_linker.cc
index c94347d7cc..b9dbf89fda 100644
--- a/src/class_linker.cc
+++ b/src/class_linker.cc
@@ -1954,7 +1954,7 @@ void ClassLinker::LookupClasses(const char* descriptor, std::vector<Class*>& cla
}
}
-#ifndef NDEBUG
+#if !defined(NDEBUG) && !defined(ART_USE_LLVM_COMPILER)
static void CheckMethodsHaveGcMaps(Class* klass) {
if (!Runtime::Current()->IsStarted()) {
return;
diff --git a/src/oatdump.cc b/src/oatdump.cc
index 2f0197c69a..01b83394d9 100644
--- a/src/oatdump.cc
+++ b/src/oatdump.cc
@@ -550,6 +550,7 @@ class OatDumper {
os << "}" << std::endl << std::flush;
}
+#if !defined(ART_USE_LLVM_COMPILER)
void DumpCode(std::ostream& os, const void* code, const uint32_t* raw_mapping_table,
const DexFile& dex_file, const DexFile::CodeItem* code_item) {
if (code == NULL) {
@@ -597,6 +598,12 @@ class OatDumper {
disassembler_->Dump(os, native_pc, end_native_pc);
}
}
+#else
+ void DumpCode(std::ostream&, const void*, const uint32_t*,
+ const DexFile&, const DexFile::CodeItem*) {
+ // TODO: Dump code for the LLVM side.
+ }
+#endif
const std::string host_prefix_;
const OatFile& oat_file_;
@@ -882,8 +889,10 @@ class ImageDumper {
DCHECK_EQ(0U, method->GetGcMapLength()) << PrettyMethod(method);
DCHECK(method->GetMappingTable() == NULL) << PrettyMethod(method);
} else {
+#if !defined(ART_USE_LLVM_COMPILER)
DCHECK(method->GetGcMap() != NULL) << PrettyMethod(method);
DCHECK_NE(0U, method->GetGcMapLength()) << PrettyMethod(method);
+#endif
const DexFile::CodeItem* code_item = MethodHelper(method).GetCodeItem();
size_t dex_instruction_bytes = code_item->insns_size_in_code_units_ * 2;
diff --git a/src/thread.cc b/src/thread.cc
index d8de7d0348..37d366d215 100644
--- a/src/thread.cc
+++ b/src/thread.cc
@@ -1594,7 +1594,7 @@ Method* Thread::GetCurrentMethod(uintptr_t* pc, Method*** sp) const {
#else
Method* Thread::GetCurrentMethod(uintptr_t*, Method***) const {
ShadowFrame* frame = top_shadow_frame_;
- while(frame->GetMethod()->IsNative()) {
+ while (frame->GetMethod()->IsNative()) {
frame = frame->GetLink();
}
return frame->GetMethod();