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

Side by Side Diff: src/compiler/graph-unittest.cc

Issue 618643002: Replace OStream with std::ostream. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/graph-visualizer.h » ('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 #include "src/compiler/graph-unittest.h" 5 #include "src/compiler/graph-unittest.h"
6 6
7 #include <ostream> // NOLINT(readability/streams) 7 #include <ostream> // NOLINT(readability/streams)
8 8
9 #include "src/compiler/node-properties-inl.h" 9 #include "src/compiler/node-properties-inl.h"
10 10
11 using testing::_; 11 using testing::_;
12 using testing::MakeMatcher; 12 using testing::MakeMatcher;
13 using testing::MatcherInterface; 13 using testing::MatcherInterface;
14 using testing::MatchResultListener; 14 using testing::MatchResultListener;
15 using testing::StringMatchResultListener; 15 using testing::StringMatchResultListener;
16 16
17 namespace v8 { 17 namespace v8 {
18 namespace internal { 18 namespace internal {
19 19
20 // TODO(bmeurer): Find a new home for these functions. 20 // TODO(bmeurer): Find a new home for these functions.
21 template <typename T> 21 template <typename T>
22 inline std::ostream& operator<<(std::ostream& os, const Unique<T>& value) { 22 inline std::ostream& operator<<(std::ostream& os, const Unique<T>& value) {
23 return os << *value.handle(); 23 return os << *value.handle();
24 } 24 }
25 inline std::ostream& operator<<(std::ostream& os, 25 inline std::ostream& operator<<(std::ostream& os,
26 const ExternalReference& value) { 26 const ExternalReference& value) {
27 OStringStream ost; 27 compiler::StaticParameterTraits<ExternalReference>::PrintTo(os, value);
28 compiler::StaticParameterTraits<ExternalReference>::PrintTo(ost, value); 28 return os;
29 return os << ost.c_str();
30 } 29 }
31 30
32 namespace compiler { 31 namespace compiler {
33 32
34 GraphTest::GraphTest(int num_parameters) : common_(zone()), graph_(zone()) { 33 GraphTest::GraphTest(int num_parameters) : common_(zone()), graph_(zone()) {
35 graph()->SetStart(graph()->NewNode(common()->Start(num_parameters))); 34 graph()->SetStart(graph()->NewNode(common()->Start(num_parameters)));
36 } 35 }
37 36
38 37
39 GraphTest::~GraphTest() {} 38 GraphTest::~GraphTest() {}
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
772 IS_UNOP_MATCHER(ChangeUint32ToUint64) 771 IS_UNOP_MATCHER(ChangeUint32ToUint64)
773 IS_UNOP_MATCHER(TruncateFloat64ToFloat32) 772 IS_UNOP_MATCHER(TruncateFloat64ToFloat32)
774 IS_UNOP_MATCHER(TruncateFloat64ToInt32) 773 IS_UNOP_MATCHER(TruncateFloat64ToInt32)
775 IS_UNOP_MATCHER(TruncateInt64ToInt32) 774 IS_UNOP_MATCHER(TruncateInt64ToInt32)
776 IS_UNOP_MATCHER(Float64Sqrt) 775 IS_UNOP_MATCHER(Float64Sqrt)
777 #undef IS_UNOP_MATCHER 776 #undef IS_UNOP_MATCHER
778 777
779 } // namespace compiler 778 } // namespace compiler
780 } // namespace internal 779 } // namespace internal
781 } // namespace v8 780 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/common-operator.cc ('k') | src/compiler/graph-visualizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698