From 90fdb82164946330388f8d8c27746b0cebcce59d Mon Sep 17 00:00:00 2001 From: "bmeurer@chromium.org" Date: Wed, 8 Jan 2014 11:40:56 +0000 Subject: [PATCH] Remove redundant NULL check. R=mvstanton@chromium.org Review URL: https://codereview.chromium.org/108363008 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18491 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/objects.cc b/src/objects.cc index ec3b713..c484eab 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -12778,7 +12778,7 @@ const double AllocationSite::kPretenureRatio = 0.60; bool AllocationSite::IsNestedSite() { ASSERT(FLAG_trace_track_allocation_sites); Object* current = GetHeap()->allocation_sites_list(); - while (current != NULL && current->IsAllocationSite()) { + while (current->IsAllocationSite()) { AllocationSite* current_site = AllocationSite::cast(current); if (current_site->nested_site() == this) { return true; -- 2.7.4