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