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

Side by Side Diff: src/basic-block-profiler.h

Issue 1163803002: Cosmetic changes to tests to make it easier to concatenate them. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix snapshot-external.cc Created 5 years, 6 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/bailout-reason.cc ('k') | src/bignum.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_BASIC_BLOCK_PROFILER_H_ 5 #ifndef V8_BASIC_BLOCK_PROFILER_H_
6 #define V8_BASIC_BLOCK_PROFILER_H_ 6 #define V8_BASIC_BLOCK_PROFILER_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
11 11
12 #include "src/v8.h" 12 #include "src/v8.h"
13 13
14 namespace v8 { 14 namespace v8 {
15 namespace internal { 15 namespace internal {
16 16
17 class Schedule;
18 class Graph;
19
20 class BasicBlockProfiler { 17 class BasicBlockProfiler {
21 public: 18 public:
22 class Data { 19 class Data {
23 public: 20 public:
24 size_t n_blocks() const { return n_blocks_; } 21 size_t n_blocks() const { return n_blocks_; }
25 const uint32_t* counts() const { return &counts_[0]; } 22 const uint32_t* counts() const { return &counts_[0]; }
26 23
27 void SetCode(std::ostringstream* os); 24 void SetCode(std::ostringstream* os);
28 void SetFunctionName(std::ostringstream* os); 25 void SetFunctionName(std::ostringstream* os);
29 void SetSchedule(std::ostringstream* os); 26 void SetSchedule(std::ostringstream* os);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 DISALLOW_COPY_AND_ASSIGN(BasicBlockProfiler); 65 DISALLOW_COPY_AND_ASSIGN(BasicBlockProfiler);
69 }; 66 };
70 67
71 std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler& s); 68 std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler& s);
72 std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler::Data& s); 69 std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler::Data& s);
73 70
74 } // namespace internal 71 } // namespace internal
75 } // namespace v8 72 } // namespace v8
76 73
77 #endif // V8_BASIC_BLOCK_PROFILER_H_ 74 #endif // V8_BASIC_BLOCK_PROFILER_H_
OLDNEW
« no previous file with comments | « src/bailout-reason.cc ('k') | src/bignum.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698