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

Side by Side Diff: src/heap-snapshot-generator.cc

Issue 14850006: Use mutable heapnumbers to store doubles in fields. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Ported to ARM and x64 Created 7 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/flag-definitions.h ('k') | src/hydrogen.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after
1325 NULL, 1325 NULL,
1326 js_obj->GetInObjectPropertyOffset(index)); 1326 js_obj->GetInObjectPropertyOffset(index));
1327 } else { 1327 } else {
1328 TagObject(value, "(hidden properties)"); 1328 TagObject(value, "(hidden properties)");
1329 SetInternalReference( 1329 SetInternalReference(
1330 js_obj, entry, 1330 js_obj, entry,
1331 "hidden_properties", value, 1331 "hidden_properties", value,
1332 js_obj->GetInObjectPropertyOffset(index)); 1332 js_obj->GetInObjectPropertyOffset(index));
1333 } 1333 }
1334 } else { 1334 } else {
1335 Object* value = js_obj->FastPropertyAt(index); 1335 Object* value = js_obj->RawFastPropertyAt(index);
1336 if (k != heap_->hidden_string()) { 1336 if (k != heap_->hidden_string()) {
1337 SetPropertyReference(js_obj, entry, k, value); 1337 SetPropertyReference(js_obj, entry, k, value);
1338 } else { 1338 } else {
1339 TagObject(value, "(hidden properties)"); 1339 TagObject(value, "(hidden properties)");
1340 SetInternalReference(js_obj, entry, "hidden_properties", value); 1340 SetInternalReference(js_obj, entry, "hidden_properties", value);
1341 } 1341 }
1342 } 1342 }
1343 break; 1343 break;
1344 } 1344 }
1345 case CONSTANT_FUNCTION: 1345 case CONSTANT_FUNCTION:
(...skipping 1313 matching lines...) Expand 10 before | Expand all | Expand 10 after
2659 2659
2660 2660
2661 void HeapSnapshotJSONSerializer::SortHashMap( 2661 void HeapSnapshotJSONSerializer::SortHashMap(
2662 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 2662 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
2663 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 2663 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
2664 sorted_entries->Add(p); 2664 sorted_entries->Add(p);
2665 sorted_entries->Sort(SortUsingEntryValue); 2665 sorted_entries->Sort(SortUsingEntryValue);
2666 } 2666 }
2667 2667
2668 } } // namespace v8::internal 2668 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698