| 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/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #include "src/profile-generator-inl.h" | 7 #include "src/profile-generator-inl.h" |
| 8 | 8 |
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/debug/debug.h" | 10 #include "src/debug/debug.h" |
| 11 #include "src/deoptimizer.h" | 11 #include "src/deoptimizer.h" |
| 12 #include "src/global-handles.h" | 12 #include "src/global-handles.h" |
| 13 #include "src/sampler.h" | 13 #include "src/sampler.h" |
| 14 #include "src/scopeinfo.h" | 14 #include "src/scopeinfo.h" |
| 15 #include "src/splay-tree-inl.h" |
| 15 #include "src/unicode.h" | 16 #include "src/unicode.h" |
| 16 | 17 |
| 17 namespace v8 { | 18 namespace v8 { |
| 18 namespace internal { | 19 namespace internal { |
| 19 | 20 |
| 20 | 21 |
| 21 JITLineInfoTable::JITLineInfoTable() {} | 22 JITLineInfoTable::JITLineInfoTable() {} |
| 22 | 23 |
| 23 | 24 |
| 24 JITLineInfoTable::~JITLineInfoTable() {} | 25 JITLineInfoTable::~JITLineInfoTable() {} |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 end_time_ = base::TimeTicks::HighResolutionNow(); | 371 end_time_ = base::TimeTicks::HighResolutionNow(); |
| 371 } | 372 } |
| 372 | 373 |
| 373 | 374 |
| 374 void CpuProfile::Print() { | 375 void CpuProfile::Print() { |
| 375 base::OS::Print("[Top down]:\n"); | 376 base::OS::Print("[Top down]:\n"); |
| 376 top_down_.Print(); | 377 top_down_.Print(); |
| 377 } | 378 } |
| 378 | 379 |
| 379 | 380 |
| 381 CodeMap::~CodeMap() {} |
| 382 |
| 383 |
| 380 const CodeMap::CodeTreeConfig::Key CodeMap::CodeTreeConfig::kNoKey = NULL; | 384 const CodeMap::CodeTreeConfig::Key CodeMap::CodeTreeConfig::kNoKey = NULL; |
| 381 | 385 |
| 382 | 386 |
| 383 void CodeMap::AddCode(Address addr, CodeEntry* entry, unsigned size) { | 387 void CodeMap::AddCode(Address addr, CodeEntry* entry, unsigned size) { |
| 384 DeleteAllCoveredCode(addr, addr + size); | 388 DeleteAllCoveredCode(addr, addr + size); |
| 385 CodeTree::Locator locator; | 389 CodeTree::Locator locator; |
| 386 tree_.Insert(addr, &locator); | 390 tree_.Insert(addr, &locator); |
| 387 locator.set_value(CodeEntryInfo(entry, size)); | 391 locator.set_value(CodeEntryInfo(entry, size)); |
| 388 } | 392 } |
| 389 | 393 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 case EXTERNAL: | 695 case EXTERNAL: |
| 692 return program_entry_; | 696 return program_entry_; |
| 693 case IDLE: | 697 case IDLE: |
| 694 return idle_entry_; | 698 return idle_entry_; |
| 695 default: return NULL; | 699 default: return NULL; |
| 696 } | 700 } |
| 697 } | 701 } |
| 698 | 702 |
| 699 } // namespace internal | 703 } // namespace internal |
| 700 } // namespace v8 | 704 } // namespace v8 |
| OLD | NEW |