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/operator.h" | 10 #include "src/compiler/operator.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 | 178 |
179 size_t hash_value(NumberOperationHint); | 179 size_t hash_value(NumberOperationHint); |
180 | 180 |
181 std::ostream& operator<<(std::ostream&, NumberOperationHint); | 181 std::ostream& operator<<(std::ostream&, NumberOperationHint); |
182 | 182 |
183 NumberOperationHint NumberOperationHintOf(const Operator* op) | 183 NumberOperationHint NumberOperationHintOf(const Operator* op) |
184 WARN_UNUSED_RESULT; | 184 WARN_UNUSED_RESULT; |
185 | 185 |
186 PretenureFlag PretenureFlagOf(const Operator* op) WARN_UNUSED_RESULT; | 186 PretenureFlag PretenureFlagOf(const Operator* op) WARN_UNUSED_RESULT; |
187 | 187 |
| 188 UnicodeEncoding UnicodeEncodingOf(const Operator*) WARN_UNUSED_RESULT; |
| 189 |
188 // Interface for building simplified operators, which represent the | 190 // Interface for building simplified operators, which represent the |
189 // medium-level operations of V8, including adding numbers, allocating objects, | 191 // medium-level operations of V8, including adding numbers, allocating objects, |
190 // indexing into objects and arrays, etc. | 192 // indexing into objects and arrays, etc. |
191 // All operators are typed but many are representation independent. | 193 // All operators are typed but many are representation independent. |
192 | 194 |
193 // Number values from JS can be in one of these representations: | 195 // Number values from JS can be in one of these representations: |
194 // - Tagged: word-sized integer that is either | 196 // - Tagged: word-sized integer that is either |
195 // - a signed small integer (31 or 32 bits plus a tag) | 197 // - a signed small integer (31 or 32 bits plus a tag) |
196 // - a tagged pointer to a HeapNumber object that has a float64 field | 198 // - a tagged pointer to a HeapNumber object that has a float64 field |
197 // - Int32: an untagged signed 32-bit integer | 199 // - Int32: an untagged signed 32-bit integer |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 const Operator* SpeculativeNumberLessThanOrEqual(NumberOperationHint hint); | 284 const Operator* SpeculativeNumberLessThanOrEqual(NumberOperationHint hint); |
283 const Operator* SpeculativeNumberEqual(NumberOperationHint hint); | 285 const Operator* SpeculativeNumberEqual(NumberOperationHint hint); |
284 | 286 |
285 const Operator* ReferenceEqual(); | 287 const Operator* ReferenceEqual(); |
286 | 288 |
287 const Operator* StringEqual(); | 289 const Operator* StringEqual(); |
288 const Operator* StringLessThan(); | 290 const Operator* StringLessThan(); |
289 const Operator* StringLessThanOrEqual(); | 291 const Operator* StringLessThanOrEqual(); |
290 const Operator* StringCharCodeAt(); | 292 const Operator* StringCharCodeAt(); |
291 const Operator* StringFromCharCode(); | 293 const Operator* StringFromCharCode(); |
| 294 const Operator* StringFromCodePoint(UnicodeEncoding encoding); |
292 | 295 |
293 const Operator* PlainPrimitiveToNumber(); | 296 const Operator* PlainPrimitiveToNumber(); |
294 const Operator* PlainPrimitiveToWord32(); | 297 const Operator* PlainPrimitiveToWord32(); |
295 const Operator* PlainPrimitiveToFloat64(); | 298 const Operator* PlainPrimitiveToFloat64(); |
296 | 299 |
297 const Operator* ChangeTaggedSignedToInt32(); | 300 const Operator* ChangeTaggedSignedToInt32(); |
298 const Operator* ChangeTaggedToInt32(); | 301 const Operator* ChangeTaggedToInt32(); |
299 const Operator* ChangeTaggedToUint32(); | 302 const Operator* ChangeTaggedToUint32(); |
300 const Operator* ChangeTaggedToFloat64(); | 303 const Operator* ChangeTaggedToFloat64(); |
301 const Operator* ChangeInt31ToTaggedSigned(); | 304 const Operator* ChangeInt31ToTaggedSigned(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 Zone* const zone_; | 390 Zone* const zone_; |
388 | 391 |
389 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); | 392 DISALLOW_COPY_AND_ASSIGN(SimplifiedOperatorBuilder); |
390 }; | 393 }; |
391 | 394 |
392 } // namespace compiler | 395 } // namespace compiler |
393 } // namespace internal | 396 } // namespace internal |
394 } // namespace v8 | 397 } // namespace v8 |
395 | 398 |
396 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ | 399 #endif // V8_COMPILER_SIMPLIFIED_OPERATOR_H_ |
OLD | NEW |