Commit 7be4945c authored by hpayer@chromium.org's avatar hpayer@chromium.org

Removed unused ShouldTrackAllocationInfo method.

BUG=
R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/111723004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@18341 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent bdb77d24
......@@ -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());
......
......@@ -2117,8 +2117,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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment