Fix -Wsign-compare bugs with GCC 4.9.2

R=svenpanne@chromium.org
LOG=N
BUG=

Review URL: https://codereview.chromium.org/1105653002

Cr-Commit-Position: refs/heads/master@{#28039}
This commit is contained in:
wingo 2015-04-23 23:56:57 -07:00 committed by Commit bot
parent 41098dbb07
commit 09ae1c3ddc
2 changed files with 6 additions and 6 deletions

View File

@ -2218,7 +2218,7 @@ float GreedyAllocator::CalculateSpillWeight(LiveRange* range) {
// GetLiveRangeSize is DCHECK-ed to not be 0
unsigned range_size = GetLiveRangeSize(range);
DCHECK_NE(0, range_size);
DCHECK_NE(0U, range_size);
return static_cast<float>(use_count) / static_cast<float>(range_size);
}

View File

@ -2257,7 +2257,7 @@ void Deoptimizer::DoTranslateObject(TranslationIterator* iterator,
AddObjectTaggedValue(
reinterpret_cast<intptr_t>(isolate_->heap()->false_value()));
} else {
DCHECK_EQ(1, value);
DCHECK_EQ(1U, value);
AddObjectTaggedValue(
reinterpret_cast<intptr_t>(isolate_->heap()->true_value()));
}
@ -2367,7 +2367,7 @@ void Deoptimizer::DoTranslateObject(TranslationIterator* iterator,
AddObjectTaggedValue(
reinterpret_cast<intptr_t>(isolate_->heap()->false_value()));
} else {
DCHECK_EQ(1, value);
DCHECK_EQ(1U, value);
AddObjectTaggedValue(
reinterpret_cast<intptr_t>(isolate_->heap()->true_value()));
}
@ -2573,7 +2573,7 @@ void Deoptimizer::DoTranslateCommand(TranslationIterator* iterator,
output_offset,
reinterpret_cast<intptr_t>(isolate_->heap()->false_value()));
} else {
DCHECK_EQ(1, value);
DCHECK_EQ(1U, value);
output_[frame_index]->SetFrameSlot(
output_offset,
reinterpret_cast<intptr_t>(isolate_->heap()->true_value()));
@ -2699,7 +2699,7 @@ void Deoptimizer::DoTranslateCommand(TranslationIterator* iterator,
output_offset,
reinterpret_cast<intptr_t>(isolate_->heap()->false_value()));
} else {
DCHECK_EQ(1, value);
DCHECK_EQ(1U, value);
output_[frame_index]->SetFrameSlot(
output_offset,
reinterpret_cast<intptr_t>(isolate_->heap()->true_value()));
@ -3456,7 +3456,7 @@ Handle<Object> SlotRef::GetValue(Isolate* isolate) {
if (value == 0) {
return isolate->factory()->false_value();
} else {
DCHECK_EQ(1, value);
DCHECK_EQ(1U, value);
return isolate->factory()->true_value();
}
}