| OLD | NEW |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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_INTERPRETER_BYTECODE_OPERANDS_H_ | 5 #ifndef V8_INTERPRETER_BYTECODE_OPERANDS_H_ |
| 6 #define V8_INTERPRETER_BYTECODE_OPERANDS_H_ | 6 #define V8_INTERPRETER_BYTECODE_OPERANDS_H_ |
| 7 | 7 |
| 8 #include "src/globals.h" | 8 #include "src/globals.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 int result = static_cast<int>(lhs) & static_cast<int>(rhs); | 108 int result = static_cast<int>(lhs) & static_cast<int>(rhs); |
| 109 return static_cast<AccumulatorUse>(result); | 109 return static_cast<AccumulatorUse>(result); |
| 110 } | 110 } |
| 111 | 111 |
| 112 inline AccumulatorUse operator|(AccumulatorUse lhs, AccumulatorUse rhs) { | 112 inline AccumulatorUse operator|(AccumulatorUse lhs, AccumulatorUse rhs) { |
| 113 int result = static_cast<int>(lhs) | static_cast<int>(rhs); | 113 int result = static_cast<int>(lhs) | static_cast<int>(rhs); |
| 114 return static_cast<AccumulatorUse>(result); | 114 return static_cast<AccumulatorUse>(result); |
| 115 } | 115 } |
| 116 | 116 |
| 117 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); | 117 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); |
| 118 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); | 118 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, |
| 119 const OperandScale& operand_scale); |
| 119 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); | 120 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); |
| 120 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); | 121 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); |
| 121 | 122 |
| 122 } // namespace interpreter | 123 } // namespace interpreter |
| 123 } // namespace internal | 124 } // namespace internal |
| 124 } // namespace v8 | 125 } // namespace v8 |
| 125 | 126 |
| 126 #endif // V8_INTERPRETER_BYTECODE_OPERANDS_H_ | 127 #endif // V8_INTERPRETER_BYTECODE_OPERANDS_H_ |
| OLD | NEW |