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

Side by Side Diff: src/compiler/machine-operator.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, 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/linkage.cc ('k') | src/compiler/machine-operator.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_COMPILER_MACHINE_OPERATOR_H_ 5 #ifndef V8_COMPILER_MACHINE_OPERATOR_H_
6 #define V8_COMPILER_MACHINE_OPERATOR_H_ 6 #define V8_COMPILER_MACHINE_OPERATOR_H_
7 7
8 #include "src/compiler/machine-type.h" 8 #include "src/compiler/machine-type.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 namespace compiler { 12 namespace compiler {
13 13
14 // Forward declarations. 14 // Forward declarations.
15 struct MachineOperatorBuilderImpl; 15 struct MachineOperatorBuilderImpl;
16 class Operator; 16 class Operator;
17 17
18 18
19 // Supported write barrier modes. 19 // Supported write barrier modes.
20 enum WriteBarrierKind { kNoWriteBarrier, kFullWriteBarrier }; 20 enum WriteBarrierKind { kNoWriteBarrier, kFullWriteBarrier };
21 21
22 OStream& operator<<(OStream& os, const WriteBarrierKind& write_barrier_kind); 22 std::ostream& operator<<(std::ostream& os,
23 const WriteBarrierKind& write_barrier_kind);
23 24
24 25
25 typedef MachineType LoadRepresentation; 26 typedef MachineType LoadRepresentation;
26 27
27 28
28 // A Store needs a MachineType and a WriteBarrierKind 29 // A Store needs a MachineType and a WriteBarrierKind
29 // in order to emit the correct write barrier. 30 // in order to emit the correct write barrier.
30 class StoreRepresentation FINAL { 31 class StoreRepresentation FINAL {
31 public: 32 public:
32 StoreRepresentation(MachineType machine_type, 33 StoreRepresentation(MachineType machine_type,
(...skipping 12 matching lines...) Expand all
45 const StoreRepresentation& rep2) { 46 const StoreRepresentation& rep2) {
46 return rep1.machine_type() == rep2.machine_type() && 47 return rep1.machine_type() == rep2.machine_type() &&
47 rep1.write_barrier_kind() == rep2.write_barrier_kind(); 48 rep1.write_barrier_kind() == rep2.write_barrier_kind();
48 } 49 }
49 50
50 inline bool operator!=(const StoreRepresentation& rep1, 51 inline bool operator!=(const StoreRepresentation& rep1,
51 const StoreRepresentation& rep2) { 52 const StoreRepresentation& rep2) {
52 return !(rep1 == rep2); 53 return !(rep1 == rep2);
53 } 54 }
54 55
55 OStream& operator<<(OStream& os, const StoreRepresentation& rep); 56 std::ostream& operator<<(std::ostream& os, const StoreRepresentation& rep);
56 57
57 58
58 // Interface for building machine-level operators. These operators are 59 // Interface for building machine-level operators. These operators are
59 // machine-level but machine-independent and thus define a language suitable 60 // machine-level but machine-independent and thus define a language suitable
60 // for generating code to run on architectures such as ia32, x64, arm, etc. 61 // for generating code to run on architectures such as ia32, x64, arm, etc.
61 class MachineOperatorBuilder FINAL { 62 class MachineOperatorBuilder FINAL {
62 public: 63 public:
63 explicit MachineOperatorBuilder(MachineType word = kMachPtr); 64 explicit MachineOperatorBuilder(MachineType word = kMachPtr);
64 65
65 const Operator* Word32And(); 66 const Operator* Word32And();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 private: 179 private:
179 const MachineOperatorBuilderImpl& impl_; 180 const MachineOperatorBuilderImpl& impl_;
180 const MachineType word_; 181 const MachineType word_;
181 }; 182 };
182 183
183 } // namespace compiler 184 } // namespace compiler
184 } // namespace internal 185 } // namespace internal
185 } // namespace v8 186 } // namespace v8
186 187
187 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 188 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698