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

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

Issue 8506004: Made PropertyType handling even more explicit. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 1 month 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/property.h » ('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 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 js_obj, entry, 2105 js_obj, entry,
2106 descs->GetKey(i), js_obj->FastPropertyAt(index)); 2106 descs->GetKey(i), js_obj->FastPropertyAt(index));
2107 } 2107 }
2108 break; 2108 break;
2109 } 2109 }
2110 case CONSTANT_FUNCTION: 2110 case CONSTANT_FUNCTION:
2111 SetPropertyReference( 2111 SetPropertyReference(
2112 js_obj, entry, 2112 js_obj, entry,
2113 descs->GetKey(i), descs->GetConstantFunction(i)); 2113 descs->GetKey(i), descs->GetConstantFunction(i));
2114 break; 2114 break;
2115 default: ; 2115 case NORMAL: // only in slow mode
2116 case HANDLER: // only in lookup results, not in descriptors
2117 case INTERCEPTOR: // only in lookup results, not in descriptors
2118 case MAP_TRANSITION: // we do not care about transitions here...
2119 case ELEMENTS_TRANSITION:
2120 case CONSTANT_TRANSITION:
2121 case NULL_DESCRIPTOR: // ... and not about "holes"
2122 break;
2123 // TODO(svenpanne): Should we really ignore accessors here?
Kevin Millikin (Chromium) 2011/11/09 12:39:54 That's a good question. They are really a referen
2124 case CALLBACKS:
2125 break;
2116 } 2126 }
2117 } 2127 }
2118 } else { 2128 } else {
2119 StringDictionary* dictionary = js_obj->property_dictionary(); 2129 StringDictionary* dictionary = js_obj->property_dictionary();
2120 int length = dictionary->Capacity(); 2130 int length = dictionary->Capacity();
2121 for (int i = 0; i < length; ++i) { 2131 for (int i = 0; i < length; ++i) {
2122 Object* k = dictionary->KeyAt(i); 2132 Object* k = dictionary->KeyAt(i);
2123 if (dictionary->IsKey(k)) { 2133 if (dictionary->IsKey(k)) {
2124 Object* target = dictionary->ValueAt(i); 2134 Object* target = dictionary->ValueAt(i);
2125 SetPropertyReference( 2135 SetPropertyReference(
(...skipping 1281 matching lines...) Expand 10 before | Expand all | Expand 10 after
3407 3417
3408 3418
3409 void HeapSnapshotJSONSerializer::SortHashMap( 3419 void HeapSnapshotJSONSerializer::SortHashMap(
3410 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 3420 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
3411 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 3421 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
3412 sorted_entries->Add(p); 3422 sorted_entries->Add(p);
3413 sorted_entries->Sort(SortUsingEntryValue); 3423 sorted_entries->Sort(SortUsingEntryValue);
3414 } 3424 }
3415 3425
3416 } } // namespace v8::internal 3426 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698