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

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: yes Created 6 years, 1 month 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/js-operator.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/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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 V(Uint, Mod) 203 V(Uint, Mod)
204 #define PSEUDO_OP(Prefix, Suffix) \ 204 #define PSEUDO_OP(Prefix, Suffix) \
205 const Operator* Prefix##Suffix() { \ 205 const Operator* Prefix##Suffix() { \
206 return Is32() ? Prefix##32##Suffix() : Prefix##64##Suffix(); \ 206 return Is32() ? Prefix##32##Suffix() : Prefix##64##Suffix(); \
207 } 207 }
208 PSEUDO_OP_LIST(PSEUDO_OP) 208 PSEUDO_OP_LIST(PSEUDO_OP)
209 #undef PSEUDO_OP 209 #undef PSEUDO_OP
210 #undef PSEUDO_OP_LIST 210 #undef PSEUDO_OP_LIST
211 211
212 private: 212 private:
213 const MachineOperatorBuilderImpl& impl_; 213 const MachineOperatorGlobalCache& cache_;
214 const MachineType word_; 214 const MachineType word_;
215 const Flags flags_; 215 const Flags flags_;
216 DISALLOW_COPY_AND_ASSIGN(MachineOperatorBuilder); 216 DISALLOW_COPY_AND_ASSIGN(MachineOperatorBuilder);
217 }; 217 };
218 218
219 219
220 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) 220 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags)
221 } // namespace compiler 221 } // namespace compiler
222 } // namespace internal 222 } // namespace internal
223 } // namespace v8 223 } // namespace v8
224 224
225 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ 225 #endif // V8_COMPILER_MACHINE_OPERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/js-operator.cc ('k') | src/compiler/machine-operator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698