Reviewers: Michael Starzinger, adamk,

Description:
Fix GCMole warning

[email protected]
LOG=N

Please review this at https://codereview.chromium.org/73123002/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+3, -2 lines):
  M src/objects.cc


Index: src/objects.cc
diff --git a/src/objects.cc b/src/objects.cc
index f063da7e748869fe3036ed926e11bd12eb1fa04c..388e5d1e828f8ad6a0196f7485ae7c733b104388 100644
--- a/src/objects.cc
+++ b/src/objects.cc
@@ -12231,7 +12231,8 @@ Handle<Object> JSObject::SetFastElement(Handle<JSObject> object,
         : FAST_ELEMENTS;

     UpdateAllocationSite(object, kind);
-    object->set_map(*GetElementsTransitionMap(object, kind));
+    Handle<Map> new_map = GetElementsTransitionMap(object, kind);
+    object->set_map(*new_map);
     ASSERT(IsFastObjectElementsKind(object->GetElementsKind()));
   }
   // Increase backing store capacity if that's been decided previously.
@@ -12912,7 +12913,7 @@ MaybeObject* JSObject::TransitionElementsKind(ElementsKind to_kind) {
     ASSERT(from_kind != TERMINAL_FAST_ELEMENTS_KIND);
     // No change is needed to the elements() buffer, the transition
     // only requires a map change.
- MaybeObject* maybe_new_map = GetElementsTransitionMap(isolate, to_kind);
+  MaybeObject* maybe_new_map = GetElementsTransitionMap(isolate, to_kind);
     Map* new_map;
     if (!maybe_new_map->To(&new_map)) return maybe_new_map;
     set_map(new_map);


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to