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

Side by Side Diff: src/profile-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/profile-generator.h ('k') | src/profile-generator-inl.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 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 size += sizeof(HashMap::Entry) * names_.capacity(); 126 size += sizeof(HashMap::Entry) * names_.capacity();
127 for (HashMap::Entry* p = names_.Start(); p != NULL; p = names_.Next(p)) { 127 for (HashMap::Entry* p = names_.Start(); p != NULL; p = names_.Next(p)) {
128 size += strlen(reinterpret_cast<const char*>(p->value)) + 1; 128 size += strlen(reinterpret_cast<const char*>(p->value)) + 1;
129 } 129 }
130 return size; 130 return size;
131 } 131 }
132 132
133 133
134 const char* const CodeEntry::kEmptyNamePrefix = ""; 134 const char* const CodeEntry::kEmptyNamePrefix = "";
135 const char* const CodeEntry::kEmptyResourceName = ""; 135 const char* const CodeEntry::kEmptyResourceName = "";
136 const char* const CodeEntry::kEmptyBailoutReason = "";
136 137
137 138
138 CodeEntry::~CodeEntry() { 139 CodeEntry::~CodeEntry() {
139 delete no_frame_ranges_; 140 delete no_frame_ranges_;
140 } 141 }
141 142
142 143
143 void CodeEntry::CopyData(const CodeEntry& source) { 144 void CodeEntry::CopyData(const CodeEntry& source) {
144 tag_ = source.tag_; 145 tag_ = source.tag_;
145 name_prefix_ = source.name_prefix_; 146 name_prefix_ = source.name_prefix_;
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 if (no_symbolized_entries) { 704 if (no_symbolized_entries) {
704 *entry++ = EntryForVMState(sample.state); 705 *entry++ = EntryForVMState(sample.state);
705 } 706 }
706 } 707 }
707 708
708 profiles_->AddPathToCurrentProfiles(entries); 709 profiles_->AddPathToCurrentProfiles(entries);
709 } 710 }
710 711
711 712
712 } } // namespace v8::internal 713 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/profile-generator.h ('k') | src/profile-generator-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698