| 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/compiler/machine-type.h" | 8 #include "src/compiler/machine-type.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 size_t hash_value(StoreRepresentation); | 48 size_t hash_value(StoreRepresentation); |
| 49 | 49 |
| 50 std::ostream& operator<<(std::ostream&, StoreRepresentation); | 50 std::ostream& operator<<(std::ostream&, StoreRepresentation); |
| 51 | 51 |
| 52 StoreRepresentation const& StoreRepresentationOf(Operator const*); | 52 StoreRepresentation const& StoreRepresentationOf(Operator const*); |
| 53 | 53 |
| 54 | 54 |
| 55 // Interface for building machine-level operators. These operators are | 55 // Interface for building machine-level operators. These operators are |
| 56 // machine-level but machine-independent and thus define a language suitable | 56 // machine-level but machine-independent and thus define a language suitable |
| 57 // for generating code to run on architectures such as ia32, x64, arm, etc. | 57 // for generating code to run on architectures such as ia32, x64, arm, etc. |
| 58 class MachineOperatorBuilder FINAL { | 58 class MachineOperatorBuilder FINAL : public ZoneObject { |
| 59 public: | 59 public: |
| 60 explicit MachineOperatorBuilder(MachineType word = kMachPtr); | 60 explicit MachineOperatorBuilder(MachineType word = kMachPtr); |
| 61 | 61 |
| 62 const Operator* Word32And(); | 62 const Operator* Word32And(); |
| 63 const Operator* Word32Or(); | 63 const Operator* Word32Or(); |
| 64 const Operator* Word32Xor(); | 64 const Operator* Word32Xor(); |
| 65 const Operator* Word32Shl(); | 65 const Operator* Word32Shl(); |
| 66 const Operator* Word32Shr(); | 66 const Operator* Word32Shr(); |
| 67 const Operator* Word32Sar(); | 67 const Operator* Word32Sar(); |
| 68 const Operator* Word32Ror(); | 68 const Operator* Word32Ror(); |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 const Operator* Prefix##Suffix() { \ | 174 const Operator* Prefix##Suffix() { \ |
| 175 return Is32() ? Prefix##32##Suffix() : Prefix##64##Suffix(); \ | 175 return Is32() ? Prefix##32##Suffix() : Prefix##64##Suffix(); \ |
| 176 } | 176 } |
| 177 PSEUDO_OP_LIST(PSEUDO_OP) | 177 PSEUDO_OP_LIST(PSEUDO_OP) |
| 178 #undef PSEUDO_OP | 178 #undef PSEUDO_OP |
| 179 #undef PSEUDO_OP_LIST | 179 #undef PSEUDO_OP_LIST |
| 180 | 180 |
| 181 private: | 181 private: |
| 182 const MachineOperatorBuilderImpl& impl_; | 182 const MachineOperatorBuilderImpl& impl_; |
| 183 const MachineType word_; | 183 const MachineType word_; |
| 184 |
| 185 DISALLOW_COPY_AND_ASSIGN(MachineOperatorBuilder); |
| 184 }; | 186 }; |
| 185 | 187 |
| 186 } // namespace compiler | 188 } // namespace compiler |
| 187 } // namespace internal | 189 } // namespace internal |
| 188 } // namespace v8 | 190 } // namespace v8 |
| 189 | 191 |
| 190 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 192 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |