Bug 818245 - Part 1: Fix "NULL used in arithmetic" warnings in Assembler-arm.cpp. r=dvander

This commit is contained in:
Chris Peterson 2012-12-03 16:07:15 -08:00
parent 93eb2b92f1
commit 3014115f7e

View File

@ -2442,7 +2442,7 @@ AutoFlushCache::update(uintptr_t newStart, size_t len)
{
uintptr_t newStop = newStart + len;
used_ = true;
if (start_ == NULL) {
if (!start_) {
IonSpewCont(IonSpew_CacheFlush, ".");
start_ = newStart;
stop_ = newStop;
@ -2484,7 +2484,7 @@ AutoFlushCache::flushAnyway()
if (!used_)
return;
if (start_ != NULL) {
if (start_) {
JSC::ExecutableAllocator::cacheFlush((void*)start_, (size_t)(stop_ - start_ + sizeof(Instruction)));
} else {
JSC::ExecutableAllocator::cacheFlush(NULL, 0xff000000);