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

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

Issue 15993016: Remove the optimized construct stub. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments Created 7 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
« no previous file with comments | « src/heap.cc ('k') | src/ia32/stub-cache-ia32.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 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1203 SharedFunctionInfo::kConstructStubOffset); 1203 SharedFunctionInfo::kConstructStubOffset);
1204 SetInternalReference(obj, entry, 1204 SetInternalReference(obj, entry,
1205 "function_data", shared->function_data(), 1205 "function_data", shared->function_data(),
1206 SharedFunctionInfo::kFunctionDataOffset); 1206 SharedFunctionInfo::kFunctionDataOffset);
1207 SetInternalReference(obj, entry, 1207 SetInternalReference(obj, entry,
1208 "debug_info", shared->debug_info(), 1208 "debug_info", shared->debug_info(),
1209 SharedFunctionInfo::kDebugInfoOffset); 1209 SharedFunctionInfo::kDebugInfoOffset);
1210 SetInternalReference(obj, entry, 1210 SetInternalReference(obj, entry,
1211 "inferred_name", shared->inferred_name(), 1211 "inferred_name", shared->inferred_name(),
1212 SharedFunctionInfo::kInferredNameOffset); 1212 SharedFunctionInfo::kInferredNameOffset);
1213 SetInternalReference(obj, entry,
1214 "this_property_assignments",
1215 shared->this_property_assignments(),
1216 SharedFunctionInfo::kThisPropertyAssignmentsOffset);
1217 SetWeakReference(obj, entry, 1213 SetWeakReference(obj, entry,
1218 1, shared->initial_map(), 1214 1, shared->initial_map(),
1219 SharedFunctionInfo::kInitialMapOffset); 1215 SharedFunctionInfo::kInitialMapOffset);
1220 } 1216 }
1221 1217
1222 1218
1223 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { 1219 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) {
1224 HeapObject* obj = script; 1220 HeapObject* obj = script;
1225 SetInternalReference(obj, entry, 1221 SetInternalReference(obj, entry,
1226 "source", script->source(), 1222 "source", script->source(),
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
2658 2654
2659 2655
2660 void HeapSnapshotJSONSerializer::SortHashMap( 2656 void HeapSnapshotJSONSerializer::SortHashMap(
2661 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 2657 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
2662 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 2658 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
2663 sorted_entries->Add(p); 2659 sorted_entries->Add(p);
2664 sorted_entries->Sort(SortUsingEntryValue); 2660 sorted_entries->Sort(SortUsingEntryValue);
2665 } 2661 }
2666 2662
2667 } } // namespace v8::internal 2663 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698