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

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

Issue 10444055: Promoting elements transitions to their own field. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: full patch Created 8 years, 6 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2159 matching lines...) Expand 10 before | Expand all | Expand 10 after
2170 SetPropertyReference(js_obj, entry, descs->GetKey(i), 2170 SetPropertyReference(js_obj, entry, descs->GetKey(i),
2171 setter, "set-%s"); 2171 setter, "set-%s");
2172 } 2172 }
2173 } 2173 }
2174 break; 2174 break;
2175 } 2175 }
2176 case NORMAL: // only in slow mode 2176 case NORMAL: // only in slow mode
2177 case HANDLER: // only in lookup results, not in descriptors 2177 case HANDLER: // only in lookup results, not in descriptors
2178 case INTERCEPTOR: // only in lookup results, not in descriptors 2178 case INTERCEPTOR: // only in lookup results, not in descriptors
2179 case MAP_TRANSITION: // we do not care about transitions here... 2179 case MAP_TRANSITION: // we do not care about transitions here...
2180 case ELEMENTS_TRANSITION:
2181 case CONSTANT_TRANSITION: 2180 case CONSTANT_TRANSITION:
2182 case NULL_DESCRIPTOR: // ... and not about "holes" 2181 case NULL_DESCRIPTOR: // ... and not about "holes"
2183 break; 2182 break;
2184 } 2183 }
2185 } 2184 }
2186 } else { 2185 } else {
2187 StringDictionary* dictionary = js_obj->property_dictionary(); 2186 StringDictionary* dictionary = js_obj->property_dictionary();
2188 int length = dictionary->Capacity(); 2187 int length = dictionary->Capacity();
2189 for (int i = 0; i < length; ++i) { 2188 for (int i = 0; i < length; ++i) {
2190 Object* k = dictionary->KeyAt(i); 2189 Object* k = dictionary->KeyAt(i);
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
3523 3522
3524 3523
3525 void HeapSnapshotJSONSerializer::SortHashMap( 3524 void HeapSnapshotJSONSerializer::SortHashMap(
3526 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 3525 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
3527 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 3526 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
3528 sorted_entries->Add(p); 3527 sorted_entries->Add(p);
3529 sorted_entries->Sort(SortUsingEntryValue); 3528 sorted_entries->Sort(SortUsingEntryValue);
3530 } 3529 }
3531 3530
3532 } } // namespace v8::internal 3531 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698