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 BinaryOperationHint BinaryOperationHintOf(const Operator* op); | 377 BinaryOperationHint BinaryOperationHintOf(const Operator* op); |
378 | 378 |
379 const CompareOperationHint CompareOperationHintOf(const Operator* op); | 379 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(CompareOperationHint hint); | 388 const Operator* Equal(CompareOperationHint hint); |
389 const Operator* NotEqual(CompareOperationHint hint); | 389 const Operator* NotEqual(CompareOperationHint hint); |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 Zone* const zone_; | 496 Zone* const zone_; |
497 | 497 |
498 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); | 498 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); |
499 }; | 499 }; |
500 | 500 |
501 } // namespace compiler | 501 } // namespace compiler |
502 } // namespace internal | 502 } // namespace internal |
503 } // namespace v8 | 503 } // namespace v8 |
504 | 504 |
505 #endif // V8_COMPILER_JS_OPERATOR_H_ | 505 #endif // V8_COMPILER_JS_OPERATOR_H_ |
OLD | NEW |