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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 // - Float32: an untagged float32 | 121 // - Float32: an untagged float32 |
122 | 122 |
123 // Boolean values can be: | 123 // Boolean values can be: |
124 // - Bool: a tagged pointer to either the canonical JS #false or | 124 // - Bool: a tagged pointer to either the canonical JS #false or |
125 // the canonical JS #true object | 125 // the canonical JS #true object |
126 // - Bit: an untagged integer 0 or 1, but word-sized | 126 // - Bit: an untagged integer 0 or 1, but word-sized |
127 class SimplifiedOperatorBuilder FINAL { | 127 class SimplifiedOperatorBuilder FINAL { |
128 public: | 128 public: |
129 explicit SimplifiedOperatorBuilder(Zone* zone); | 129 explicit SimplifiedOperatorBuilder(Zone* zone); |
130 | 130 |
| 131 const Operator* AnyToBoolean(); |
| 132 |
131 const Operator* BooleanNot(); | 133 const Operator* BooleanNot(); |
132 const Operator* BooleanToNumber(); | 134 const Operator* BooleanToNumber(); |
133 | 135 |
134 const Operator* NumberEqual(); | 136 const Operator* NumberEqual(); |
135 const Operator* NumberLessThan(); | 137 const Operator* NumberLessThan(); |
136 const Operator* NumberLessThanOrEqual(); | 138 const Operator* NumberLessThanOrEqual(); |
137 const Operator* NumberAdd(); | 139 const Operator* NumberAdd(); |
138 const Operator* NumberSubtract(); | 140 const Operator* NumberSubtract(); |
139 const Operator* NumberMultiply(); | 141 const Operator* NumberMultiply(); |
140 const Operator* NumberDivide(); | 142 const Operator* NumberDivide(); |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 Zone* const zone_; | 185 Zone* const zone_; |
184 | 186 |
185 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 187 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
186 }; | 188 }; |
187 | 189 |
188 } // namespace compiler | 190 } // namespace compiler |
189 } // namespace internal | 191 } // namespace internal |
190 } // namespace v8 | 192 } // namespace v8 |
191 | 193 |
192 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 194 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
OLD | NEW |