From 65843dbf3af291c4c20d9badd9306f487dd2b76e Mon Sep 17 00:00:00 2001 From: "hpayer@chromium.org" Date: Wed, 28 Aug 2013 12:35:07 +0000 Subject: [PATCH] Insert allocation memento clear instructions after the dominating allocate instruction. BUG= R=mstarzinger@chromium.org Review URL: https://codereview.chromium.org/23672004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16393 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/hydrogen-instructions.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc index 0bd7b79..a9adfc1 100644 --- a/src/hydrogen-instructions.cc +++ b/src/hydrogen-instructions.cc @@ -3323,12 +3323,12 @@ void HAllocate::HandleSideEffectDominator(GVNFlag side_effect, } else { // TODO(hpayer): This is a short-term hack to make allocation mementos // work again in new space. - ClearNextMapWord(original_object_size); + dominator_allocate->ClearNextMapWord(original_object_size); } #else // TODO(hpayer): This is a short-term hack to make allocation mementos // work again in new space. - ClearNextMapWord(original_object_size); + dominator_allocate->ClearNextMapWord(original_object_size); #endif dominator_allocate->clear_next_map_word_ = clear_next_map_word_; -- 2.7.4