diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc index dd526cd47b..28007d47fa 100644 --- a/src/compiler/register-allocator.cc +++ b/src/compiler/register-allocator.cc @@ -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(use_count) / static_cast(range_size); } diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc index 1f32f1c2bf..13c282da9e 100644 --- a/src/deoptimizer.cc +++ b/src/deoptimizer.cc @@ -2257,7 +2257,7 @@ void Deoptimizer::DoTranslateObject(TranslationIterator* iterator, AddObjectTaggedValue( reinterpret_cast(isolate_->heap()->false_value())); } else { - DCHECK_EQ(1, value); + DCHECK_EQ(1U, value); AddObjectTaggedValue( reinterpret_cast(isolate_->heap()->true_value())); } @@ -2367,7 +2367,7 @@ void Deoptimizer::DoTranslateObject(TranslationIterator* iterator, AddObjectTaggedValue( reinterpret_cast(isolate_->heap()->false_value())); } else { - DCHECK_EQ(1, value); + DCHECK_EQ(1U, value); AddObjectTaggedValue( reinterpret_cast(isolate_->heap()->true_value())); } @@ -2573,7 +2573,7 @@ void Deoptimizer::DoTranslateCommand(TranslationIterator* iterator, output_offset, reinterpret_cast(isolate_->heap()->false_value())); } else { - DCHECK_EQ(1, value); + DCHECK_EQ(1U, value); output_[frame_index]->SetFrameSlot( output_offset, reinterpret_cast(isolate_->heap()->true_value())); @@ -2699,7 +2699,7 @@ void Deoptimizer::DoTranslateCommand(TranslationIterator* iterator, output_offset, reinterpret_cast(isolate_->heap()->false_value())); } else { - DCHECK_EQ(1, value); + DCHECK_EQ(1U, value); output_[frame_index]->SetFrameSlot( output_offset, reinterpret_cast(isolate_->heap()->true_value())); @@ -3456,7 +3456,7 @@ Handle 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(); } }