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

Unified Diff: src/basic-block-profiler.h

Issue 618643002: Replace OStream with std::ostream. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast.cc ('k') | src/basic-block-profiler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/basic-block-profiler.h
diff --git a/src/basic-block-profiler.h b/src/basic-block-profiler.h
index 58e85427ea06ff426b3bbf14fcdaca7a7cd4596e..99fa3b172dbf750eee51c9cb5b4daf825ce5181e 100644
--- a/src/basic-block-profiler.h
+++ b/src/basic-block-profiler.h
@@ -5,7 +5,9 @@
#ifndef V8_BASIC_BLOCK_PROFILER_H_
#define V8_BASIC_BLOCK_PROFILER_H_
+#include <iosfwd>
#include <list>
+#include <string>
#include "src/v8.h"
@@ -22,15 +24,16 @@ class BasicBlockProfiler {
size_t n_blocks() const { return n_blocks_; }
const uint32_t* counts() const { return &counts_[0]; }
- void SetCode(OStringStream* os);
- void SetFunctionName(OStringStream* os);
- void SetSchedule(OStringStream* os);
+ void SetCode(std::ostringstream* os);
+ void SetFunctionName(std::ostringstream* os);
+ void SetSchedule(std::ostringstream* os);
void SetBlockId(size_t offset, size_t block_id);
uint32_t* GetCounterAddress(size_t offset);
private:
friend class BasicBlockProfiler;
- friend OStream& operator<<(OStream& os, const BasicBlockProfiler::Data& s);
+ friend std::ostream& operator<<(std::ostream& os,
+ const BasicBlockProfiler::Data& s);
explicit Data(size_t n_blocks);
~Data();
@@ -57,15 +60,16 @@ class BasicBlockProfiler {
const DataList* data_list() { return &data_list_; }
private:
- friend OStream& operator<<(OStream& os, const BasicBlockProfiler& s);
+ friend std::ostream& operator<<(std::ostream& os,
+ const BasicBlockProfiler& s);
DataList data_list_;
DISALLOW_COPY_AND_ASSIGN(BasicBlockProfiler);
};
-OStream& operator<<(OStream& os, const BasicBlockProfiler& s);
-OStream& operator<<(OStream& os, const BasicBlockProfiler::Data& s);
+std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler& s);
+std::ostream& operator<<(std::ostream& os, const BasicBlockProfiler::Data& s);
} // namespace internal
} // namespace v8
« no previous file with comments | « src/ast.cc ('k') | src/basic-block-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698