| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 V8_INLINE size_t hash_value(TruncationMode mode) { | 42 V8_INLINE size_t hash_value(TruncationMode mode) { |
| 43 return static_cast<uint8_t>(mode); | 43 return static_cast<uint8_t>(mode); |
| 44 } | 44 } |
| 45 | 45 |
| 46 std::ostream& operator<<(std::ostream&, TruncationMode); | 46 std::ostream& operator<<(std::ostream&, TruncationMode); |
| 47 | 47 |
| 48 TruncationMode TruncationModeOf(Operator const*); | 48 TruncationMode TruncationModeOf(Operator const*); |
| 49 | 49 |
| 50 | 50 |
| 51 // Supported write barrier modes. | 51 // Supported write barrier modes. |
| 52 enum WriteBarrierKind { kNoWriteBarrier, kFullWriteBarrier }; | 52 enum WriteBarrierKind { |
| 53 kNoWriteBarrier, |
| 54 kMapWriteBarrier, |
| 55 kPointerWriteBarrier, |
| 56 kFullWriteBarrier |
| 57 }; |
| 53 | 58 |
| 54 std::ostream& operator<<(std::ostream& os, WriteBarrierKind); | 59 std::ostream& operator<<(std::ostream& os, WriteBarrierKind); |
| 55 | 60 |
| 56 | 61 |
| 57 // A Load needs a MachineType. | 62 // A Load needs a MachineType. |
| 58 typedef MachineType LoadRepresentation; | 63 typedef MachineType LoadRepresentation; |
| 59 | 64 |
| 60 | 65 |
| 61 // A Store needs a MachineType and a WriteBarrierKind in order to emit the | 66 // A Store needs a MachineType and a WriteBarrierKind in order to emit the |
| 62 // correct write barrier. | 67 // correct write barrier. |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 }; | 323 }; |
| 319 | 324 |
| 320 | 325 |
| 321 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) | 326 DEFINE_OPERATORS_FOR_FLAGS(MachineOperatorBuilder::Flags) |
| 322 | 327 |
| 323 } // namespace compiler | 328 } // namespace compiler |
| 324 } // namespace internal | 329 } // namespace internal |
| 325 } // namespace v8 | 330 } // namespace v8 |
| 326 | 331 |
| 327 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ | 332 #endif // V8_COMPILER_MACHINE_OPERATOR_H_ |
| OLD | NEW |