| 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/runtime/runtime.h" | 8 #include "src/runtime/runtime.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 const Handle<TypeFeedbackVector> vector_; | 35 const Handle<TypeFeedbackVector> vector_; |
| 36 const FeedbackVectorSlot slot_; | 36 const FeedbackVectorSlot slot_; |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 bool operator==(VectorSlotPair const&, VectorSlotPair const&); | 39 bool operator==(VectorSlotPair const&, VectorSlotPair const&); |
| 40 bool operator!=(VectorSlotPair const&, VectorSlotPair const&); | 40 bool operator!=(VectorSlotPair const&, VectorSlotPair const&); |
| 41 | 41 |
| 42 size_t hash_value(VectorSlotPair const&); | 42 size_t hash_value(VectorSlotPair const&); |
| 43 | 43 |
| 44 | 44 |
| 45 // Defines hints about receiver values based on structural knowledge. This is | 45 // The ConvertReceiverMode is used as parameter by JSConvertReceiver operators. |
| 46 // used as a parameter by JSConvertReceiver operators. | |
| 47 enum class ConvertReceiverMode : unsigned { | |
| 48 kNullOrUndefined, // Guaranteed to be null or undefined. | |
| 49 kNotNullOrUndefined, // Guaranteed to never be null or undefined. | |
| 50 kAny // No specific knowledge about receiver. | |
| 51 }; | |
| 52 | |
| 53 size_t hash_value(ConvertReceiverMode); | |
| 54 | |
| 55 std::ostream& operator<<(std::ostream&, ConvertReceiverMode); | |
| 56 | |
| 57 ConvertReceiverMode ConvertReceiverModeOf(const Operator* op); | 46 ConvertReceiverMode ConvertReceiverModeOf(const Operator* op); |
| 58 | 47 |
| 59 | 48 |
| 60 // Defines whether tail call optimization is allowed. | 49 // Defines whether tail call optimization is allowed. |
| 61 enum class TailCallMode : unsigned { kAllow, kDisallow }; | 50 enum class TailCallMode : unsigned { kAllow, kDisallow }; |
| 62 | 51 |
| 63 size_t hash_value(TailCallMode); | 52 size_t hash_value(TailCallMode); |
| 64 | 53 |
| 65 std::ostream& operator<<(std::ostream&, TailCallMode); | 54 std::ostream& operator<<(std::ostream&, TailCallMode); |
| 66 | 55 |
| (...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 Zone* const zone_; | 457 Zone* const zone_; |
| 469 | 458 |
| 470 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); | 459 DISALLOW_COPY_AND_ASSIGN(JSOperatorBuilder); |
| 471 }; | 460 }; |
| 472 | 461 |
| 473 } // namespace compiler | 462 } // namespace compiler |
| 474 } // namespace internal | 463 } // namespace internal |
| 475 } // namespace v8 | 464 } // namespace v8 |
| 476 | 465 |
| 477 #endif // V8_COMPILER_JS_OPERATOR_H_ | 466 #endif // V8_COMPILER_JS_OPERATOR_H_ |
| OLD | NEW |