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

Side by Side Diff: src/compiler/simplified-operator-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
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/simplified-operator.h" 5 #include "src/compiler/simplified-operator.h"
6 6
7 #include "src/compiler/operator-properties-inl.h" 7 #include "src/compiler/operator-properties-inl.h"
8 #include "src/test/test-utils.h" 8 #include "src/test/test-utils.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 namespace compiler { 12 namespace compiler {
13 13
14 // TODO(bmeurer): Drop once we use std::ostream instead of our OStream.
15 inline std::ostream& operator<<(std::ostream& os, const ElementAccess& access) {
16 OStringStream ost;
17 ost << access;
18 return os << ost.c_str();
19 }
20
21
22 // ----------------------------------------------------------------------------- 14 // -----------------------------------------------------------------------------
23 // Pure operators. 15 // Pure operators.
24 16
25 17
26 namespace { 18 namespace {
27 19
28 struct PureOperator { 20 struct PureOperator {
29 const Operator* (SimplifiedOperatorBuilder::*constructor)(); 21 const Operator* (SimplifiedOperatorBuilder::*constructor)();
30 IrOpcode::Value opcode; 22 IrOpcode::Value opcode;
31 Operator::Properties properties; 23 Operator::Properties properties;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 205 }
214 206
215 207
216 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest, 208 INSTANTIATE_TEST_CASE_P(SimplifiedOperatorTest,
217 SimplifiedElementAccessOperatorTest, 209 SimplifiedElementAccessOperatorTest,
218 ::testing::ValuesIn(kElementAccesses)); 210 ::testing::ValuesIn(kElementAccesses));
219 211
220 } // namespace compiler 212 } // namespace compiler
221 } // namespace internal 213 } // namespace internal
222 } // namespace v8 214 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/simplified-operator.cc ('k') | src/compiler/x64/instruction-selector-x64-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698