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

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

Issue 21593002: Propagate bailout reason to cpu profile node. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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/objects.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 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 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 SharedFunctionInfo::kConstructStubOffset); 1180 SharedFunctionInfo::kConstructStubOffset);
1181 SetInternalReference(obj, entry, 1181 SetInternalReference(obj, entry,
1182 "function_data", shared->function_data(), 1182 "function_data", shared->function_data(),
1183 SharedFunctionInfo::kFunctionDataOffset); 1183 SharedFunctionInfo::kFunctionDataOffset);
1184 SetInternalReference(obj, entry, 1184 SetInternalReference(obj, entry,
1185 "debug_info", shared->debug_info(), 1185 "debug_info", shared->debug_info(),
1186 SharedFunctionInfo::kDebugInfoOffset); 1186 SharedFunctionInfo::kDebugInfoOffset);
1187 SetInternalReference(obj, entry, 1187 SetInternalReference(obj, entry,
1188 "inferred_name", shared->inferred_name(), 1188 "inferred_name", shared->inferred_name(),
1189 SharedFunctionInfo::kInferredNameOffset); 1189 SharedFunctionInfo::kInferredNameOffset);
1190 SetInternalReference(obj, entry,
1191 "bailout_reason", shared->bailout_reason(),
1192 SharedFunctionInfo::kBailoutReasonOffset);
1190 SetWeakReference(obj, entry, 1193 SetWeakReference(obj, entry,
1191 1, shared->initial_map(), 1194 1, shared->initial_map(),
1192 SharedFunctionInfo::kInitialMapOffset); 1195 SharedFunctionInfo::kInitialMapOffset);
1193 } 1196 }
1194 1197
1195 1198
1196 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) { 1199 void V8HeapExplorer::ExtractScriptReferences(int entry, Script* script) {
1197 HeapObject* obj = script; 1200 HeapObject* obj = script;
1198 SetInternalReference(obj, entry, 1201 SetInternalReference(obj, entry,
1199 "source", script->source(), 1202 "source", script->source(),
(...skipping 1493 matching lines...) Expand 10 before | Expand all | Expand 10 after
2693 2696
2694 2697
2695 void HeapSnapshotJSONSerializer::SortHashMap( 2698 void HeapSnapshotJSONSerializer::SortHashMap(
2696 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 2699 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
2697 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 2700 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
2698 sorted_entries->Add(p); 2701 sorted_entries->Add(p);
2699 sorted_entries->Sort(SortUsingEntryValue); 2702 sorted_entries->Sort(SortUsingEntryValue);
2700 } 2703 }
2701 2704
2702 } } // namespace v8::internal 2705 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698