Chromium Code Reviews

Side by Side Diff: src/compiler/machine-operator.h

Issue 680313003: Move input/output counts directly into Operators, simplying OperatorProperties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
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/base/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/machine-type.h" 9 #include "src/compiler/machine-type.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 namespace compiler { 13 namespace compiler {
14 14
15 // Forward declarations. 15 // Forward declarations.
16 struct MachineOperatorBuilderImpl; 16 struct MachineOperatorGlobalCache;
17 class Operator; 17 class Operator;
18 18
19 19
20 // Supported write barrier modes. 20 // Supported write barrier modes.
21 enum WriteBarrierKind { kNoWriteBarrier, kFullWriteBarrier }; 21 enum WriteBarrierKind { kNoWriteBarrier, kFullWriteBarrier };
22 22
23 std::ostream& operator<<(std::ostream& os, WriteBarrierKind); 23 std::ostream& operator<<(std::ostream& os, WriteBarrierKind);
24 24
25 25
26 // A Load needs a MachineType. 26 // A Load needs a MachineType.
(...skipping 172 matching lines...)
199 V(Uint, Mod) 199 V(Uint, Mod)
200 #define PSEUDO_OP(Prefix, Suffix) \ 200 #define PSEUDO_OP(Prefix, Suffix) \
201 const Operator* Prefix##Suffix() { \ 201 const Operator* Prefix##Suffix() { \
202 return Is32() ? Prefix##32##Suffix() : Prefix##64##Suffix(); \ 202 return Is32() ? Prefix##32##Suffix() : Prefix##64##Suffix(); \
203 } 203 }
204 PSEUDO_OP_LIST(PSEUDO_OP) 204 PSEUDO_OP_LIST(PSEUDO_OP)
205 #undef PSEUDO_OP 205 #undef PSEUDO_OP
206 #undef PSEUDO_OP_LIST 206 #undef PSEUDO_OP_LIST
207 207
208 private: 208 private:
209 const MachineOperatorBuilderImpl& impl_; 209 const MachineOperatorGlobalCache& cache_;
210 const MachineType word_; 210 const MachineType word_;
211 const Flags flags_; 211 const Flags flags_;
212 }; 212 };
213 213
214 214
215 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) 215 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags)
216 } // namespace compiler 216 } // namespace compiler
217 } // namespace internal 217 } // namespace internal
218 } // namespace v8 218 } // namespace v8
219 219
220 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 220 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW

Powered by Google App Engine