From: hpayer@chromium.org Date: Wed, 18 Dec 2013 17:16:25 +0000 (+0000) Subject: Use constant 0 instead of constant null when clearing map words during allocation... X-Git-Tag: upstream/4.7.83~11346 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b0f86446996f871f439a37553c473bb41a29c6c2;p=platform%2Fupstream%2Fv8.git Use constant 0 instead of constant null when clearing map words during allocation folding. BUG= R=bmeurer@chromium.org Review URL: https://codereview.chromium.org/112673002 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18356 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc index 43235c2..46893e8 100644 --- a/src/hydrogen-instructions.cc +++ b/src/hydrogen-instructions.cc @@ -3640,7 +3640,7 @@ void HAllocate::ClearNextMapWord(int offset) { HObjectAccess access = HObjectAccess::ForJSObjectOffset(offset); HStoreNamedField* clear_next_map = HStoreNamedField::New(zone, context(), this, access, - block()->graph()->GetConstantNull()); + block()->graph()->GetConstant0()); clear_next_map->ClearAllSideEffects(); clear_next_map->InsertAfter(this); }