| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |