diff options
| -rw-r--r-- | src/compiler_llvm/runtime_support_llvm.cc | 4 | ||||
| -rw-r--r-- | src/object.cc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/src/compiler_llvm/runtime_support_llvm.cc b/src/compiler_llvm/runtime_support_llvm.cc index 917b57edb3..59b8efbfb3 100644 --- a/src/compiler_llvm/runtime_support_llvm.cc +++ b/src/compiler_llvm/runtime_support_llvm.cc @@ -419,7 +419,7 @@ Object* art_decode_jobject_in_thread(Thread* thread, jobject obj) { } //---------------------------------------------------------------------------- -// RTTI +// Type checking, in the nature of casting //---------------------------------------------------------------------------- int32_t art_is_assignable_from_code(const Class* dest_type, const Class* src_type) { @@ -429,7 +429,7 @@ int32_t art_is_assignable_from_code(const Class* dest_type, const Class* src_typ } void art_check_cast_from_code(const Class* dest_type, const Class* src_type) { - DCHECK(dest_type->IsClass()) << PrettyClass(dest_type); +DCHECK(dest_type->IsClass()) << PrettyClass(dest_type); DCHECK(src_type->IsClass()) << PrettyClass(src_type); if (UNLIKELY(!dest_type->IsAssignableFrom(src_type))) { Thread::Current()->ThrowNewExceptionF("Ljava/lang/ClassCastException;", diff --git a/src/object.cc b/src/object.cc index ad0f6b9bc4..2cf8a6c71d 100644 --- a/src/object.cc +++ b/src/object.cc @@ -559,8 +559,10 @@ uint32_t Method::FindCatchBlock(Class* exception_type, uint32_t dex_pc) const { void Method::Invoke(Thread* self, Object* receiver, JValue* args, JValue* result) const { // Push a transition back into managed code onto the linked list in thread. CHECK_EQ(Thread::kRunnable, self->GetState()); +#if !defined(ART_USE_LLVM_COMPILER) NativeToManagedRecord record; self->PushNativeToManagedRecord(&record); +#endif // Call the invoke stub associated with the method. // Pass everything as arguments. @@ -588,8 +590,10 @@ void Method::Invoke(Thread* self, Object* receiver, JValue* args, JValue* result } } +#if !defined(ART_USE_LLVM_COMPILER) // Pop transition. self->PopNativeToManagedRecord(record); +#endif } bool Method::IsRegistered() const { |