OLD | NEW |
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 |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 V(Uint, Mod) | 290 V(Uint, Mod) |
291 #define PSEUDO_OP(Prefix, Suffix) \ | 291 #define PSEUDO_OP(Prefix, Suffix) \ |
292 const Operator* Prefix##Suffix() { \ | 292 const Operator* Prefix##Suffix() { \ |
293 return Is32() ? Prefix##32##Suffix() : Prefix##64##Suffix(); \ | 293 return Is32() ? Prefix##32##Suffix() : Prefix##64##Suffix(); \ |
294 } | 294 } |
295 PSEUDO_OP_LIST(PSEUDO_OP) | 295 PSEUDO_OP_LIST(PSEUDO_OP) |
296 #undef PSEUDO_OP | 296 #undef PSEUDO_OP |
297 #undef PSEUDO_OP_LIST | 297 #undef PSEUDO_OP_LIST |
298 | 298 |
299 private: | 299 private: |
300 Zone* const zone_; | |
301 MachineOperatorGlobalCache const& cache_; | 300 MachineOperatorGlobalCache const& cache_; |
302 MachineType const word_; | 301 MachineType const word_; |
303 Flags const flags_; | 302 Flags const flags_; |
304 | 303 |
305 DISALLOW_COPY_AND_ASSIGN(MachineOperatorBuilder); | 304 DISALLOW_COPY_AND_ASSIGN(MachineOperatorBuilder); |
306 }; | 305 }; |
307 | 306 |
308 | 307 |
309 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 308 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
310 | 309 |
311 } // namespace compiler | 310 } // namespace compiler |
312 } // namespace internal | 311 } // namespace internal |
313 } // namespace v8 | 312 } // namespace v8 |
314 | 313 |
315 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 314 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
OLD | NEW |