Reviewers: mvstanton,

Message:
Committed patchset #1 manually as r18341 (presubmit successful).

Description:
Removed unused ShouldTrackAllocationInfo method.

BUG=
[email protected]

Committed: https://code.google.com/p/v8/source/detail?r=18341

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

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

Affected files (+0, -15 lines):
  M src/objects-inl.h
  M src/objects.h


Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 1717a5f4b59a8cba4db473b0e0634e9c9c437b93..7c703aacceaa030ba8080ff308df26a8f620f141 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -1297,19 +1297,6 @@ void JSObject::ValidateElements() {
 }


-bool JSObject::ShouldTrackAllocationInfo() {
-  if (AllocationSite::CanTrack(map()->instance_type())) {
-    if (!IsJSArray()) {
-      return true;
-    }
-
-    return AllocationSite::GetMode(GetElementsKind()) ==
-        TRACK_ALLOCATION_SITE;
-  }
-  return false;
-}
-
-
 void AllocationSite::Initialize() {
   set_transition_info(Smi::FromInt(0));
   SetElementsKind(GetInitialFastElementsKind());
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index cc77e1977d3f54f3be1f97f7e15900b6e5c074ac..2fa03228dbd114a9b18e071b6edd3c8c87fdaa72 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -2116,8 +2116,6 @@ class JSObject: public JSReceiver {
   bool HasDictionaryArgumentsElements();
inline SeededNumberDictionary* element_dictionary(); // Gets slow elements.

-  inline bool ShouldTrackAllocationInfo();
-
   inline void set_map_and_elements(
       Map* map,
       FixedArrayBase* value,


--
--
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