diff options
author | Kenny Root <kroot@google.com> | 2014-05-13 22:03:04 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-05-13 22:03:05 +0000 |
commit | 20cdc069f06f34828e51bcf89597bebe5df445d5 (patch) | |
tree | 916f48e3aa5c688fb5b0642f4a6963f595b64a93 /compiler/driver | |
parent | b720c4b7c6e484c9d0740d805c8d7c3dbeb2a545 (diff) | |
parent | d5185344e19d9feb7ac268369e0af6a467d1cb48 (diff) | |
download | art-20cdc069f06f34828e51bcf89597bebe5df445d5.zip art-20cdc069f06f34828e51bcf89597bebe5df445d5.tar.gz art-20cdc069f06f34828e51bcf89597bebe5df445d5.tar.bz2 |
Merge "Changes for vogar compatibility"
Diffstat (limited to 'compiler/driver')
-rw-r--r-- | compiler/driver/compiler_driver.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 547b9f7..55ba643 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -377,8 +377,10 @@ CompilerDriver::CompilerDriver(const CompilerOptions* compiler_options, compiler_->Init(); CHECK(!Runtime::Current()->IsStarted()); - if (!image_) { - CHECK(image_classes_.get() == NULL); + if (image_) { + CHECK(image_classes_.get() != nullptr); + } else { + CHECK(image_classes_.get() == nullptr); } // Are we generating CFI information? @@ -592,7 +594,7 @@ void CompilerDriver::Resolve(jobject class_loader, const std::vector<const DexFi ThreadPool* thread_pool, TimingLogger* timings) { for (size_t i = 0; i != dex_files.size(); ++i) { const DexFile* dex_file = dex_files[i]; - CHECK(dex_file != NULL); + CHECK(dex_file != nullptr); ResolveDexFile(class_loader, *dex_file, thread_pool, timings); } } @@ -690,6 +692,7 @@ static bool RecordImageClassesVisitor(mirror::Class* klass, void* arg) // Make a list of descriptors for classes to include in the image void CompilerDriver::LoadImageClasses(TimingLogger* timings) LOCKS_EXCLUDED(Locks::mutator_lock_) { + CHECK(timings != nullptr); if (!IsImage()) { return; } @@ -699,6 +702,7 @@ void CompilerDriver::LoadImageClasses(TimingLogger* timings) Thread* self = Thread::Current(); ScopedObjectAccess soa(self); ClassLinker* class_linker = Runtime::Current()->GetClassLinker(); + CHECK(image_classes_.get() != nullptr); for (auto it = image_classes_->begin(), end = image_classes_->end(); it != end;) { const std::string& descriptor(*it); StackHandleScope<1> hs(self); |