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

Side by Side Diff: src/profiler/profile-generator.cc

Issue 2001073002: [build] Fix a clang warning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 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
« no previous file with comments | « src/profiler/heap-snapshot-generator.cc ('k') | src/s390/disasm-s390.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/profiler/profile-generator.h" 5 #include "src/profiler/profile-generator.h"
6 6
7 #include "src/ast/scopeinfo.h" 7 #include "src/ast/scopeinfo.h"
8 #include "src/base/adapters.h" 8 #include "src/base/adapters.h"
9 #include "src/debug/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/deoptimizer.h" 10 #include "src/deoptimizer.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 CodeTree::Locator locator; 442 CodeTree::Locator locator;
443 if (!tree_.Find(from, &locator)) return; 443 if (!tree_.Find(from, &locator)) return;
444 CodeEntryInfo entry = locator.value(); 444 CodeEntryInfo entry = locator.value();
445 tree_.Remove(from); 445 tree_.Remove(from);
446 AddCode(to, entry.entry, entry.size); 446 AddCode(to, entry.entry, entry.size);
447 } 447 }
448 448
449 449
450 void CodeMap::CodeTreePrinter::Call( 450 void CodeMap::CodeTreePrinter::Call(
451 const Address& key, const CodeMap::CodeEntryInfo& value) { 451 const Address& key, const CodeMap::CodeEntryInfo& value) {
452 base::OS::Print("%p %5d %s\n", key, value.size, value.entry->name()); 452 base::OS::Print("%p %5d %s\n", static_cast<void*>(key), value.size,
453 value.entry->name());
453 } 454 }
454 455
455 456
456 void CodeMap::Print() { 457 void CodeMap::Print() {
457 CodeTreePrinter printer; 458 CodeTreePrinter printer;
458 tree_.ForEach(&printer); 459 tree_.ForEach(&printer);
459 } 460 }
460 461
461 462
462 CpuProfilesCollection::CpuProfilesCollection(Heap* heap) 463 CpuProfilesCollection::CpuProfilesCollection(Heap* heap)
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 case EXTERNAL: 715 case EXTERNAL:
715 return program_entry_; 716 return program_entry_;
716 case IDLE: 717 case IDLE:
717 return idle_entry_; 718 return idle_entry_;
718 default: return NULL; 719 default: return NULL;
719 } 720 }
720 } 721 }
721 722
722 } // namespace internal 723 } // namespace internal
723 } // namespace v8 724 } // namespace v8
OLDNEW
« no previous file with comments | « src/profiler/heap-snapshot-generator.cc ('k') | src/s390/disasm-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698