From 7d5120389027aed26800cdc6011c70ef5ab2cd39 Mon Sep 17 00:00:00 2001 From: "ishell@chromium.org" Date: Wed, 30 Apr 2014 08:40:33 +0000 Subject: [PATCH] TODO in Dictionary resolved. R=yangguo@chromium.org Review URL: https://codereview.chromium.org/251043008 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@21076 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/objects.cc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/objects.cc b/src/objects.cc index 7f2b8df..3ce0bfc 100644 --- a/src/objects.cc +++ b/src/objects.cc @@ -15762,10 +15762,9 @@ Handle Dictionary::AtPut( // Check whether the dictionary should be extended. dictionary = EnsureCapacity(dictionary, 1, key); - - Handle k = Shape::AsHandle(dictionary->GetIsolate(), key); - // TODO(ishell): Figure out if it is necessary to call AsHandle() here. - USE(k); +#ifdef DEBUG + USE(Shape::AsHandle(dictionary->GetIsolate(), key)); +#endif PropertyDetails details = PropertyDetails(NONE, NORMAL, 0); AddEntry(dictionary, key, value, details, dictionary->Hash(key)); -- 2.7.4