Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: src/profile-generator.cc

Issue 7033024: Add bit_field3 to Map objects (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: review feedback Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698