| 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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 BinaryOperationHints& BinaryOperationHintsOf(const Operator* op); |
| 378 | 378 |
| 379 const CompareOperationHints& CompareOperationHintsOf(const Operator* op); |
| 380 |
| 379 // Interface for building JavaScript-level operators, e.g. directly from the | 381 // Interface for building JavaScript-level operators, e.g. directly from the |
| 380 // 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 |
| 381 // graphs. | 383 // graphs. |
| 382 class JSOperatorBuilder final : public ZoneObject { | 384 class JSOperatorBuilder final : public ZoneObject { |
| 383 public: | 385 public: |
| 384 explicit JSOperatorBuilder(Zone* zone); | 386 explicit JSOperatorBuilder(Zone* zone); |
| 385 | 387 |
| 386 const Operator* Equal(); | 388 const Operator* Equal(CompareOperationHints hints); |
| 387 const Operator* NotEqual(); | 389 const Operator* NotEqual(CompareOperationHints hints); |
| 388 const Operator* StrictEqual(); | 390 const Operator* StrictEqual(CompareOperationHints hints); |
| 389 const Operator* StrictNotEqual(); | 391 const Operator* StrictNotEqual(CompareOperationHints hints); |
| 390 const Operator* LessThan(); | 392 const Operator* LessThan(CompareOperationHints hints); |
| 391 const Operator* GreaterThan(); | 393 const Operator* GreaterThan(CompareOperationHints hints); |
| 392 const Operator* LessThanOrEqual(); | 394 const Operator* LessThanOrEqual(CompareOperationHints hints); |
| 393 const Operator* GreaterThanOrEqual(); | 395 const Operator* GreaterThanOrEqual(CompareOperationHints hints); |
| 394 const Operator* BitwiseOr(BinaryOperationHints hints); | 396 const Operator* BitwiseOr(BinaryOperationHints hints); |
| 395 const Operator* BitwiseXor(BinaryOperationHints hints); | 397 const Operator* BitwiseXor(BinaryOperationHints hints); |
| 396 const Operator* BitwiseAnd(BinaryOperationHints hints); | 398 const Operator* BitwiseAnd(BinaryOperationHints hints); |
| 397 const Operator* ShiftLeft(BinaryOperationHints hints); | 399 const Operator* ShiftLeft(BinaryOperationHints hints); |
| 398 const Operator* ShiftRight(BinaryOperationHints hints); | 400 const Operator* ShiftRight(BinaryOperationHints hints); |
| 399 const Operator* ShiftRightLogical(BinaryOperationHints hints); | 401 const Operator* ShiftRightLogical(BinaryOperationHints hints); |
| 400 const Operator* Add(BinaryOperationHints hints); | 402 const Operator* Add(BinaryOperationHints hints); |
| 401 const Operator* Subtract(BinaryOperationHints hints); | 403 const Operator* Subtract(BinaryOperationHints hints); |
| 402 const Operator* Multiply(BinaryOperationHints hints); | 404 const Operator* Multiply(BinaryOperationHints hints); |
| 403 const Operator* Divide(BinaryOperationHints hints); | 405 const Operator* Divide(BinaryOperationHints hints); |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 Zone* const zone_; | 495 Zone* const zone_; |
| 494 | 496 |
| 495 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); | 497 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); |
| 496 }; | 498 }; |
| 497 | 499 |
| 498 } // namespace compiler | 500 } // namespace compiler |
| 499 } // namespace internal | 501 } // namespace internal |
| 500 } // namespace v8 | 502 } // namespace v8 |
| 501 | 503 |
| 502 #endif // V8_COMPILER_JS_OPERATOR_H_ | 504 #endif // V8_COMPILER_JS_OPERATOR_H_ |
| OLD | NEW |