Reverting 2950.

It causes test shell test failures.
Review URL: http://codereview.chromium.org/222004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2961 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
ager@chromium.org 2009-09-23 13:32:11 +00:00
parent ab34189c30
commit 28772fbc57

View File

@ -67,10 +67,9 @@ JSObjectsCluster Clusterizer::Clusterize(HeapObject* obj, bool fine_grain) {
if (obj->IsJSObject()) { if (obj->IsJSObject()) {
JSObject* js_obj = JSObject::cast(obj); JSObject* js_obj = JSObject::cast(obj);
String* constructor = JSObject::cast(js_obj)->constructor_name(); String* constructor = JSObject::cast(js_obj)->constructor_name();
// Differentiate Array, Function, and Object instances. // Differentiate Object and Array instances.
if (fine_grain && (constructor == Heap::Object_symbol() || if (fine_grain && (constructor == Heap::Object_symbol() ||
constructor == Heap::Array_symbol() || constructor == Heap::Array_symbol())) {
constructor == Heap::function_class_symbol())) {
return JSObjectsCluster(constructor, obj); return JSObjectsCluster(constructor, obj);
} else { } else {
return JSObjectsCluster(constructor); return JSObjectsCluster(constructor);