| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_SIMPLIFIED_OPERATOR_H_ | 5 #ifndef V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
| 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 6 #define V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/compiler/machine-type.h" | 10 #include "src/compiler/machine-type.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 | 118 |
| 119 // Additional representations for intermediate code or non-JS code: | 119 // Additional representations for intermediate code or non-JS code: |
| 120 // - Int64: an untagged signed 64-bit integer | 120 // - Int64: an untagged signed 64-bit integer |
| 121 // - Uint64: an untagged unsigned 64-bit integer | 121 // - Uint64: an untagged unsigned 64-bit integer |
| 122 // - Float32: an untagged float32 | 122 // - Float32: an untagged float32 |
| 123 | 123 |
| 124 // Boolean values can be: | 124 // Boolean values can be: |
| 125 // - Bool: a tagged pointer to either the canonical JS #false or | 125 // - Bool: a tagged pointer to either the canonical JS #false or |
| 126 // the canonical JS #true object | 126 // the canonical JS #true object |
| 127 // - Bit: an untagged integer 0 or 1, but word-sized | 127 // - Bit: an untagged integer 0 or 1, but word-sized |
| 128 class SimplifiedOperatorBuilder final { | 128 class SimplifiedOperatorBuilder final : public ZoneObject { |
| 129 public: | 129 public: |
| 130 explicit SimplifiedOperatorBuilder(Zone* zone); | 130 explicit SimplifiedOperatorBuilder(Zone* zone); |
| 131 | 131 |
| 132 const Operator* BooleanNot(); | 132 const Operator* BooleanNot(); |
| 133 const Operator* BooleanToNumber(); | 133 const Operator* BooleanToNumber(); |
| 134 | 134 |
| 135 const Operator* NumberEqual(); | 135 const Operator* NumberEqual(); |
| 136 const Operator* NumberLessThan(); | 136 const Operator* NumberLessThan(); |
| 137 const Operator* NumberLessThanOrEqual(); | 137 const Operator* NumberLessThanOrEqual(); |
| 138 const Operator* NumberAdd(); | 138 const Operator* NumberAdd(); |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 Zone* const zone_; | 189 Zone* const zone_; |
| 190 | 190 |
| 191 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 191 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 } // namespace compiler | 194 } // namespace compiler |
| 195 } // namespace internal | 195 } // namespace internal |
| 196 } // namespace v8 | 196 } // namespace v8 |
| 197 | 197 |
| 198 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 198 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
| OLD | NEW |