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_JS_OPERATOR_H_ | 5 #ifndef V8_COMPILER_JS_OPERATOR_H_ |
6 #define V8_COMPILER_JS_OPERATOR_H_ | 6 #define V8_COMPILER_JS_OPERATOR_H_ |
7 | 7 |
8 #include "src/compiler/type-hints.h" | 8 #include "src/compiler/type-hints.h" |
9 #include "src/runtime/runtime.h" | 9 #include "src/runtime/runtime.h" |
10 | 10 |
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 | 367 |
368 bool operator==(CreateLiteralParameters const&, CreateLiteralParameters const&); | 368 bool operator==(CreateLiteralParameters const&, CreateLiteralParameters const&); |
369 bool operator!=(CreateLiteralParameters const&, CreateLiteralParameters const&); | 369 bool operator!=(CreateLiteralParameters const&, CreateLiteralParameters const&); |
370 | 370 |
371 size_t hash_value(CreateLiteralParameters const&); | 371 size_t hash_value(CreateLiteralParameters const&); |
372 | 372 |
373 std::ostream& operator<<(std::ostream&, CreateLiteralParameters const&); | 373 std::ostream& operator<<(std::ostream&, CreateLiteralParameters const&); |
374 | 374 |
375 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op); | 375 const CreateLiteralParameters& CreateLiteralParametersOf(const Operator* op); |
376 | 376 |
377 const BinaryOperationHints& BinaryOperationHintsOf(const Operator* op); | 377 const BinaryOperationHint BinaryOperationHintOf(const Operator* op); |
378 | 378 |
379 const CompareOperationHints& CompareOperationHintsOf(const Operator* op); | 379 const CompareOperationHint CompareOperationHintOf(const Operator* op); |
380 | 380 |
381 // Interface for building JavaScript-level operators, e.g. directly from the | 381 // Interface for building JavaScript-level operators, e.g. directly from the |
382 // AST. Most operators have no parameters, thus can be globally shared for all | 382 // AST. Most operators have no parameters, thus can be globally shared for all |
383 // graphs. | 383 // graphs. |
384 class JSOperatorBuilder final : public ZoneObject { | 384 class JSOperatorBuilder final : public ZoneObject { |
385 public: | 385 public: |
386 explicit JSOperatorBuilder(Zone* zone); | 386 explicit JSOperatorBuilder(Zone* zone); |
387 | 387 |
388 const Operator* Equal(CompareOperationHints hints); | 388 const Operator* Equal(CompareOperationHint hint); |
389 const Operator* NotEqual(CompareOperationHints hints); | 389 const Operator* NotEqual(CompareOperationHint hint); |
390 const Operator* StrictEqual(CompareOperationHints hints); | 390 const Operator* StrictEqual(CompareOperationHint hint); |
391 const Operator* StrictNotEqual(CompareOperationHints hints); | 391 const Operator* StrictNotEqual(CompareOperationHint hint); |
392 const Operator* LessThan(CompareOperationHints hints); | 392 const Operator* LessThan(CompareOperationHint hint); |
393 const Operator* GreaterThan(CompareOperationHints hints); | 393 const Operator* GreaterThan(CompareOperationHint hint); |
394 const Operator* LessThanOrEqual(CompareOperationHints hints); | 394 const Operator* LessThanOrEqual(CompareOperationHint hint); |
395 const Operator* GreaterThanOrEqual(CompareOperationHints hints); | 395 const Operator* GreaterThanOrEqual(CompareOperationHint hint); |
396 const Operator* BitwiseOr(BinaryOperationHints hints); | 396 |
397 const Operator* BitwiseXor(BinaryOperationHints hints); | 397 const Operator* BitwiseOr(BinaryOperationHint hint); |
398 const Operator* BitwiseAnd(BinaryOperationHints hints); | 398 const Operator* BitwiseXor(BinaryOperationHint hint); |
399 const Operator* ShiftLeft(BinaryOperationHints hints); | 399 const Operator* BitwiseAnd(BinaryOperationHint hint); |
400 const Operator* ShiftRight(BinaryOperationHints hints); | 400 const Operator* ShiftLeft(BinaryOperationHint hint); |
401 const Operator* ShiftRightLogical(BinaryOperationHints hints); | 401 const Operator* ShiftRight(BinaryOperationHint hint); |
402 const Operator* Add(BinaryOperationHints hints); | 402 const Operator* ShiftRightLogical(BinaryOperationHint hint); |
403 const Operator* Subtract(BinaryOperationHints hints); | 403 const Operator* Add(BinaryOperationHint hint); |
404 const Operator* Multiply(BinaryOperationHints hints); | 404 const Operator* Subtract(BinaryOperationHint hint); |
405 const Operator* Divide(BinaryOperationHints hints); | 405 const Operator* Multiply(BinaryOperationHint hint); |
406 const Operator* Modulus(BinaryOperationHints hints); | 406 const Operator* Divide(BinaryOperationHint hint); |
| 407 const Operator* Modulus(BinaryOperationHint hint); |
407 | 408 |
408 const Operator* ToBoolean(ToBooleanHints hints); | 409 const Operator* ToBoolean(ToBooleanHints hints); |
409 const Operator* ToInteger(); | 410 const Operator* ToInteger(); |
410 const Operator* ToLength(); | 411 const Operator* ToLength(); |
411 const Operator* ToName(); | 412 const Operator* ToName(); |
412 const Operator* ToNumber(); | 413 const Operator* ToNumber(); |
413 const Operator* ToObject(); | 414 const Operator* ToObject(); |
414 const Operator* ToString(); | 415 const Operator* ToString(); |
415 | 416 |
416 const Operator* Create(); | 417 const Operator* Create(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 Zone* const zone_; | 496 Zone* const zone_; |
496 | 497 |
497 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); | 498 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); |
498 }; | 499 }; |
499 | 500 |
500 } // namespace compiler | 501 } // namespace compiler |
501 } // namespace internal | 502 } // namespace internal |
502 } // namespace v8 | 503 } // namespace v8 |
503 | 504 |
504 #endif // V8_COMPILER_JS_OPERATOR_H_ | 505 #endif // V8_COMPILER_JS_OPERATOR_H_ |
OLD | NEW |