OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1858 SetInternalReference(obj, entry, 1, cs->first()); | 1858 SetInternalReference(obj, entry, 1, cs->first()); |
1859 SetInternalReference(obj, entry, 2, cs->second()); | 1859 SetInternalReference(obj, entry, 2, cs->second()); |
1860 } | 1860 } |
1861 } else if (obj->IsMap()) { | 1861 } else if (obj->IsMap()) { |
1862 Map* map = Map::cast(obj); | 1862 Map* map = Map::cast(obj); |
1863 SetInternalReference(obj, entry, | 1863 SetInternalReference(obj, entry, |
1864 "prototype", map->prototype(), Map::kPrototypeOffset); | 1864 "prototype", map->prototype(), Map::kPrototypeOffset); |
1865 SetInternalReference(obj, entry, | 1865 SetInternalReference(obj, entry, |
1866 "constructor", map->constructor(), | 1866 "constructor", map->constructor(), |
1867 Map::kConstructorOffset); | 1867 Map::kConstructorOffset); |
1868 SetInternalReference(obj, entry, | 1868 if (!map->instance_descriptors()->IsEmpty()) { |
1869 "descriptors", map->instance_descriptors(), | 1869 SetInternalReference(obj, entry, |
1870 Map::kInstanceDescriptorsOffset); | 1870 "descriptors", map->instance_descriptors(), |
| 1871 Map::kInstanceDescriptorsOrBitField3Offset); |
| 1872 } |
1871 SetInternalReference(obj, entry, | 1873 SetInternalReference(obj, entry, |
1872 "code_cache", map->code_cache(), | 1874 "code_cache", map->code_cache(), |
1873 Map::kCodeCacheOffset); | 1875 Map::kCodeCacheOffset); |
1874 SetInternalReference(obj, entry, "map", obj->map(), HeapObject::kMapOffset); | 1876 SetInternalReference(obj, entry, "map", obj->map(), HeapObject::kMapOffset); |
1875 IndexedReferencesExtractor refs_extractor(this, obj, entry); | 1877 IndexedReferencesExtractor refs_extractor(this, obj, entry); |
1876 obj->Iterate(&refs_extractor); | 1878 obj->Iterate(&refs_extractor); |
1877 } else if (obj->IsSharedFunctionInfo()) { | 1879 } else if (obj->IsSharedFunctionInfo()) { |
1878 SharedFunctionInfo* shared = SharedFunctionInfo::cast(obj); | 1880 SharedFunctionInfo* shared = SharedFunctionInfo::cast(obj); |
1879 SetInternalReference(obj, entry, | 1881 SetInternalReference(obj, entry, |
1880 "name", shared->name(), | 1882 "name", shared->name(), |
(...skipping 1206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3087 | 3089 |
3088 | 3090 |
3089 String* GetConstructorNameForHeapProfile(JSObject* object) { | 3091 String* GetConstructorNameForHeapProfile(JSObject* object) { |
3090 if (object->IsJSFunction()) return HEAP->closure_symbol(); | 3092 if (object->IsJSFunction()) return HEAP->closure_symbol(); |
3091 return object->constructor_name(); | 3093 return object->constructor_name(); |
3092 } | 3094 } |
3093 | 3095 |
3094 } } // namespace v8::internal | 3096 } } // namespace v8::internal |
3095 | 3097 |
3096 #endif // ENABLE_LOGGING_AND_PROFILING | 3098 #endif // ENABLE_LOGGING_AND_PROFILING |
OLD | NEW |